feat: Add Jina server health check

- Added a health check to the Jina client to verify server availability.
- Improved error handling and messaging for failed health checks.
- Enhanced client robustness by providing feedback on server status.
This commit is contained in:
Mahmoud Emad
2025-03-12 16:38:38 +02:00
parent a7976c45f9
commit 4abb46b4bf
3 changed files with 30 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
import freeflowuniverse.herolib.clients.jina
mut jina_client := jina.get()!
health := jina_client.health()!
println('Server health: ${health}')
// Create embeddings
embeddings := jina_client.create_embeddings(