(request: EmbedRequest)
| 19 | |
| 20 | @app.post("/embed", response_model=EmbedResponse) |
| 21 | async def embed(request: EmbedRequest): |
| 22 | client = get_dirty_client() |
| 23 | result = client.execute( |
| 24 | "embedding_service.embedding_app:EmbeddingApp", |
| 25 | "embed", |
| 26 | request.texts |
| 27 | ) |
| 28 | return EmbedResponse(embeddings=result) |
| 29 | |
| 30 | |
| 31 | @app.get("/health") |
nothing calls this directly
no test coverage detected