Skip to content

Commit e7c5cfc

Browse files
authored
Merge pull request #353 from tisnik/minor-fixes-in-endpoints
Minor fixes in endpoints implementations
2 parents 015f5aa + e51dcc6 commit e7c5cfc

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/app/endpoints/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
503: {
5151
"detail": {
52-
"response": "Configuration is no loaded",
52+
"response": "Configuration is not loaded",
5353
}
5454
},
5555
}

src/app/endpoints/health.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ async def get_providers_health_statuses() -> list[ProviderHealthStatus]:
3131
try:
3232
client = AsyncLlamaStackClientHolder().get_client()
3333

34-
# providers = []
3534
providers = await client.providers.list()
3635
logger.debug("Found %d providers", len(providers))
3736

src/app/endpoints/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def models_endpoint_handler(_request: Request) -> ModelsResponse:
4848
check_configuration_loaded(configuration)
4949

5050
llama_stack_configuration = configuration.llama_stack_configuration
51-
logger.info("LLama stack config: %s", llama_stack_configuration)
51+
logger.info("Llama stack config: %s", llama_stack_configuration)
5252

5353
try:
5454
# try to get Llama Stack client

src/app/endpoints/streaming_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,8 @@ async def retrieve_response(
556556
query_request.no_tools or False,
557557
)
558558

559+
logger.debug("Session ID: %s", conversation_id)
560+
559561
# bypass tools and MCP servers if no_tools is True
560562
if query_request.no_tools:
561563
mcp_headers = {}
@@ -582,7 +584,6 @@ async def retrieve_response(
582584
),
583585
}
584586

585-
logger.debug("Session ID: %s", conversation_id)
586587
vector_db_ids = [
587588
vector_db.identifier for vector_db in await client.vector_dbs.list()
588589
]
@@ -593,7 +594,6 @@ async def retrieve_response(
593594
if not toolgroups:
594595
toolgroups = None
595596

596-
logger.debug("Session ID: %s", conversation_id)
597597
response = await agent.create_turn(
598598
messages=[UserMessage(role="user", content=query_request.query)],
599599
session_id=session_id,

0 commit comments

Comments
 (0)