Spaces:
Build error
Build error
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:
|
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:
|
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,
|