Fix: get is_tools from model record (#15946)

### What problem does this PR solve?

As title.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Lynn
2026-06-11 17:29:28 +08:00
committed by GitHub
parent 9614605bf9
commit 9d5950963b

View File

@@ -222,7 +222,7 @@ def get_model_config_from_provider_instance(tenant_id, model_type: str|enum.Enum
"llm_name": model_obj.model_name,
"api_base": extra_fields.get("base_url", ""),
"model_type": model_obj.model_type,
"is_tools": extra_fields.get("is_tools", is_tool),
"is_tools": model_extra.get("is_tools", is_tool),
"max_tokens": model_extra.get("max_tokens", 8192),
}
if api_key_payload is not None: