Skip to content

Conversation

@ribeirogab
Copy link
Owner

This pull request introduces a new feature to the OpenAI setup process, allowing users to select their preferred language model during configuration. Key changes include:

  • Added support for OPENAI_CHAT_MODEL in environment variables to store the selected model.
  • Implemented a user prompt to choose from predefined models such as gpt-4, gpt-3.5-turbo, and others.
  • Updated OpenAIProvider to dynamically utilize the selected model in API requests, with a default fallback to gpt-4o-mini.
  • Improved type safety by integrating ChatModel typing from OpenAI's resources.
  • Enhanced tests to validate the new model selection functionality.
  • Updated the package version to 0.3.0 to reflect the new feature.

This update provides users with greater flexibility and control over the language model, improving customization to better meet diverse requirements.

@ribeirogab ribeirogab added enhancement New feature or request minor Version when you add functionality in a backward compatible manner labels Nov 28, 2024
@ribeirogab ribeirogab self-assigned this Nov 28, 2024
@ribeirogab ribeirogab linked an issue Nov 28, 2024 that may be closed by this pull request
@ribeirogab ribeirogab merged commit 899e04c into main Nov 28, 2024
1 check passed
@ribeirogab ribeirogab deleted the release/v0.3.0 branch November 28, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request minor Version when you add functionality in a backward compatible manner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve OpenAI setup: choose language model

2 participants