vllm (haechi) 추가
This commit is contained in:
1 parent
310b85bf36
commit
e32f8ef533
13 files changed
+119
-14
No files matched your search
+9
-1
@@ -1,11 +1,19 @@
|
||||
from typing import Literal
|
||||
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
||||
|
||||
chatgpt_api_key: str
|
||||
llm_provider: Literal["openai", "vllm"] = "openai"
|
||||
|
||||
chatgpt_api_key: str | None = None
|
||||
llm_model: str = "gpt-4o"
|
||||
|
||||
vllm_base_url: str = "http://haechi:8000/v1"
|
||||
vllm_api_key: str | None = None
|
||||
vllm_model: str = "haechi"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in new issue
Block a user