mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
feat(advisor): add AdvisorInterceptionConfig type definition
Introduces a typed config class for advisor_interception_params used under litellm_settings in proxy config. Made-with: Cursor
This commit is contained in:
parent
4f31a0cd6b
commit
ee60f48a45
1 changed files with 28 additions and 0 deletions
28
litellm/types/integrations/advisor_interception.py
Normal file
28
litellm/types/integrations/advisor_interception.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
"""
|
||||
Type definitions for Advisor Interception integration.
|
||||
"""
|
||||
|
||||
from typing import List, Optional, TypedDict
|
||||
|
||||
|
||||
class AdvisorInterceptionConfig(TypedDict, total=False):
|
||||
"""
|
||||
Configuration parameters for AdvisorInterceptionLogger.
|
||||
|
||||
Used in proxy_config.yaml under litellm_settings:
|
||||
litellm_settings:
|
||||
advisor_interception_params:
|
||||
default_advisor_model: "advisor-model"
|
||||
enabled_providers: ["openai", "vertex_ai"]
|
||||
"""
|
||||
|
||||
default_advisor_model: Optional[str]
|
||||
"""
|
||||
The model_name (from model_list) or litellm model string to use as the
|
||||
advisor model. When running behind the proxy, this should match a
|
||||
model_name in model_list so the router resolves the correct deployment
|
||||
and credentials.
|
||||
"""
|
||||
|
||||
enabled_providers: List[str]
|
||||
"""List of LLM provider names to enable interception for (e.g., ['openai', 'vertex_ai'])"""
|
||||
Loading…
Add table
Reference in a new issue