mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
fix: correct mypy type: ignore error codes (attr-defined)
This commit is contained in:
parent
f9de88f930
commit
9f9cac25f2
1 changed files with 2 additions and 2 deletions
|
|
@ -188,7 +188,7 @@ class SnowflakeCortexAnthropicConfig(SnowflakeBaseConfig):
|
|||
content_blocks: List[Dict[str, Any]] = []
|
||||
if content:
|
||||
content_blocks.append({"type": "text", "text": content})
|
||||
for tc in tool_calls: # type: ignore[union-attr]
|
||||
for tc in tool_calls: # type: ignore[attr-defined]
|
||||
func = (
|
||||
tc.get("function", {})
|
||||
if isinstance(tc, dict)
|
||||
|
|
@ -385,7 +385,7 @@ class SnowflakeCortexAnthropicConfig(SnowflakeBaseConfig):
|
|||
)
|
||||
|
||||
model_response.choices = [choice]
|
||||
model_response.usage = usage # type: ignore[assignment]
|
||||
model_response.usage = usage # type: ignore[attr-defined]
|
||||
model_response.model = "snowflake/" + response_json.get("model", model)
|
||||
model_response.id = response_json.get("id", "")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue