Co-Authored-By: Classic298 <27028174+Classic298@users.noreply.github.com>
This commit is contained in:
Timothy Jaeryang Baek
2026-08-16 22:56:19 -07:00
co-authored by Classic298
parent 62fc436999
commit 3258330729
3 changed files with 17 additions and 9 deletions
+2
View File
@@ -286,6 +286,8 @@ def convert_messages_openai_to_ollama(messages: list[dict]) -> list[dict]:
# may be injected by filter inlet functions).
if 'thinking' in message:
new_message['thinking'] = message['thinking']
elif reasoning_content := (message.get('reasoning_content') or message.get('reasoning')):
new_message['thinking'] = reasoning_content
content = message.get('content', [])
tool_calls = message.get('tool_calls', None)