Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ VLM_FORCE_MOCK=false
VLM_SNAPSHOT_ASSIST_ENABLED=true
AI_SERVICE_TOKEN=change-me-same-as-strange-back
# GEMINI_MODEL=gemini-2.5-flash
# GEMINI_EMBEDDING_MODEL=text-embedding-004
# GEMINI_EMBEDDING_MODEL=gemini-embedding-001
# AI_INTERNAL_VLM_ENABLED=true
# AI_INTERNAL_VLM_PORT=8091
4 changes: 2 additions & 2 deletions ai/embedding_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class GeminiEmbeddingProvider:
def __init__(
self,
api_key: str,
model: str = "text-embedding-004",
model: str = "gemini-embedding-001",
*,
timeout_sec: float = 30.0,
max_attempts: int = 3,
Expand Down Expand Up @@ -200,7 +200,7 @@ def resolve_provider(provider_name: str | None = None, api_key: str | None = Non
raise
key = api_key if api_key is not None else os.getenv("GEMINI_API_KEY", "")
if resolved == "gemini":
model = os.getenv("GEMINI_EMBEDDING_MODEL", os.getenv("VLM_QUERY_EMBEDDING_MODEL", "text-embedding-004"))
model = os.getenv("GEMINI_EMBEDDING_MODEL", os.getenv("VLM_QUERY_EMBEDDING_MODEL", "gemini-embedding-001"))
timeout = _environment_float("EMBEDDING_TIMEOUT_SEC", 30.0)
attempts = _environment_int("EMBEDDING_MAX_ATTEMPTS", 3)
return GeminiEmbeddingProvider(api_key=key, model=model, timeout_sec=timeout, max_attempts=attempts)
Expand Down
Loading