update
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# LLM API Configuration
|
# LLM API Configuration
|
||||||
# Get your API key from https://platform.openai.com/api-keys
|
# Get your API key from https://platform.openai.com/api-keys
|
||||||
# Or use any OpenAI-compatible API (e.g., Together.ai, Groq, etc.)
|
# Or use any OpenAI-compatible API (e.g., Together.ai, Groq, etc.)
|
||||||
OPENAI_API_KEY=sk-QHX7EZodq0EBuJyRX
|
LLM_API_KEY=sk-QHX7EZodq0EBuJyRX
|
||||||
|
|
||||||
# Optional: Custom base URL for OpenAI-compatible APIs
|
# Optional: Custom base URL for OpenAI-compatible APIs
|
||||||
LLM_BASE_URL=http://192.168.88.5:8317/v1
|
LLM_BASE_URL=http://192.168.88.5:8317/v1
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# LLM API Configuration
|
# LLM API Configuration
|
||||||
# Get your API key from https://platform.openai.com/api-keys
|
# Get your API key from https://platform.openai.com/api-keys
|
||||||
# Or use any OpenAI-compatible API (e.g., Together.ai, Groq, etc.)
|
# Or use any OpenAI-compatible API (e.g., Together.ai, Groq, etc.)
|
||||||
OPENAI_API_KEY=your_api_key_here
|
LLM_API_KEY=your_api_key_here
|
||||||
|
|
||||||
# Optional: Custom base URL for OpenAI-compatible APIs
|
# Optional: Custom base URL for OpenAI-compatible APIs
|
||||||
# LLM_BASE_URL=https://api.openai.com/v1
|
# LLM_BASE_URL=https://api.openai.com/v1
|
||||||
|
|||||||
BIN
Binary file not shown.
+2
-2
@@ -24,8 +24,8 @@ DATA_DIR = Path(os.environ.get("RAG_DATA_DIR", "."))
|
|||||||
INDEX_DIR = Path(os.environ.get("RAG_INDEX_DIR", "./rag_index"))
|
INDEX_DIR = Path(os.environ.get("RAG_INDEX_DIR", "./rag_index"))
|
||||||
DB_DIR = Path(os.environ.get("RAG_DB_DIR", "."))
|
DB_DIR = Path(os.environ.get("RAG_DB_DIR", "."))
|
||||||
EMBED_MODEL = os.environ.get("RAG_EMBED_MODEL", "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2")
|
EMBED_MODEL = os.environ.get("RAG_EMBED_MODEL", "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2")
|
||||||
LLM_MODEL = os.environ.get("RAG_LLM_MODEL", "gpt-4o-mini")
|
LLM_MODEL = os.environ.get("LLM_MODEL", "gpt-4o-mini")
|
||||||
LLM_BASE_URL = os.environ.get("RAG_LLM_BASE_URL", "https://api.openai.com/v1")
|
LLM_BASE_URL = os.environ.get("LLM_BASE_URL", "https://api.openai.com/v1")
|
||||||
LLM_API_KEY = os.environ.get("OPENAI_API_KEY") or os.environ.get("LLM_API_KEY", "")
|
LLM_API_KEY = os.environ.get("OPENAI_API_KEY") or os.environ.get("LLM_API_KEY", "")
|
||||||
TOP_K = int(os.environ.get("RAG_TOP_K", "5"))
|
TOP_K = int(os.environ.get("RAG_TOP_K", "5"))
|
||||||
MAX_HISTORY = int(os.environ.get("RAG_MAX_HISTORY", "10"))
|
MAX_HISTORY = int(os.environ.get("RAG_MAX_HISTORY", "10"))
|
||||||
|
|||||||
Reference in New Issue
Block a user