langchaingo icon indicating copy to clipboard operation
langchaingo copied to clipboard

fix(openai): replace deprecated gpt-4-vision-preview with gpt-4o in TestMultiContentImage

Open karsharma10 opened this issue 8 months ago • 0 comments

PR Checklist

  • [x] Read the Contributing documentation.
  • [x] Read the Code of conduct documentation.
  • [x] Name your Pull Request title clearly, concisely, and prefixed with the name of the primarily affected package you changed according to Good commit messages (such as memory: add interfaces for X, Y or util: add whizzbang helpers).
  • [x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • [x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. Fixes #123).
  • [x] Describes the source of new concepts.
  • [ ] References existing implementations as appropriate.
  • [x] Contains test coverage for new functions.
  • [x] Passes all golangci-lint checks.

When running multicontent_test.go under llms/openai got error:

API returned unexpected status code: 404: The model gpt-4-vision-preview has been deprecated, learn more here: https://platform.openai.com/docs/deprecations

Follow the deprecations guide link above :

image

Thus, I changed: gpt-4-vision-preview -> gpt-4o in the multicontent_test.go

karsharma10 avatar Apr 25 '25 15:04 karsharma10