Skip to content

feat: restore beta.vector_stores alias and fix vision README example - #3216

Closed
zuhabul wants to merge 2 commits into
openai:mainfrom
zuhabul:docs/vision-image-smaller
Closed

zuhabul wants to merge 2 commits into
openai:mainfrom
zuhabul:docs/vision-image-smaller

Conversation

@zuhabul

@zuhabul zuhabul commented May 9, 2026 •

Copy link
Copy Markdown

Summary

  • restore client.beta.vector_stores as a backwards-compatible alias to client.vector_stores for sync and async clients
  • add alias support for with_raw_response and with_streaming_response beta wrappers
  • add targeted tests covering the alias behavior
  • update the README vision image URL to a smaller thumbnail to avoid download-size failures

Why

Closes #2451
Closes #2776

Use a smaller Wikimedia thumbnail in the vision example to avoid image fetch failures caused by oversized remote assets.

Closes openai#2776

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@zuhabul
zuhabul requested a review from a team as a code owner May 9, 2026 21:59
Copilot AI review requested due to automatic review settings May 9, 2026 21:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Vision example in the root README to use a smaller Wikimedia image URL, reducing the chance of download/size-related request failures when users run the example (as reported in #2776).

Changes:

  • Replaced the Vision example image URL from a 1599px variant to a 440px variant to reduce payload/download size.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Reintroduce client.beta.vector_stores as a backwards-compatible alias to client.vector_stores for both sync and async clients, including raw and streaming wrappers. Adds targeted client tests for alias behavior.

Closes openai#2451

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@zuhabul zuhabul changed the title docs: reduce vision sample image size feat: restore beta.vector_stores alias and fix vision README example May 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for working on these fixes! The README image change is now covered by #3849. We’re leaving this PR open for the separate beta.vector_stores compatibility change; please drop the README change when updating it.

Copy link
Copy Markdown
Contributor

Thanks for working on compatibility here! We’re directing callers to client.vector_stores, and the README correction landed in #3849, so we’re closing this beta-alias follow-up.

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.

Vision example throws an error client.beta.vector_stores Not Exposed in Python SDK Despite Documentation (v1.93.2)

3 participants