in API, is there any way to list the available/applicable models specific to a capability (chat, embeddings etc)? #1400
Unanswered
joshuamosesb
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this snippet lists all available models for the
client
instance.But, is there any way to list available/valid models at respective capability level like
client.chat.models.list()
orclient.embeddings.models.list()
?this will help in passing a suitable model name while calling the respective
create
method (e.g.,client.chat.completion.create
)if we pass
model="text-embedding-ada-002"
not suitable forchat.completion.create
we get an error:
Beta Was this translation helpful? Give feedback.
All reactions