Skip to content

fix: indent inconsistency across templates#1879

Open
haochengxia wants to merge 1 commit intolbjlaq:mainfrom
haochengxia:main
Open

fix: indent inconsistency across templates#1879
haochengxia wants to merge 1 commit intolbjlaq:mainfrom
haochengxia:main

Conversation

@haochengxia
Copy link

@haochengxia haochengxia commented Feb 12, 2026

This PR fixes indentation issues in the Python code snippets provided in the "Quick Integration" section of the API Proxy page. Previously, the code examples contained unnecessary leading whitespace due to template literal formatting, which could cause syntax errors (IndentationError) or formatting issues when copied directly into a Python script.

Changes

  • Modified src/pages/ApiProxy.tsx:
    • Removed extra indentation from the template literals for:
      • Anthropic Protocol example
      • OpenAI Protocol (Image Generation) example
      • OpenAI Protocol (Standard Chat) example
    • This ensures the generated code starts at the beginning of the line, making it valid Python code immediately upon pasting.

@haochengxia haochengxia changed the title Fix indent inconsistency across templates fix: indent inconsistency across templates Feb 12, 2026
lbjlaq added a commit that referenced this pull request Feb 12, 2026
lbjlaq added a commit that referenced this pull request Feb 12, 2026
lbjlaq added a commit that referenced this pull request Feb 12, 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.

1 participant