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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user