feat: add SearXNG configuration for web search tool
- Add SEARXNG_HOST config with localhost:8087 default - Add SEARXNG_TIMEOUT setting (30 seconds default) - Update .env.example with SearXNG configuration - Supports both local and production SearXNG instances
This commit is contained in:
@@ -14,6 +14,10 @@ OLLAMA_HOST=http://your-ollama-host:11434
|
||||
OLLAMA_DEFAULT_MODEL=mistral-nemo:latest
|
||||
OLLAMA_TIMEOUT=120
|
||||
|
||||
# SearXNG Configuration
|
||||
SEARXNG_HOST=http://searxng:8087
|
||||
SEARXNG_TIMEOUT=30
|
||||
|
||||
# Logging
|
||||
LOG_LEVEL=INFO
|
||||
|
||||
|
||||
+11
-1
@@ -32,7 +32,7 @@ class Config(BaseSettings):
|
||||
|
||||
# Application
|
||||
APP_NAME: str = "OpenAI-Compatible API"
|
||||
APP_VERSION: str = "0.1.1"
|
||||
APP_VERSION: str = "0.2.0"
|
||||
ENVIRONMENT: Environment = Environment.DEVELOPMENT
|
||||
DEBUG: bool = Field(default=False, description="Debug mode")
|
||||
|
||||
@@ -59,6 +59,16 @@ class Config(BaseSettings):
|
||||
description="Timeout for each streaming turn in seconds"
|
||||
)
|
||||
|
||||
# SearXNG Configuration
|
||||
SEARXNG_HOST: HttpUrl = Field(
|
||||
default="http://localhost:8087",
|
||||
description="SearXNG server URL"
|
||||
)
|
||||
SEARXNG_TIMEOUT: int = Field(
|
||||
default=30,
|
||||
description="SearXNG request timeout in seconds"
|
||||
)
|
||||
|
||||
# Logging
|
||||
LOG_LEVEL: str = Field(default="INFO", description="Logging level")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user