mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
lint: reformatted
This commit is contained in:
parent
ba641d49e9
commit
d184087e6e
1 changed files with 2 additions and 4 deletions
|
|
@ -408,7 +408,7 @@ class GenAIHubOrchestrationConfig(OpenAIGPTConfig):
|
|||
return response
|
||||
|
||||
@staticmethod
|
||||
def _normalize_reasoning_content(raw: dict[str, object]) -> dict[str, object]: # mutable-ok: generic types
|
||||
def _normalize_reasoning_content(raw: dict[str, object]) -> dict[str, object]: # mutable-ok: generic types
|
||||
"""Normalize list-shaped reasoning_content to the string field litellm expects.
|
||||
|
||||
SAP AI Core forwards reasoning tokens from Gemini and other thinking models as:
|
||||
|
|
@ -438,9 +438,7 @@ class GenAIHubOrchestrationConfig(OpenAIGPTConfig):
|
|||
new_msg = {
|
||||
**msg,
|
||||
"thinking_blocks": thinking_blocks,
|
||||
"reasoning_content": (
|
||||
"\n".join(b["thinking"] for b in thinking_blocks if b["thinking"]) or None
|
||||
),
|
||||
"reasoning_content": ("\n".join(b["thinking"] for b in thinking_blocks if b["thinking"]) or None),
|
||||
}
|
||||
new_choices.append({**choice, "message": new_msg})
|
||||
return {**raw, "choices": new_choices}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue