nsarrazin HF staff commited on
Commit
12e7e30
1 Parent(s): 69684cd

fix continue button on openai endpoint (#803)

Browse files
src/lib/server/endpoints/openai/openAIChatToTextGenerationStream.ts CHANGED
@@ -22,7 +22,7 @@ export async function* openAIChatToTextGenerationStream(
22
  id: tokenId++,
23
  text: content ?? "",
24
  logprob: 0,
25
- special: false,
26
  },
27
  generated_text: last ? generatedText : null,
28
  details: null,
 
22
  id: tokenId++,
23
  text: content ?? "",
24
  logprob: 0,
25
+ special: last,
26
  },
27
  generated_text: last ? generatedText : null,
28
  details: null,
src/lib/server/endpoints/openai/openAICompletionToTextGenerationStream.ts CHANGED
@@ -22,7 +22,7 @@ export async function* openAICompletionToTextGenerationStream(
22
  id: tokenId++,
23
  text,
24
  logprob: 0,
25
- special: false,
26
  },
27
  generated_text: last ? generatedText : null,
28
  details: null,
 
22
  id: tokenId++,
23
  text,
24
  logprob: 0,
25
+ special: last,
26
  },
27
  generated_text: last ? generatedText : null,
28
  details: null,