Skip to content

OpenAI model updates #13951

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 5 commits into from
Sep 13, 2024
Merged

OpenAI model updates #13951

merged 5 commits into from
Sep 13, 2024

Conversation

GTFalcao
Copy link
Collaborator

@GTFalcao GTFalcao commented Sep 13, 2024

Closes #13945

Replaced deprecated gpt-4-vision-preview with the recommended replacement gpt-4o (it's also twice as cheap as the deprecated model).

Also replaced the default chat completion model gpt-3.5-turbo with gpt-4o-mini as recommended by OpenAI as "cheaper, more capable, multimodal, and just as fast".

Summary by CodeRabbit

Release Notes

  • New Features

    • Updated the image analysis model to enhance performance and capabilities.
    • Introduced new version updates for various components, indicating potential improvements and bug fixes.
  • Bug Fixes

    • Minor revisions across multiple components, ensuring smoother functionality and stability.
  • Documentation

    • Version numbers updated across all components and modules to reflect the latest changes and enhancements.
  • Chores

    • Incremented package version to signify overall updates and improvements.

Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pipedream ❌ Failed (Inspect) Sep 13, 2024 8:44pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Visit Preview Sep 13, 2024 8:44pm
pipedream-docs ⬜️ Ignored (Inspect) Sep 13, 2024 8:44pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Sep 13, 2024 8:44pm

Copy link
Contributor

coderabbitai bot commented Sep 13, 2024

Walkthrough

The pull request introduces multiple version updates across various OpenAI action components, reflecting enhancements, bug fixes, or minor revisions. Significant changes include the update of the image analysis model in the analyze-image-content module and the increment of version numbers in several other components, indicating new releases. The updates maintain the core functionalities of the components while potentially improving performance and reliability.

Changes

File Path Change Summary
components/openai/actions/analyze-image-content/analyze-image-content.mjs Version updated from "0.0.3" to "0.1.0"; model changed from "gpt-4-vision-preview" to "gpt-4o".
components/openai/actions/cancel-run/cancel-run.mjs Version updated from "0.0.9" to "0.0.10".
components/openai/actions/chat-with-assistant/chat-with-assistant.mjs Version updated from "0.0.4" to "0.0.5".
components/openai/actions/chat/chat.mjs Version updated from "0.1.13" to "0.2.0".
components/openai/actions/classify-items-into-categories/classify-items-into-categories.mjs Version updated from "0.0.13" to "0.1.0".
components/openai/actions/convert-text-to-speech/convert-text-to-speech.mjs Version updated from "0.0.8" to "0.0.9".
components/openai/actions/create-assistant/create-assistant.mjs Version updated from "0.1.6" to "0.1.7".
components/openai/actions/create-batch/create-batch.mjs Version updated from "0.0.3" to "0.0.4".
components/openai/actions/create-embeddings/create-embeddings.mjs Version updated from "0.0.11" to "0.0.12".
components/openai/actions/create-fine-tuning-job/create-fine-tuning-job.mjs Version updated from "0.0.8" to "0.0.9".
components/openai/actions/create-image/create-image.mjs Version updated from "0.1.16" to "0.1.17".
components/openai/actions/create-moderation/create-moderation.mjs Version updated from "0.0.3" to "0.0.4".
components/openai/actions/create-thread/create-thread.mjs Version updated from "0.0.8" to "0.0.9".
components/openai/actions/create-transcription/create-transcription.mjs Version updated from "0.1.11" to "0.1.12".
components/openai/actions/delete-file/delete-file.mjs Version updated from "0.0.9" to "0.0.10".
components/openai/actions/list-files/list-files.mjs Version updated from "0.0.9" to "0.0.10".
components/openai/actions/list-messages/list-messages.mjs Version updated from "0.0.10" to "0.0.11".
components/openai/actions/list-run-steps/list-run-steps.mjs Version updated from "0.0.9" to "0.0.10".
components/openai/actions/list-runs/list-runs.mjs Version updated from "0.0.10" to "0.0.11".
components/openai/actions/modify-assistant/modify-assistant.mjs Version updated from "0.1.6" to "0.1.7".
components/openai/actions/retrieve-file-content/retrieve-file-content.mjs Version updated from "0.0.9" to "0.0.10".
components/openai/actions/retrieve-file/retrieve-file.mjs Version updated from "0.0.9" to "0.0.10".
components/openai/actions/retrieve-run-step/retrieve-run-step.mjs Version updated from "0.0.9" to "0.0.10".
components/openai/actions/retrieve-run/retrieve-run.mjs Version updated from "0.0.9" to "0.0.10".
components/openai/actions/send-prompt/send-prompt.mjs Version updated from "0.1.10" to "0.1.11".
components/openai/actions/submit-tool-outputs-to-run/submit-tool-outputs-to-run.mjs Version updated from "0.0.9" to "0.0.10".
components/openai/actions/summarize/summarize.mjs Version updated from "0.0.13" to "0.1.0".
components/openai/actions/translate-text/translate-text.mjs Version updated from "0.0.15" to "0.1.0".
components/openai/actions/upload-file/upload-file.mjs Version updated from "0.0.12" to "0.0.13".
components/openai/openai.app.mjs Default model changed from "gpt-3.5-turbo" to "gpt-4o-mini".
components/openai/package.json Version updated from "0.5.6" to "0.6.0".
components/openai/sources/new-batch-completed/new-batch-completed.mjs Version updated from "0.0.3" to "0.0.4".
components/openai/sources/new-file-created/new-file-created.mjs Version updated from "0.0.8" to "0.0.9".
components/openai/sources/new-fine-tuning-job-created/new-fine-tuning-job-created.mjs Version updated from "0.0.8" to "0.0.9".
components/openai/sources/new-run-state-changed/new-run-state-changed.mjs Version updated from "0.0.4" to "0.0.5".

Possibly related PRs

  • New Components - openperplex #13856: The main PR updates the model used for image analysis in the analyze-image-content module, while this PR introduces new components related to the Openperplex project, which may involve similar functionalities in image or content processing.
  • New Components - krispcall #13867: The main PR's changes to the analyze-image-content module could relate to the new components introduced for managing actions in the KrispCall API, as both involve enhancements in processing and managing data.
  • Gmail usability pt.2 #13868: The main PR's focus on updating the image analysis model may connect with the Gmail usability improvements, particularly if the changes impact how images or attachments are handled in email communications.
  • New Components - agiliron #13883: The introduction of new components for the Agiliron platform in this PR may relate to the main PR if there are overlapping functionalities in managing or analyzing content, especially if Agiliron components involve image or data processing.
  • Toggl Client & Project Creation #13884: The Toggl PR focuses on client and project creation, which may not directly relate to the image analysis updates but could share common themes in data management and processing within the application ecosystem.

Suggested labels

ai-assisted

Poem

🐇 In the garden where ideas bloom,
New versions hop, dispelling gloom.
Models shift, like clouds in play,
Enhancements sprout, brightening the day.
With every change, a leap we take,
In the world of code, new paths we make! 🌼

Tip

OpenAI O1 model for chat
  • We have deployed OpenAI's latest O1 model for chat.
  • OpenAI claims that this model has superior reasoning capabilities than their GPT-4o model.
  • Please share any feedback with us in the discussions post.

Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 9b31c08 and e708702.

Files selected for processing (35)
  • components/openai/actions/analyze-image-content/analyze-image-content.mjs (2 hunks)
  • components/openai/actions/cancel-run/cancel-run.mjs (1 hunks)
  • components/openai/actions/chat-with-assistant/chat-with-assistant.mjs (1 hunks)
  • components/openai/actions/chat/chat.mjs (1 hunks)
  • components/openai/actions/classify-items-into-categories/classify-items-into-categories.mjs (1 hunks)
  • components/openai/actions/convert-text-to-speech/convert-text-to-speech.mjs (1 hunks)
  • components/openai/actions/create-assistant/create-assistant.mjs (1 hunks)
  • components/openai/actions/create-batch/create-batch.mjs (1 hunks)
  • components/openai/actions/create-embeddings/create-embeddings.mjs (1 hunks)
  • components/openai/actions/create-fine-tuning-job/create-fine-tuning-job.mjs (1 hunks)
  • components/openai/actions/create-image/create-image.mjs (1 hunks)
  • components/openai/actions/create-moderation/create-moderation.mjs (1 hunks)
  • components/openai/actions/create-thread/create-thread.mjs (1 hunks)
  • components/openai/actions/create-transcription/create-transcription.mjs (1 hunks)
  • components/openai/actions/delete-file/delete-file.mjs (1 hunks)
  • components/openai/actions/list-files/list-files.mjs (1 hunks)
  • components/openai/actions/list-messages/list-messages.mjs (1 hunks)
  • components/openai/actions/list-run-steps/list-run-steps.mjs (1 hunks)
  • components/openai/actions/list-runs/list-runs.mjs (1 hunks)
  • components/openai/actions/modify-assistant/modify-assistant.mjs (1 hunks)
  • components/openai/actions/retrieve-file-content/retrieve-file-content.mjs (1 hunks)
  • components/openai/actions/retrieve-file/retrieve-file.mjs (1 hunks)
  • components/openai/actions/retrieve-run-step/retrieve-run-step.mjs (1 hunks)
  • components/openai/actions/retrieve-run/retrieve-run.mjs (1 hunks)
  • components/openai/actions/send-prompt/send-prompt.mjs (1 hunks)
  • components/openai/actions/submit-tool-outputs-to-run/submit-tool-outputs-to-run.mjs (1 hunks)
  • components/openai/actions/summarize/summarize.mjs (1 hunks)
  • components/openai/actions/translate-text/translate-text.mjs (1 hunks)
  • components/openai/actions/upload-file/upload-file.mjs (1 hunks)
  • components/openai/openai.app.mjs (1 hunks)
  • components/openai/package.json (1 hunks)
  • components/openai/sources/new-batch-completed/new-batch-completed.mjs (1 hunks)
  • components/openai/sources/new-file-created/new-file-created.mjs (1 hunks)
  • components/openai/sources/new-fine-tuning-job-created/new-fine-tuning-job-created.mjs (1 hunks)
  • components/openai/sources/new-run-state-changed/new-run-state-changed.mjs (1 hunks)
Files skipped from review due to trivial changes (30)
  • components/openai/actions/cancel-run/cancel-run.mjs
  • components/openai/actions/chat-with-assistant/chat-with-assistant.mjs
  • components/openai/actions/classify-items-into-categories/classify-items-into-categories.mjs
  • components/openai/actions/convert-text-to-speech/convert-text-to-speech.mjs
  • components/openai/actions/create-assistant/create-assistant.mjs
  • components/openai/actions/create-batch/create-batch.mjs
  • components/openai/actions/create-embeddings/create-embeddings.mjs
  • components/openai/actions/create-fine-tuning-job/create-fine-tuning-job.mjs
  • components/openai/actions/create-image/create-image.mjs
  • components/openai/actions/create-moderation/create-moderation.mjs
  • components/openai/actions/create-thread/create-thread.mjs
  • components/openai/actions/create-transcription/create-transcription.mjs
  • components/openai/actions/delete-file/delete-file.mjs
  • components/openai/actions/list-files/list-files.mjs
  • components/openai/actions/list-messages/list-messages.mjs
  • components/openai/actions/list-run-steps/list-run-steps.mjs
  • components/openai/actions/list-runs/list-runs.mjs
  • components/openai/actions/modify-assistant/modify-assistant.mjs
  • components/openai/actions/retrieve-file-content/retrieve-file-content.mjs
  • components/openai/actions/retrieve-file/retrieve-file.mjs
  • components/openai/actions/retrieve-run-step/retrieve-run-step.mjs
  • components/openai/actions/retrieve-run/retrieve-run.mjs
  • components/openai/actions/send-prompt/send-prompt.mjs
  • components/openai/actions/submit-tool-outputs-to-run/submit-tool-outputs-to-run.mjs
  • components/openai/actions/upload-file/upload-file.mjs
  • components/openai/package.json
  • components/openai/sources/new-batch-completed/new-batch-completed.mjs
  • components/openai/sources/new-file-created/new-file-created.mjs
  • components/openai/sources/new-fine-tuning-job-created/new-fine-tuning-job-created.mjs
  • components/openai/sources/new-run-state-changed/new-run-state-changed.mjs
Additional comments not posted (8)
components/openai/actions/summarize/summarize.mjs (1)

7-7: Clarify the specific enhancements or new features introduced in this version update.

The version number has been incremented from "0.0.13" to "0.1.0", which indicates a minor version update that typically introduces new backwards-compatible functionality. However, the code changes in this file do not reveal any new functionality being introduced.

Please provide more details on the specific enhancements or new features that justify the minor version increment. This will help maintain a clear and accurate versioning system for this component.

components/openai/actions/translate-text/translate-text.mjs (2)

12-12: Version update: Request more information about the changes introduced.

The version number has been incremented from "0.0.15" to "0.1.0", suggesting significant updates or enhancements to the functionality of the component. However, the specific changes are not detailed in the provided diff.

Could you please provide more information about the new features, improvements, or bug fixes introduced in this version? This will help in conducting a more thorough review and providing meaningful feedback.


Line range hint 1-74: Existing code structure and implementation look good!

The overall code structure and implementation of the "Translate Text (Whisper)" action component follow best practices and are well-organized. The code is modular, readable, and maintains a clear separation of concerns.

The use of common helper functions and language options ensures consistency and reusability across the codebase. The props, methods, and output formatting are properly defined and implemented.

Great job on maintaining a clean and maintainable codebase!

components/openai/actions/analyze-image-content/analyze-image-content.mjs (3)

11-11: Version number increment looks good!

The version number has been incremented from "0.0.3" to "0.1.0", following semantic versioning conventions. This change indicates a new release that may include enhancements or changes in functionality.


47-47: The model update aligns with the PR objective and OpenAI's recommendations.

The image analysis model has been updated from the deprecated "gpt-4-vision-preview" to the recommended "gpt-4o". This change is in line with the PR objective to align with OpenAI's latest recommendations and is supported by the provided link to the deprecation notice.


47-47: Verify the image analysis functionality with the new model.

The model update may introduce changes in the image analysis functionality. Please ensure that the image analysis feature is thoroughly tested with the new "gpt-4o" model to confirm that it behaves as expected.

components/openai/actions/chat/chat.mjs (1)

8-8: Clarify the enhancements or new features introduced in version 0.2.0.

The version update from 0.1.13 to 0.2.0 suggests the introduction of new backwards-compatible functionality, as per semantic versioning conventions. However, the specific enhancements or new features are not evident from the code change alone.

Please provide more details on what has changed in this version:

  1. What are the new features or enhancements introduced?
  2. Are there any changes to the API or behavior that consumers of this module should be aware of?

Additionally, consider verifying if this version update has any impact on dependent code or configurations that rely on a specific version of this module.

You can use the following script to search for occurrences of the previous version in the codebase and assess the impact:

components/openai/openai.app.mjs (1)

24-24: LGTM!

The change in the default chat completion model from "gpt-3.5-turbo" to "gpt-4o-mini" aligns with the PR objectives and OpenAI's latest recommendations. The new model is noted to be more cost-effective and capable while maintaining similar performance.

No additional changes are required to support this update.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ACTION] Make sure OpenAI models are up to date
2 participants