Skip to content

Selection-only prompt: cursor fix, LaTeX delimiters, OpenRouter models - #200

Open
yangl0610 wants to merge 1 commit into
bramses:masterfrom
yangl0610:codex/selection-only-latex-openrouter
Open

Selection-only prompt: cursor fix, LaTeX delimiters, OpenRouter models#200
yangl0610 wants to merge 1 commit into
bramses:masterfrom
yangl0610:codex/selection-only-latex-openrouter

Conversation

@yangl0610

Copy link
Copy Markdown

This PR improves “selection-only” workflows and math rendering in ChatGPT MD.

Changes:

LaTeX rendering: injects an explicit system instruction to always wrap inline math with $...$ and display math with $$...$$, reducing cases where formulas render as plain text.
Selection-only + Generate at Cursor: when using selection-only prompting with Generate at Cursor enabled, the cursor is moved to the end of the selection so generated text is appended after the selected content (instead of replacing it).
OpenRouter model options: model fetching now attempts to load OpenRouter /models even without an API key (falls back gracefully if the endpoint requires auth), making “Select Model” more useful out of the box.

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