You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseInvalidTokenExpirationException(detail=f"Token expiration timestamp cannot be greater than {self.max_token_expiration_days} days from now.") # fmt: off
raiseInvalidTokenExpirationException(detail=f"Token expiration timestamp cannot be greater than {self.key_max_expiration_days} days from now.") # fmt: off
disabled_routers: list[Routers] =Field(default_factory=list, description="Disabled routers to limits services of the API.", examples=[["embeddings"]]) # fmt: off
419
413
hidden_routers: list[Routers] =Field(default_factory=list, description="Routers are enabled but hidden in the swagger and the documentation of the API.", examples=[["admin"]]) # fmt: off
414
+
app_title: str|None=Field(default="Albert API", description="Display title of your API in swagger UI, see https://fastapi.tiangolo.com/tutorial/metadata for more information.", examples=["Albert API"]) # fmt: off
420
415
421
416
# metrics
422
417
metrics_retention_ms: int=Field(default=40000, ge=1, description="Retention time for metrics in milliseconds.") # fmt: off
@@ -429,7 +424,6 @@ class Settings(ConfigBaseModel):
429
424
log_format: str|None=Field(default="[%(asctime)s][%(process)d:%(name)s][%(levelname)s] %(client_ip)s - %(message)s", description="Logging format of the API.") # fmt: off
430
425
431
426
# swagger
432
-
swagger_title: str|None=Field(default="Albert API", description="Display title of your API in swagger UI, see https://fastapi.tiangolo.com/tutorial/metadata for more information.", examples=["Albert API"]) # fmt: off
433
427
swagger_summary: str|None=Field(default="Albert API connect to your models. You can configuration this swagger UI in the configuration file, like hide routes or change the title.", description="Display summary of your API in swagger UI, see https://fastapi.tiangolo.com/tutorial/metadata for more information.", examples=["Albert API connect to your models."]) # fmt: off
434
428
swagger_version: str|None=Field(default="latest", description="Display version of your API in swagger UI, see https://fastapi.tiangolo.com/tutorial/metadata for more information.", examples=["2.5.0"]) # fmt: off
435
429
swagger_description: str|None=Field(default="[See documentation](https://github.com/etalab-ia/opengatellm/blob/main/README.md)", description="Display description of your API in swagger UI, see https://fastapi.tiangolo.com/tutorial/metadata for more information.", examples=["[See documentation](https://github.com/etalab-ia/opengatellm/blob/main/README.md)"]) # fmt: off
@@ -443,7 +437,7 @@ class Settings(ConfigBaseModel):
443
437
444
438
# auth
445
439
auth_master_key: constr(strip_whitespace=True, min_length=1) =Field(default="changeme", description="Master key for the API. It should be a random string with at least 32 characters. This key has all permissions and cannot be modified or deleted. This key is used to create the first role and the first user. This key is also used to encrypt user tokens, watch out if you modify the master key, you'll need to update all user API keys.") # fmt: off
446
-
auth_max_token_expiration_days: int|None=Field(default=None, ge=1, description="Maximum number of days for a token to be valid.") # fmt: off
440
+
auth_key_max_expiration_days: int|None=Field(default=None, ge=1, description="Maximum number of days for a new API key to be valid.") # fmt: off
447
441
auth_playground_session_duration: int=Field(default=3600, ge=1, description="Duration of the playground session in seconds.") # fmt: off
0 commit comments