6c1cf0655a
Add CORS support for frontend development with configurable origins via CORS_ORIGINS environment variable. Add /chat/stream endpoint for Server-Sent Events streaming with true streaming support for OpenAI adapter and fallback single-chunk behavior for other adapters. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
564 B
Bash
19 lines
564 B
Bash
# LLM Mode: "local", "remote", "openai", or "asksage"
|
|
LLM_MODE=local
|
|
|
|
# CORS Configuration (comma-separated origins for frontend access)
|
|
CORS_ORIGINS=http://localhost:3000
|
|
|
|
# Remote LLM Configuration (required if LLM_MODE=remote)
|
|
LLM_REMOTE_URL=https://your-llm-service.com/generate
|
|
LLM_REMOTE_TOKEN=
|
|
|
|
# OpenAI Configuration (required if LLM_MODE=openai)
|
|
OPENAI_API_KEY=sk-your-api-key-here
|
|
OPENAI_MODEL=gpt-4o-mini
|
|
|
|
# AskSage Configuration (required if LLM_MODE=asksage)
|
|
ASKSAGE_EMAIL=your.email@example.com
|
|
ASKSAGE_API_KEY=your-api-key-here
|
|
ASKSAGE_MODEL=gpt-4o
|