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
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
PATH_TO_PLANTUML := ~/bin


run: ## Run the service locally
python src/lightspeed-stack.py

Expand All @@ -14,4 +17,13 @@ format: ## Format the code into unified format
requirements.txt: pyproject.toml pdm.lock ## Generate requirements.txt file containing hashes for all non-devel packages
pdm export --prod --format requirements --output requirements.txt --no-extras --without evaluation

docs/config.puml: ## Generate PlantUML class diagram for configuration
pyreverse src/models/config.py --output puml --output-directory=docs/
mv docs/classes.puml docs/config.puml

docs/config.png: docs/config.puml ## Generate an image with configuration graph
pushd docs && \
java -jar ${PATH_TO_PLANTUML}/plantuml.jar --theme rose config.puml && \
mv classes.png config.png && \
popd

Binary file added docs/config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/config.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@startuml classes
set namespaceSeparator none
class "Configuration" as src.models.config.Configuration {
llama_stack
name : str
}
class "LLamaStackConfiguration" as src.models.config.LLamaStackConfiguration {
api_key : Optional[str]
url : Optional[str]
use_as_library_client : Optional[bool]
check_llama_stack_model() -> Self
}
src.models.config.LLamaStackConfiguration --* src.models.config.Configuration : llama_stack
@enduml