File size: 630 Bytes
6abb254
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from pydantic_settings import BaseSettings, SettingsConfigDict

class Settings(BaseSettings):
    openai_api_key: str | None = None
    azure_openai_api_key: str | None = None
    qdrant_api_key: str | None = None
    qdrant_url: str | None = None
    qdrant_host: str | None = None
    qdrant_port: int | None = None


    # embedding setting
    embedding_use_azure: bool = False
    embedding_azure_openai_api_base: str | None = None
    embedding_azure_openai_model_name: str | None = None
    embedding_azure_openai_api_key: str | None = None

    model_config = SettingsConfigDict(env_file='.env', env_file_encoding='utf-8')