-
Notifications
You must be signed in to change notification settings - Fork 20
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
[FR] Input Language Parameter #63
Comments
I'm unsure how best to make it optional. Can we have it be required instead? Having web API behavior depend on the user's language is not common and is prone to test vs. production mismatches. Having a web API depend on the page's language is possible (i.e. |
Authors may not know what the input language is, for example, in a chatbot scenario. Users may even switch between languages within a single prompt, so I think this can only be an optional hint. |
My hope was that by making it optional, we could add this in a follow up.
Not too sure about what the default should be though:
|
"required but with a default" = "optional" :) But, both messages from above are helpful for me as a reality check, that we probably do need some sort of default. I like the idea of calling it "unspecified" (probably This is not a great situation for a web standard. For example, I think it will be de-facto expected that the language model works mostly on English, with maybe a bit extra. That would effectively prevent other browsers from entering the market with a different primary language for their language model. But, maybe this is the best we can do. |
To improve the accuracy and reliability of the AI APIs, it might be useful to add an optional language parameter for specifying the input's language.
This would allow the implementation to select the optimal model, fine-tuning, and prompting strategy for the given language, resulting in higher quality output. It would also enable the implementation to clearly communicate supported languages (i.e. languages that have been tested for quality and safety), preventing unexpected behavior with unsupported input.
The text was updated successfully, but these errors were encountered: