This commit is contained in:
vasilije 2026-01-06 18:05:34 +01:00
parent 555eef69e3
commit aa4ab1ed8a
2 changed files with 4 additions and 2 deletions

View file

@ -134,7 +134,9 @@ class LiteLLMEmbeddingEngine(EmbeddingEngine):
litellm.aembedding(
model=self.model,
input=text,
api_key=self.api_key if self.api_key and self.api_key.strip() != "" else "EMPTY",
api_key=self.api_key
if self.api_key and self.api_key.strip() != ""
else "EMPTY",
api_base=self.endpoint,
api_version=self.api_version,
),

View file

@ -20,7 +20,7 @@ def get_api_auth_backend():
lifetime_seconds = int(os.getenv("JWT_LIFETIME_SECONDS", "3600"))
except ValueError:
lifetime_seconds = 3600
return APIJWTStrategy(secret, lifetime_seconds=lifetime_seconds)
auth_backend = AuthenticationBackend(