antas commited on
Commit
3a295f8
·
1 Parent(s): 3fa3930

docs(README): 添加环境变量配置说明

Browse files

- 在 README.md 文件中补充了环境变量配置步骤
- 新增 OPENAI_BASE_URL、OPENAI_API_KEY、LLM_MODEL 和 EMBEDDING_MODEL 环境变量的说明
- 为使用 OpenAI API 和自定义模型提供了更详细的配置指南

Files changed (1) hide show
  1. README.md +4 -0
README.md CHANGED
@@ -498,6 +498,10 @@ pip install fastapi uvicorn pydantic
498
  2. Set up your environment variables:
499
  ```bash
500
  export RAG_DIR="your_index_directory" # Optional: Defaults to "index_default"
 
 
 
 
501
  ```
502
 
503
  3. Run the API server:
 
498
  2. Set up your environment variables:
499
  ```bash
500
  export RAG_DIR="your_index_directory" # Optional: Defaults to "index_default"
501
+ export OPENAI_BASE_URL="Your OpenAI API base URL" # Optional: Defaults to "https://api.openai.com/v1"
502
+ export OPENAI_API_KEY="Your OpenAI API key" # Required
503
+ export LLM_MODEL="Your LLM model" # Optional: Defaults to "gpt-4o-mini"
504
+ export EMBEDDING_MODEL="Your embedding model" # Optional: Defaults to "text-embedding-3-large"
505
  ```
506
 
507
  3. Run the API server: