Skip to content

Commit eeea8eb

Browse files
authored
Merge pull request road-core#150 from tisnik/updated-configuration-class-diagram
Updated configuration class diagram
2 parents 6acac00 + 9b19499 commit eeea8eb

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ get-rag: ## Download a copy of the RAG embedding model and vector database
125125
podman cp tmp-rag-container:/rag/embeddings_model embeddings_model
126126
podman rm tmp-rag-container
127127

128+
config.puml: ## Generate PlantUML class diagram for configuration
129+
pyreverse ols/app/models/config.py --output puml --output-directory=docs/
130+
mv docs/classes.puml docs/config.puml
131+
128132
help: ## Show this help screen
129133
@echo 'Usage: make <OPTIONS> ... <TARGETS>'
130134
@echo ''

docs/config.png

-13.7 KB
Loading

docs/config.puml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ set namespaceSeparator none
44
class "AuthenticationConfig" as ols.app.models.config.AuthenticationConfig {
55
k8s_ca_cert_path : Optional[FilePath]
66
k8s_cluster_api : Optional[AnyHttpUrl]
7+
module : Optional[str]
78
skip_tls_verification : bool
9+
validate_yaml() -> None
810
}
911
class "AzureOpenAIConfig" as ols.app.models.config.AzureOpenAIConfig {
1012
client_id : Optional[str]
@@ -52,6 +54,8 @@ class "LLMProviders" as ols.app.models.config.LLMProviders {
5254
class "LoggingConfig" as ols.app.models.config.LoggingConfig {
5355
app_log_level : int
5456
lib_log_level : int
57+
suppress_auth_checks_warning_in_log : bool
58+
suppress_metrics_in_log : bool
5559
uvicorn_log_level : int
5660
}
5761
class "ModelConfig" as ols.app.models.config.ModelConfig {
@@ -76,6 +80,7 @@ class "OLSConfig" as ols.app.models.config.OLSConfig {
7680
default_provider : Optional[str]
7781
extra_ca : list[FilePath]
7882
logging_config : Optional[LoggingConfig]
83+
max_workers : Optional[int]
7984
query_filters : Optional[list[QueryFilter]]
8085
query_validation_method : Optional[str]
8186
reference_content : Optional[ReferenceContent]

0 commit comments

Comments
 (0)