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

🤖 feat: Recognize chatgpt-4o-latest, update default OpenAI Models #3667

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

danny-avila
Copy link
Owner

@danny-avila danny-avila commented Aug 16, 2024

Summary

Closes #3642

  • Added recognition for the "chatgpt-4o-latest" model in the getValueKey function, mapping it to "gpt-4o" for token calculations.
  • Updated the .env.example file to include "chatgpt-4o-latest" in the OPENAI_MODELS list.
  • Modified the default retrieval models in config.ts to include "chatgpt-4o-latest".
  • Updated the default models for OpenAI and Assistants endpoints to prioritize "chatgpt-4o-latest".
  • Added unit tests in tx.spec.js to ensure correct handling of the new model type.
  • Bumped the data-provider package version to 0.7.412 to reflect these changes.

Change Type

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Testing

Unit tests updated to handle chatgpt-4o-latest cases.

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes

@danny-avila danny-avila merged commit 16c9aed into main Aug 16, 2024
4 checks passed
@danny-avila danny-avila deleted the feat/chatgpt-4o branch August 16, 2024 19:28
danny-avila added a commit that referenced this pull request Aug 17, 2024
…3667)

* 🤖 feat: recognize chatgpt-4o-latest, update default OpenAI models

* chore: Bump data-provider version to 0.7.412
kenshinsamue pushed a commit to intelequia/LibreChat that referenced this pull request Sep 17, 2024
…anny-avila#3667)

* 🤖 feat: recognize chatgpt-4o-latest, update default OpenAI models

* chore: Bump data-provider version to 0.7.412
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.

Enhancement: Add Support for chatgpt-4o-latest Model
1 participant