llm router for gpt4 turbo (#237)
This commit is contained in:
@@ -56,7 +56,7 @@ if not any(
|
|||||||
|
|
||||||
if SettingsManager.get_settings().ENABLE_OPENAI:
|
if SettingsManager.get_settings().ENABLE_OPENAI:
|
||||||
LLMConfigRegistry.register_config("OPENAI_GPT4_TURBO", LLMConfig("gpt-4-turbo", ["OPENAI_API_KEY"], True))
|
LLMConfigRegistry.register_config("OPENAI_GPT4_TURBO", LLMConfig("gpt-4-turbo", ["OPENAI_API_KEY"], True))
|
||||||
LLMConfigRegistry.register_config("OPENAI_GPT4V", LLMConfig("gpt-4-vision-preview", ["OPENAI_API_KEY"], True))
|
LLMConfigRegistry.register_config("OPENAI_GPT4V", LLMConfig("gpt-4-turbo", ["OPENAI_API_KEY"], True))
|
||||||
|
|
||||||
if SettingsManager.get_settings().ENABLE_ANTHROPIC:
|
if SettingsManager.get_settings().ENABLE_ANTHROPIC:
|
||||||
LLMConfigRegistry.register_config(
|
LLMConfigRegistry.register_config(
|
||||||
|
|||||||
@@ -34,10 +34,10 @@ class LLMRouterModelConfig:
|
|||||||
class LLMRouterConfig(LLMConfig):
|
class LLMRouterConfig(LLMConfig):
|
||||||
model_list: list[LLMRouterModelConfig]
|
model_list: list[LLMRouterModelConfig]
|
||||||
# All three redis parameters are required. Even if there isn't a password, it should be an empty string.
|
# All three redis parameters are required. Even if there isn't a password, it should be an empty string.
|
||||||
redis_host: str
|
|
||||||
redis_port: int
|
|
||||||
redis_password: str
|
|
||||||
main_model_group: str
|
main_model_group: str
|
||||||
|
redis_host: str | None = None
|
||||||
|
redis_port: int | None = None
|
||||||
|
redis_password: str | None = None
|
||||||
fallback_model_group: str | None = None
|
fallback_model_group: str | None = None
|
||||||
routing_strategy: Literal[
|
routing_strategy: Literal[
|
||||||
"simple-shuffle",
|
"simple-shuffle",
|
||||||
|
|||||||
Reference in New Issue
Block a user