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

update: renamed openAI model enums and add dimension #18

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

milosgajdos
Copy link
Owner

@milosgajdos milosgajdos commented Mar 4, 2024

The new V3 text embedding models introduced an option dimensions parameter. This adds it to the open AI API payload. We are also renaming the enum variable names for the new models.


Ellipsis 🚀 This PR description was created by Ellipsis for commit 29ab810.

Summary:

This PR adds a dimensions field to the EmbeddingRequest struct and renames the enum variable names for the new models.

Key points:

  • Added Dims field to EmbeddingRequest struct in openai/embedding.go.
  • Renamed enum variable names for new models in openai/openai.go.

Generated with ❤️ by ellipsis.dev

The new V3 text embedding models introduced an option dimensions
parameter. This adds it to the open AI API payload.
We are also renaming the enum variable names for the new models.

Signed-off-by: Milos Gajdos <[email protected]>
@milosgajdos milosgajdos merged commit d703196 into main Mar 4, 2024
4 checks passed
@milosgajdos milosgajdos deleted the openai-add-dims branch March 4, 2024 21:58
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me!

  • Reviewed the entire pull request up to 29ab810
  • Looked at 32 lines of code in 2 files
  • Took 1 minute and 11 seconds to review
More info
  • Skipped 0 files when reviewing.
  • Skipped posting 2 additional comments because they didn't meet confidence threshold of 50%.
1. openai/embedding.go:86:
  • Assessed confidence : 0%
  • Comment:
    The new field 'Dims' has been added correctly and the comment explaining its usage is clear. Good job!
  • Reasoning:
    The PR author has added a new field 'Dims' to the EmbeddingRequest struct in embedding.go. This field is optional and is only supported in V3 and later. The PR author has also renamed the enum variable names for the new models in openai.go. The changes seem to be in line with the PR description and there doesn't seem to be any logical, performance, or security bugs introduced with these changes.
2. openai/openai.go:8:
  • Assessed confidence : 0%
  • Comment:
    The renaming of the enum variable names for the new models is clear and consistent. Good job!
  • Reasoning:
    The PR author has renamed the enum variable names for the new models in openai.go. The changes seem to be in line with the PR description and there doesn't seem to be any logical, performance, or security bugs introduced with these changes.

Workflow ID: wflow_cK33ZlvjOMzJgAqe


Not what you expected? You can customize the content of the reviews using rules. Learn more here.

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.

1 participant