Skip to content

๐Ÿ› fix: fix some features for Github Copilot (ResponseAPI / Vision, etc)#13279

Merged
Innei merged 9 commits intolobehub:canaryfrom
hezhijie0327:copilot
Mar 27, 2026
Merged

๐Ÿ› fix: fix some features for Github Copilot (ResponseAPI / Vision, etc)#13279
Innei merged 9 commits intolobehub:canaryfrom
hezhijie0327:copilot

Conversation

@hezhijie0327
Copy link
Copy Markdown
Contributor

@hezhijie0327 hezhijie0327 commented Mar 26, 2026

๐Ÿ’ป Change Type

  • โœจ feat
  • ๐Ÿ› fix
  • โ™ป๏ธ refactor
  • ๐Ÿ’„ style
  • ๐Ÿ‘ท build
  • โšก๏ธ perf
  • โœ… test
  • ๐Ÿ“ docs
  • ๐Ÿ”จ chore

๐Ÿ”— Related Issue

Fixes #13201
Fixes #12706

๐Ÿ”€ Description of Change

  1. ๅขžๅŠ  Response API ็š„ๆ”ฏๆŒ,ไฟฎๆญฃๅฆ‚ gpt-5.3-codex ็ญ‰ไป…ๆ”ฏๆŒ Response API ็š„ๆจกๅž‹(ไธŽ OpenAI Factory ๅŒๅค„็†้€ป่พ‘); ๆ”ฏๆŒ reasoning.effort reasoning.summary text.verbosity max_output_tokens; ๅฑ•็คบๆ€่€ƒ่ฟ‡็จ‹
  2. ๆ›ดๆ–ฐๆจกๅž‹ๅˆ—่กจๅŠๅฎž้™…ไธŠไธ‹ๆ–‡ๅ€ผ(ไปฅ Copilot ๅฎขๆˆท็ซฏๆ˜พ็คบไธบๅ‡†) https://docs.github.com/en/copilot/reference/ai-models/supported-models#supported-ai-models-in-copilot
  3. ไฟฎๆญฃๅ›พ็‰‡่ฏ†ๅˆซ้—ฎ้ข˜,ๅผบๅˆถ Base64 ่ฝฌๆข
  4. ๅขžๅŠ  DEBUG_GITHUBCOPILOT_CHAT_COMPLETION DEBUG_GITHUBCOPILOT_RESPONSES ็Žฏๅขƒๅ˜้‡
  5. Claude ็ณปๅˆ—ๅฐ†ไฝฟ็”จ /v1/messages ไปฅๅฏ็”จ่‡ช้€‚ๅบ”ๆ€่€ƒ/ๆ€่€ƒ้ข„็ฎ—็ญ‰ๅŠŸ่ƒฝ
  6. ไฟฎๆญฃ Google Gemini ็ณปๅˆ—ๆ€่€ƒ่ฟ‡็จ‹่ฟ”ๅ›žๅญ—ๆฎต reasoning_text ็š„่งฃๆž้€‚้…
{"choices":[{"index":0,"delta":{"content":null,"role":"assistant","reasoning_text":"**Translating the Visual Scene**\n\nMy focus has shifted towards the translation phase. I've formulated the Chinese response, focusing on natural language. I've ensured I included the key elements: the sleeping cat, the bear-shaped cover, and the overall peaceful setting. The description is now crafted to be easily understood and evoke the requested feeling.\n\n\n"}}],"created":1774512975,"id":"R-vEaff7Gf6Dh-cP-PS4gQs","usage":{"completion_tokens":0,"prompt_tokens":0,"prompt_tokens_details":{"cached_tokens":0},"total_tokens":0,"reasoning_tokens":0},"model":"gemini-3.1-pro-preview"}

Note:

  1. ้ƒจๅˆ†ๆจกๅž‹ๅณๅฐ†ๆท˜ๆฑฐ,ๆ•…ๅทฒ็งป้™ค
image 2. ้ป˜่ฎค `reasoning.summary` ไธบ `detailed`,ไธŽ VSCode ้ป˜่ฎคๅ€ผไฟๆŒไธ€่‡ด image
ๆ€่€ƒ่ฟ‡็จ‹(ๆจกๅž‹) ๆˆชๅ›พ
gpt-5.4-mini image
oswe-vscode image
claude-haiku-4.5 image
gemini-3.1-pro-preview image
grok-code-fast-1 image

๐Ÿงช How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

๐Ÿ“ธ Screenshots / Videos

Before After
image image
"message": "external image URLs are not supported" image

๐Ÿ“ Additional Information

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

@hezhijie0327 is attempting to deploy a commit to the LobeHub OSS Team on Vercel.

A member of the Team first needs to authorize it.

@lobehubbot
Copy link
Copy Markdown
Member

@sxjeru - This PR adds Response API support for the GitHub Copilot provider and updates the model list. Please take a look.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

โŒ Patch coverage is 60.22727% with 70 lines in your changes missing coverage. Please review.
โœ… Project coverage is 66.73%. Comparing base (2c65767) to head (575feb5).
โš ๏ธ Report is 30 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #13279      +/-   ##
==========================================
- Coverage   66.93%   66.73%   -0.21%     
==========================================
  Files        1870     1884      +14     
  Lines      148122   151038    +2916     
  Branches    14897    17261    +2364     
==========================================
+ Hits        99150   100796    +1646     
- Misses      48861    50130    +1269     
- Partials      111      112       +1     
Flag Coverage ฮ”
app 58.09% <รธ> (-0.13%) โฌ‡๏ธ
database 96.64% <รธ> (-1.20%) โฌ‡๏ธ
packages/agent-runtime 89.61% <รธ> (รธ)
packages/context-engine 83.22% <รธ> (-0.37%) โฌ‡๏ธ
packages/conversation-flow 92.36% <รธ> (รธ)
packages/file-loaders 87.02% <รธ> (รธ)
packages/memory-user-memory 66.68% <รธ> (รธ)
packages/model-bank 99.85% <100.00%> (+<0.01%) โฌ†๏ธ
packages/model-runtime 84.50% <59.77%> (-0.04%) โฌ‡๏ธ
packages/prompts 67.76% <รธ> (-6.84%) โฌ‡๏ธ
packages/python-interpreter 92.90% <รธ> (รธ)
packages/ssrf-safe-fetch 0.00% <รธ> (รธ)
packages/utils 90.41% <รธ> (รธ)
packages/web-crawler 88.82% <รธ> (รธ)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage ฮ”
Store 66.07% <รธ> (รธ)
Services 49.56% <รธ> (รธ)
Server 67.39% <รธ> (-0.76%) โฌ‡๏ธ
Libs 45.46% <รธ> (รธ)
Utils 91.01% <รธ> (รธ)
๐Ÿš€ New features to boost your workflow:
  • โ„๏ธ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • ๐Ÿ“ฆ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hezhijie0327 hezhijie0327 force-pushed the copilot branch 2 times, most recently from acbbe60 to 5704de5 Compare March 26, 2026 06:49
style: update model list

style: update model list

๐Ÿ› fix: align github copilot payload mapping and tests

style: update model list

style: update model list
@hezhijie0327 hezhijie0327 changed the title ๐Ÿ’„ style: add Response API support for Github Copilot ๐Ÿ› fix: fix some features for Github Copilot (ResponseAPI / Vision, etc) Mar 26, 2026
@hezhijie0327 hezhijie0327 marked this pull request as ready for review March 26, 2026 08:08
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Sorry @hezhijie0327, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

๐Ÿ’ก Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e2066858e5

โ„น๏ธ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with ๐Ÿ‘.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

style: update Raptor mini base config, same as gpt-5-mini

style: update Raptor mini base config, same as gpt-5-mini
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Mar 26, 2026 2:30pm

Request Review

@Innei Innei merged commit dc9adf8 into lobehub:canary Mar 27, 2026
20 of 22 checks passed
@lobehubbot
Copy link
Copy Markdown
Member

โค๏ธ Great PR @hezhijie0327 โค๏ธ

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.

@hezhijie0327 hezhijie0327 deleted the copilot branch March 27, 2026 07:15
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.

gpt-5.4-mini is not accessible via the /chat/completions endpoint GitHub Copilot models cannot recognize images

3 participants