You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2-ulfhednar-2
changed the title
Custom links with Nvidia components throwing link format errors
Custom api_url with Nvidia components throwing url format errors
Jan 16, 2025
2-ulfhednar-2
changed the title
Custom api_url with Nvidia components throwing url format errors
Certain URLs in api_url with Nvidia components throwing url format errors
Jan 16, 2025
Describe the bug
When creating an Nvidia component with a custom link that isn't in the format http://localhost:8080/v1 or http://localhost:8080 you get:
ValueError: Base URL path is not recognized. Expected format is 'http://host:port'.
This error is also thrown if you use links similar to those specified in this cookbook
https://haystack.deepset.ai/cookbook/rag-with-nims
e.g. "http://nims.example.com/embedding"; "http://nims.example.com/embedding/v1"
or "http://nims.example.com/llm"; "http://nims.example.com/llm/v1"
It seeems to affect all components and is likely caused by the url_validation function called when initializing the components
To Reproduce
Create an Embedder or a Generator (other components likely affected too) with the api_urls specified in the following cookbook.
https://haystack.deepset.ai/cookbook/rag-with-nims
Describe your environment (please complete the following information):
To fix maybe rework the URL_validation function to do the following things instead of how it is currently handled:
The text was updated successfully, but these errors were encountered: