Update config.py
recover the original `config.py`
This commit is contained in:
parent
dc8ed530f0
commit
cbef113736
@ -17,12 +17,12 @@ WORKSPACE_ROOT = PROJECT_ROOT / "workspace"
|
||||
|
||||
class LLMSettings(BaseModel):
|
||||
model: str = Field(..., description="Model name")
|
||||
base_url: str = Field("https://api.openai.com/v1", description="API base URL")
|
||||
base_url: str = Field(..., description="API base URL")
|
||||
api_key: str = Field(..., description="API key")
|
||||
max_tokens: int = Field(4096, description="Maximum number of tokens per request")
|
||||
temperature: float = Field(1.0, description="Sampling temperature")
|
||||
api_type: str = Field("anthropic", description="AzureOpenai or Openai")
|
||||
api_version: str = Field("", description="Azure Openai version if AzureOpenai")
|
||||
api_type: str = Field(..., description="AzureOpenai or Openai")
|
||||
api_version: str = Field(..., description="Azure Openai version if AzureOpenai")
|
||||
|
||||
|
||||
class AppConfig(BaseModel):
|
||||
@ -74,11 +74,11 @@ class Config:
|
||||
|
||||
default_settings = {
|
||||
"model": base_llm.get("model"),
|
||||
"base_url": base_llm.get("base_url", "https://api.anthropic.com"),
|
||||
"base_url": base_llm.get("base_url"),
|
||||
"api_key": base_llm.get("api_key"),
|
||||
"max_tokens": base_llm.get("max_tokens", 4096),
|
||||
"temperature": base_llm.get("temperature", 1.0),
|
||||
"api_type": base_llm.get("api_type", "anthropic"),
|
||||
"api_type": base_llm.get("api_type", ""),
|
||||
"api_version": base_llm.get("api_version", ""),
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user