fix: pass all checks for ruff and ty
This commit is contained in:
3
main.py
3
main.py
@@ -464,10 +464,11 @@ async def lifespan(_server: FastMCP) -> AsyncIterator[AppContext]:
|
||||
),
|
||||
)
|
||||
if test_response and test_response.embeddings:
|
||||
embedding_values = test_response.embeddings[0].values
|
||||
log_structured_entry(
|
||||
"GenAI embedding validation successful",
|
||||
"INFO",
|
||||
{"embedding_dimension": len(test_response.embeddings[0].values)}
|
||||
{"embedding_dimension": len(embedding_values) if embedding_values else 0}
|
||||
)
|
||||
else:
|
||||
msg = "Embedding validation returned empty response"
|
||||
|
||||
Reference in New Issue
Block a user