Accept provider-prefixed model selection
This commit is contained in:
@@ -524,7 +524,10 @@ class AgentState:
|
||||
with self._lock:
|
||||
config = self._config_for(account_id)
|
||||
if model is not None:
|
||||
config = replace(config, model=_normalize_chat_model_name(model))
|
||||
normalized_model = _normalize_model_id(model)
|
||||
if normalized_model is None:
|
||||
raise ValueError('model must not be empty')
|
||||
config = replace(config, model=normalized_model)
|
||||
if base_url is not None:
|
||||
config = replace(config, base_url=base_url)
|
||||
if api_key is not None:
|
||||
|
||||
Reference in New Issue
Block a user