Better naming

This commit is contained in:
bmen25124
2025-03-21 22:09:41 +03:00
parent ec474f5571
commit 7619396053
2 changed files with 17 additions and 18 deletions

View File

@ -64,7 +64,6 @@ import EventSourceStream from './sse-stream.js';
* @property {Object} state - Generated state
* @property {string?} [state.reasoning] - Generated reasoning
* @property {string?} [state.image] - Generated image
* @returns {StreamResponse}
*/
// #endregion
@ -412,7 +411,7 @@ export class ChatCompletionService {
const reply = getStreamingReply(parsed, state, {
chatCompletionSource: data.chat_completion_source,
ignoreShowThoughts: true,
overrideShowThoughts: true,
});
if (Array.isArray(parsed?.choices) && parsed?.choices?.[0]?.index > 0) {
const swipeIndex = parsed.choices[0].index - 1;