Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make connectors use user provided base_url when the provided model is also hosted #49

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

mattf
Copy link
Collaborator

@mattf mattf commented Jun 3, 2024

previously, if a model was known to be hosted on a custom endpoint and a user ran the same model locally, the connectors would favor the hosted version. for instance, NVIDIAEmbeddings(model="NV-Embed-QA", base_url="http://localhost/v1") would contact the hosted NV-Embed-QA. likewise, ChatNVIDIA(model="mistralai/mixtral-8x7b-instruct-v0.1", base_url="http://localhost/v1") would contact the hosted mistralai/mixtral-8x7b-instruct-v0.1.

fixes #31

@mattf mattf requested a review from raspawar June 3, 2024 18:55
@mattf mattf self-assigned this Jun 3, 2024
… also hosted

previously, if a model was known to be hosted on a custom endpoint and a user ran the same model locally, the connectors would favor the hosted version. for instance, NVIDIAEmbeddings(model="NV-Embed-QA", base_url="http://localhost/v1") would contact the hosted NV-Embed-QA. likewise, ChatNVIDIA(model="mistralai/mixtral-8x7b-instruct-v0.1", base_url="http://localhost/v1") would contact the hosted mistralai/mixtral-8x7b-instruct-v0.1.

fixes #31
@mattf mattf force-pushed the mattf/default-to-non-hosted-when-base_url-provided branch from f369509 to c24e149 Compare June 3, 2024 18:57
Copy link
Collaborator

@raspawar raspawar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@mattf mattf merged commit bf7026c into main Jun 4, 2024
12 checks passed
@mattf mattf deleted the mattf/default-to-non-hosted-when-base_url-provided branch June 4, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LLM Inference fails when inferencing with locally deployed model having same name as API Catalog model
2 participants