Repository navigation
[API] Add model capabilities for the supported endpoints - #411
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
| ModelCapabilityUnknown ModelCapability = "" | ||
|
|
||
| // Endpoints capabilities | ||
| ModelCapability_OpenAI_V1_CHAT_COMPLETIONS ModelCapability = "OPENAI_V1_CHAT_COMPLETIONS" |
There was a problem hiding this comment.
what is the diffference between ModelCapability_OpenAI_V1_CHAT_COMPLETIONS and ModelCapabilityChat?
There was a problem hiding this comment.
ModelCapability_OpenAI_V1_CHAT_COMPLETIONS indicates that the model runtime explicitly supports the OpenAI v1 /chat/completions API. This capability is tied to a specific provider API.
ModelCapabilityChat, on the other hand, is a legacy, generic chat capability. It does not specify which provider API the model supports (Cohere, OpenAI, Gemini, etc.)
|
|
||
| // Endpoints capabilities | ||
| ModelCapability_OpenAI_V1_CHAT_COMPLETIONS ModelCapability = "OPENAI_V1_CHAT_COMPLETIONS" | ||
| ModelCapability_OpenAI_V1_RESPONSES ModelCapability = "OPENAI_V1_RESPONSES" |
There was a problem hiding this comment.
what if the model support v1-chat-completions and v1-responses?
There was a problem hiding this comment.
Model capabilities are represented as an array, so a model can include multiple capability values to indicate support for both endpoints.
| // Endpoints supported by the model, e.g., "OPENAI_V1_CHAT_COMPLETIONS" | ||
| // +listType=atomic | ||
| // +optional | ||
| Endpoints []ModelEndpoint `json:"endpoints,omitempty"` |
There was a problem hiding this comment.
we used Endpoint for other meaning.
The ModelEndpoint is a little confusing.
would you mind change a name?
how about supportedApis, apiCapabilities or others?
There was a problem hiding this comment.
thanks. changed to ModelAPICapability and apiCapabilities.
* Add model capabilities for the supported endpoints * Add new model capacities and endpoints * Use ModelAPICapability as the name
* Add model capabilities for the supported endpoints * Add new model capacities and endpoints * Use ModelAPICapability as the name
What this PR does:
Why we need it:
Fixes #
How to test
N/A
Checklist
make testpasses locally