mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
sneaky bug logging
This commit is contained in:
parent
64794e7c72
commit
09ad401995
3 changed files with 40 additions and 0 deletions
|
|
@ -241,4 +241,17 @@ def resolve_openai_configs(
|
|||
)
|
||||
server_configs = [final_openai_config]
|
||||
|
||||
if isinstance(server_configs, list):
|
||||
logger.warning(
|
||||
"resolve_openai_configs: returning list of %s config(s), URLs: %s",
|
||||
len(server_configs),
|
||||
[c.base_url for c in server_configs],
|
||||
)
|
||||
else:
|
||||
logger.warning(
|
||||
"resolve_openai_configs: returning single %s (base_url=%s) — "
|
||||
"ServerManager will use template mode!",
|
||||
type(server_configs).__name__,
|
||||
getattr(server_configs, "base_url", "N/A"),
|
||||
)
|
||||
return server_configs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue