-
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
Request Body to AI API schema #15
Comments
The function is designed to convert and validate incoming parameters for a specific provider based on a given function. It takes three parameters: Here's a breakdown of the function:
|
* #15: Update dependencies in go.mod and add input validation using validator package * #15: Fix validation error in BuildAPIRequest function * #15: Refactor OpenAI provider configuration structure * #15: TODO: Import provider configs to the config list * #15: Import OpenAI provider configuration and update BuildAPIRequest function * #15: comments --------- Co-authored-by: Max <[email protected]>
Transforms the request body to match the structure required by the AI provider.
It also ensures the values for each parameter are within the minimum and maximum
constraints defined in the provider's configuration. If a required parameter is missing,
it assigns the default value from the provider's configuration.
The text was updated successfully, but these errors were encountered: