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 @@ -24,6 +24,6 @@ AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-3-large
AZURE_OPENAI_CHAT_DEPLOYMENT=

# change if you are using external services
KEYCLOAK_HOST=keycloak
KEYCLOAK_BASE_URL=http://keycloak:8080
CELERY_BROKER_HOST=rabbit-mq
PG_HOST=eval-db
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ poetry self add poetry-plugin-shell

```bash
# container variables
KEYCLOAK_HOST=keycloak
KEYCLOAK_BASE_URL=http://keycloak:8080
CELERY_BROKER_HOST=rabbit-mq
PG_HOST=eval-db
```
Expand All @@ -161,7 +161,7 @@ poetry self add poetry-plugin-shell

```bash
# container variables
# KEYCLOAK_HOST=keycloak
# KEYCLOAK_BASE_URL=http://keycloak:8080
# CELERY_BROKER_HOST=rabbit-mq
# PG_HOST=eval-db
```
Expand Down
5 changes: 2 additions & 3 deletions backend/llm_eval/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,15 @@ class EvaluationSettings(BaseSettings, prefix="EVALUATION_"):

class AuthConfig(BaseSettings):
algorithms_str: str = Field(alias="AUTH_ALGORITHMS", default="RS256")
keycloak_host: str = Field(default="keycloak")
keycloak_port: int = Field(default=8090)
keycloak_base_url: str = Field(default="http://localhost:8080")

@property
def algorithms(self) -> list[str]:
return self.algorithms_str.split(",")

@property
def jwks_uri(self) -> str:
return f"http://{self.keycloak_host}:{self.keycloak_port}/realms/llm-eval/protocol/openid-connect/certs"
return f"{self.keycloak_base_url}/realms/llm-eval/protocol/openid-connect/certs"


class DeepEvalSettings(BaseSettings, prefix="DEEPEVAL_"):
Expand Down
Loading