Skip to content

Conversation

@bbbugg
Copy link
Member

@bbbugg bbbugg commented Jan 29, 2026

中文

  • 确保所有请求正确返回 Content-Type
  • OpenAI 假流式添加心跳机制

English

  • Ensure Content-Type headers for all responses
  • Add keep-alive mechanism for OpenAI fake

@bbbugg bbbugg requested a review from Copilot January 29, 2026 08:25
@bbbugg bbbugg changed the title feat: implement keep-alive mechanism for OpenAI fake stream mode fix: ensure Content-Type headers and add keep-alive for OpenAI fake stream Jan 29, 2026
@bbbugg bbbugg added the 🐛 Bug Something isn't working label Jan 29, 2026
Copy link
Contributor

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 implements a keep-alive mechanism for OpenAI fake stream mode to prevent client timeouts and ensures Content-Type headers are properly set for all streaming responses.

Changes:

  • Added keep-alive heartbeat mechanism (12-18 second intervals) for OpenAI fake stream mode before real data arrives
  • Ensured Content-Type headers are set for streaming responses with fallback checks
  • Refactored comment to be more concise regarding URL rewriting logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bbbugg bbbugg merged commit 98f7ece into main Jan 29, 2026
6 checks passed
@bbbugg bbbugg deleted the fix/Content-type branch January 29, 2026 12:42
@github-actions
Copy link

🎉 此 PR 的修改已在版本 v0.5.3 中发布。
🎉 The changes in this PR have been released in version v0.5.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[反馈]: 响应头能返回Content-Type吗

2 participants