fix: trim() in Translation may result in malformed Markdown output for certain models.
This commit is contained in:
parent
60eb08a982
commit
5b0b36dc5c
@ -679,10 +679,6 @@ export default class OpenAIProvider extends BaseProvider {
|
||||
for await (const chunk of response) {
|
||||
const deltaContent = chunk.choices[0]?.delta?.content || ''
|
||||
|
||||
if (!deltaContent.trim()) {
|
||||
continue
|
||||
}
|
||||
|
||||
if (isReasoning) {
|
||||
if (deltaContent.includes('<think>')) {
|
||||
isThinking = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user