mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-26 17:13:09 +00:00
changes
This commit is contained in:
parent
82964b6e48
commit
697c594c72
3 changed files with 18 additions and 7 deletions
|
|
@ -234,4 +234,16 @@ def resolve_openai_configs(
|
|||
server_configs = [final_openai_config]
|
||||
else:
|
||||
server_configs = [final_openai_config]
|
||||
|
||||
if isinstance(server_configs, list):
|
||||
logger.info(
|
||||
"resolve_openai_configs returning %s config(s) with URLs: %s",
|
||||
len(server_configs),
|
||||
[getattr(c, "base_url", None) for c in server_configs],
|
||||
)
|
||||
else:
|
||||
logger.info(
|
||||
"resolve_openai_configs returning %s",
|
||||
type(server_configs).__name__,
|
||||
)
|
||||
return server_configs
|
||||
|
|
|
|||
|
|
@ -424,6 +424,10 @@ def resolve_openai_configs(
|
|||
elif isinstance(default_server_configs, list):
|
||||
server_configs = [final_openai_config]
|
||||
else:
|
||||
logger.warning(
|
||||
f"Unexpected type for default_server_configs: {type(default_server_configs)}. "
|
||||
"Proceeding with single OpenAI server configuration based on merged settings."
|
||||
)
|
||||
server_configs = [final_openai_config]
|
||||
|
||||
return server_configs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue