Support model config in LLMs (#1495)

This commit is contained in:
Dev Khant
2024-07-18 09:21:40 -07:00
committed by GitHub
parent c411dc294e
commit 40c9abe484
15 changed files with 172 additions and 41 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ class LlmConfig(BaseModel):
description="Provider of the LLM (e.g., 'ollama', 'openai')", default="openai"
)
config: Optional[dict] = Field(
description="Configuration for the specific LLM", default=None
description="Configuration for the specific LLM", default={}
)
@field_validator("config")