Closed hemanth closed 3 months ago
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.
- Dynamic UI Adaptation
Streaming is required by this API so there is no need for an API to detect it since it would always return true.
2. Intelligent Input Validation
This was added in 6956d4b2e3bc7534fe9768ec5b5035d357f3652a
3. Multilingual Support Detection
This was added in fe41a59a569b3959ad715799f5d38bd5b2976d0d.
4. Adaptive Temperature Setting
Temperature is by definition a number between 0 and 1 so this is pointless.
5. Version-Specific Feature Enablement
Dupe of #3.
6. Resource Allocation in Multi-Model Systems
This was added in 6956d4b2e3bc7534fe9768ec5b5035d357f3652a
7. Model Capability Comparison
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.