Skip to content

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

Open
zuhabul wants to merge 2 commits intoopenai:mainfrom
zuhabul:docs/vision-image-smaller
Open

feat: restore beta.vector_stores alias and fix vision README example#3216
zuhabul wants to merge 2 commits intoopenai:mainfrom
zuhabul:docs/vision-image-smaller

Conversation

@zuhabul
Copy link
Copy Markdown

@zuhabul zuhabul commented May 9, 2026

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
Copy link
Copy Markdown

Copilot AI left a comment

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
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)

2 participants