How does HostingConfiguration limit the available text-embedding models #11518
Unanswered
zhaobingshuang
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I want to add a custom wenxin HostingProvider to the hosting_configuration.py file, as shown in the code snippet above. A RestrictModel of the text-embedding type named embedding v1 is added.
However, the Model Provider page shows that there are five available models, not just one embedding v1 as I expected.
How can I solve this problem?
2. Additional context or comments
Changing line 869 of the provider_configuration.py to
if m.model not in restrict_model_names:
suits my needs.Is this the right thing to do?
Is there a better solution?
Modified code
Modified effect
Beta Was this translation helpful? Give feedback.
All reactions