-
Notifications
You must be signed in to change notification settings - Fork 21
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
enhance modelInfo #17
Comments
This is somewhat related to #3. Instead of focusing on specific API proposals, please start with use cases and applications you are trying to build, which you cannot build with the current API. (They should be real applications, ideally that you can link to!) https://whatwg.org/faq#adding-new-features is good reference here, especially step 1. |
I thought this was simply an enhancement to the existing API and not a new proposal, so I had kept the focus solely on the API. I have updated it with a few examples, assuming Multi-Model capability support. |
Can you tell me more about what applications you are currently trying to build, which the current API cannot provide? This reads like a grab-bag wishlist and isn't very actionable. And again it contains a lot of specific solution proposals which we are not yet at the stage of evaluating. |
Sure @domenic Here is a simple chat application that I have build, which can be provided with:
It can also be something as simple as streaming or summarizing text can be enhanced if we get to know more about the model capabilities. |
Streaming is required by this API so there is no need for an API to detect it since it would always return true.
This was added in 6956d4b
This was added in fe41a59.
Temperature is by definition a number between 0 and 1 so this is pointless.
Dupe of #3.
This was added in 6956d4b
Dupe of #3. |
The
ai.modelInfo
interface would be more useful if it includes more detailed information about model capabilities and limits.Use Cases:
The
AIModelInfo
interface provides detailed information about an AI model's capabilities and limits. Here are several practical use cases for this enhanced information:Dynamic UI Adaptation
AIModelInfo.capabilities.supportsStreaming
to determine whether to show a "streaming" toggle in the UI.Intelligent Input Validation
AIModelInfo.limits.maxInputLength
to validate document length before submission.Multilingual Support Detection
AIModelInfo.capabilities.supportedLanguages
to determine which models can handle specific language inputs.Adaptive Temperature Setting
AIModelInfo.limits.minTemperature
andmaxTemperature
to set valid temperature range in the UI.Version-Specific Feature Enablement
AIModelInfo.version
to determine which features to enable.Resource Allocation in Multi-Model Systems
AIModelInfo.limits
to estimate resource requirements for each task.Model Capability Comparison
AIModelInfo
for multiple models and creates a comparison table.The text was updated successfully, but these errors were encountered: