Skip to content
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

#28813: Moving OpenAI Model paramenters to dotAI App configuration #29236

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

victoralfaro-dotcms
Copy link
Contributor

@victoralfaro-dotcms victoralfaro-dotcms commented Jul 16, 2024

Removing hardcoded OpenAI models at enum class OpenAIModel. Instead they are now part of the dotAI.yml application descriptor so the user can be the one who configures them not only one but multiple models for text, image and embeddings.
The way to specify more than one is to provide a comma delimited list in the new dotAI App params.
Sometimes we accept a model to use in the payload of our AI endpoints, for this matter we will validate that model and if it's invalid we will throw an exception.
When is not present in the payload, then our backend will inject the current model.
Which leads us to the question: How will the current model be determined?
This is part of the work defined for #29284 (model fallback)

This PR fixes: #28813

@victoralfaro-dotcms victoralfaro-dotcms force-pushed the issue-28813-dotai-model-to-app-param branch 3 times, most recently from f215d0b to feee80a Compare July 30, 2024 15:12
@victoralfaro-dotcms victoralfaro-dotcms force-pushed the issue-28813-dotai-model-to-app-param branch from feee80a to 29e7807 Compare July 30, 2024 16:57
@victoralfaro-dotcms victoralfaro-dotcms marked this pull request as ready for review July 30, 2024 20:03
@dsilvam
Copy link
Contributor

dsilvam commented Jul 30, 2024

Please include description for the PR @victoralfaro-dotcms

@victoralfaro-dotcms victoralfaro-dotcms added this pull request to the merge queue Jul 30, 2024
Merged via the queue into master with commit da61861 Jul 30, 2024
30 checks passed
@victoralfaro-dotcms victoralfaro-dotcms deleted the issue-28813-dotai-model-to-app-param branch July 30, 2024 23:24
@victoralfaro-dotcms victoralfaro-dotcms linked an issue Aug 1, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relocate OpenAI model parameters to dotAI App params Parametrized OpenAI Models
4 participants