mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-21 01:40:58 +00:00
feat:add ppio and openrouter llm stream,and ppio think in content remove_think.
fix: giteeai stream no remove_think content add char"<think>"
This commit is contained in:
@@ -123,15 +123,7 @@ class GiteeAIChatCompletions(chatcmpl.OpenAIChatCompletions):
|
||||
else:
|
||||
delta['content'] = ''
|
||||
else:
|
||||
if reasoning_content is not None and idx == 0:
|
||||
delta['content'] += f'<think>\n{reasoning_content}'
|
||||
elif reasoning_content is None:
|
||||
if self.is_content:
|
||||
delta['content'] = delta['content']
|
||||
else:
|
||||
delta['content'] = f'\n<think>\n\n{delta["content"]}'
|
||||
self.is_content = True
|
||||
else:
|
||||
if reasoning_content is not None:
|
||||
delta['content'] += reasoning_content
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user