# CodexLens Environment Configuration
#
# Configuration locations (copy to one of these):
# - ~/.codexlens/.env      (global, applies to all projects)
# - project/.codexlens/.env (workspace-local)
# - project/.env           (project root)
#
# Priority order (later overrides earlier):
# 1. Environment variables (already set in shell) - highest
# 2. .codexlens/.env (workspace-local)
# 3. .env (project root)
# 4. ~/.codexlens/.env (global) - lowest

# ============================================
# RERANKER Configuration
# ============================================

# API key for reranker service (SiliconFlow/Cohere/Jina)
# Required for 'api' backend
# RERANKER_API_KEY=sk-xxxx

# Base URL for reranker API (overrides provider default)
# SiliconFlow: https://api.siliconflow.cn
# Cohere: https://api.cohere.ai
# Jina: https://api.jina.ai
# RERANKER_API_BASE=https://api.siliconflow.cn

# Reranker provider: siliconflow, cohere, jina
# RERANKER_PROVIDER=siliconflow

# Reranker model name
# SiliconFlow: BAAI/bge-reranker-v2-m3
# Cohere: rerank-english-v3.0
# Jina: jina-reranker-v2-base-multilingual
# RERANKER_MODEL=BAAI/bge-reranker-v2-m3

# ============================================
# EMBEDDING Configuration  
# ============================================

# API key for embedding service (for litellm backend)
# EMBEDDING_API_KEY=sk-xxxx

# Base URL for embedding API
# EMBEDDING_API_BASE=https://api.openai.com

# Embedding model name
# EMBEDDING_MODEL=text-embedding-3-small

# ============================================
# LITELLM Configuration
# ============================================

# API key for LiteLLM (for litellm reranker backend)
# LITELLM_API_KEY=sk-xxxx

# Base URL for LiteLLM
# LITELLM_API_BASE=

# LiteLLM model name
# LITELLM_MODEL=gpt-4o-mini

# ============================================
# General Configuration
# ============================================

# Custom data directory path (default: ~/.codexlens)
# CODEXLENS_DATA_DIR=~/.codexlens

# Enable debug mode (true/false)
# CODEXLENS_DEBUG=false
