mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-14 20:55:15 +02:00
refactor(provider-configuration): standardize provider parameter naming across various modules and improve quota error handling in tests
This commit is contained in:
parent
4a6a282a46
commit
e104193ddf
11 changed files with 160 additions and 58 deletions
|
|
@ -153,13 +153,13 @@ def _probe_chat_capability(cfg: dict) -> tuple[bool, str]:
|
|||
litellm_params.get("base_model") if isinstance(litellm_params, dict) else None
|
||||
)
|
||||
cap = derive_supports_image_input(
|
||||
litellm_provider=cfg.get("litellm_provider"),
|
||||
provider=cfg.get("litellm_provider"),
|
||||
model_name=cfg.get("model_name"),
|
||||
base_model=base_model,
|
||||
custom_provider=cfg.get("custom_provider"),
|
||||
)
|
||||
block = is_known_text_only_chat_model(
|
||||
litellm_provider=cfg.get("litellm_provider"),
|
||||
provider=cfg.get("litellm_provider"),
|
||||
model_name=cfg.get("model_name"),
|
||||
base_model=base_model,
|
||||
custom_provider=cfg.get("custom_provider"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue