Skip to content

fix(examples): migrate Markdown and vision demos off GPT-4.1 - #736

Open
tsumon wants to merge 1 commit into
VectifyAI:mainfrom
tsumon:fix/luna-example-defaults
Open

tsumon wants to merge 1 commit into
VectifyAI:mainfrom
tsumon:fix/luna-example-defaults

Conversation

@tsumon

@tsumon tsumon commented Dec 3, 2026

Copy link
Copy Markdown

What changes

Addresses the first item in #728, separately from the summary fallback in #731. OpenAI lists January 14, 2027 for the GPT-4.1 shutdown and recommends GPT-6 Luna.

  • Default the vision notebook to gpt-6-luna and let the selected model use its own sampling defaults. The existing temperature=0 is not valid when reasoning is enabled, per the API compatibility checklist. Text-only tree search and image-based answering still use the same helper.
  • Use PageIndex’s existing index-model default in the Markdown module’s runnable example. Use the tracked README as input because examples/documents/cognitive-load.md is not present in a fresh checkout. No library defaults change.

Validation

  • Two focused offline checks failed on main and passed with the patch. The notebook checks inspected mocked Chat Completions requests for both text and image inputs.
  • Ran the Markdown example against the checked-in README with LiteLLM completions mocked; it wrote a tree and selected openai/gpt-6-luna for the summary requests.
  • python -m pytest -q --disable-warnings on Python 3.12: 1130 passed, 180 skipped. git diff --check passed. No live model calls.

AI assistance was used for investigation, implementation, and testing.

This branch has not been deployed

No deployments
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