Skip to content

[Feature] Add OpenAI Streaming Model and Kimi K2 API model#2208

Merged
Mor-Li merged 3 commits intoopen-compass:mainfrom
Mor-Li:stream
Jul 22, 2025
Merged

[Feature] Add OpenAI Streaming Model and Kimi K2 API model#2208
Mor-Li merged 3 commits intoopen-compass:mainfrom
Mor-Li:stream

Conversation

@Mor-Li
Copy link
Copy Markdown
Collaborator

@Mor-Li Mor-Li commented Jul 18, 2025

  • Add OpenAISDKStreaming class with concurrent streaming support
  • Implement independent client instances to fix multi-threading issues
  • Add streaming and non-streaming Kimi K2 model configurations
  • Update models init to include new streaming class

The streaming implementation is essential to prevent connection timeout errors
that commonly occur with non-streaming requests. Without streaming, API calls
often fail due to timeouts and connection drops, leading to retry exhaustion
even with 100 retries, making evaluation impossible to complete.

…figs

- Add OpenAISDKStreaming class with concurrent streaming support
- Implement independent client instances to fix multi-threading issues
- Add streaming and non-streaming Kimi K2 model configurations
- Update models init to include new streaming class
- Set retry limit to 10 for better stability

The streaming implementation is essential to prevent connection timeout errors
that commonly occur with non-streaming requests. Without streaming, API calls
often fail due to timeouts and connection drops, leading to retry exhaustion
even with 100 retries, making evaluation impossible to complete.

This implementation resolves concurrent request blocking issues in streaming mode
by creating isolated OpenAI client instances for each request, preventing
resource conflicts between parallel tasks.
Copy link
Copy Markdown
Collaborator

@Zhudongsheng75 Zhudongsheng75 left a comment

Choose a reason for hiding this comment

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

LGTM

@Mor-Li Mor-Li merged commit 72f7eea into open-compass:main Jul 22, 2025
8 checks passed
dbinthesky pushed a commit to xgao922/opencompass that referenced this pull request Jul 29, 2025
…ass#2208)

* feat: Add OpenAI streaming model implementation and Kimi K2 model configs

- Add OpenAISDKStreaming class with concurrent streaming support
- Implement independent client instances to fix multi-threading issues
- Add streaming and non-streaming Kimi K2 model configurations
- Update models init to include new streaming class
- Set retry limit to 10 for better stability

The streaming implementation is essential to prevent connection timeout errors
that commonly occur with non-streaming requests. Without streaming, API calls
often fail due to timeouts and connection drops, leading to retry exhaustion
even with 100 retries, making evaluation impossible to complete.

This implementation resolves concurrent request blocking issues in streaming mode
by creating isolated OpenAI client instances for each request, preventing
resource conflicts between parallel tasks.

* [Fix] fix pre-commit

* [Model] Add deepseek-r1 streaming
zyc140345 pushed a commit to zyc140345/opencompass that referenced this pull request Oct 23, 2025
…ass#2208)

* feat: Add OpenAI streaming model implementation and Kimi K2 model configs

- Add OpenAISDKStreaming class with concurrent streaming support
- Implement independent client instances to fix multi-threading issues
- Add streaming and non-streaming Kimi K2 model configurations
- Update models init to include new streaming class
- Set retry limit to 10 for better stability

The streaming implementation is essential to prevent connection timeout errors
that commonly occur with non-streaming requests. Without streaming, API calls
often fail due to timeouts and connection drops, leading to retry exhaustion
even with 100 retries, making evaluation impossible to complete.

This implementation resolves concurrent request blocking issues in streaming mode
by creating isolated OpenAI client instances for each request, preventing
resource conflicts between parallel tasks.

* [Fix] fix pre-commit

* [Model] Add deepseek-r1 streaming
iamkaia pushed a commit to iamkaia/opencompass that referenced this pull request Feb 4, 2026
…ass#2208)

* feat: Add OpenAI streaming model implementation and Kimi K2 model configs

- Add OpenAISDKStreaming class with concurrent streaming support
- Implement independent client instances to fix multi-threading issues
- Add streaming and non-streaming Kimi K2 model configurations
- Update models init to include new streaming class
- Set retry limit to 10 for better stability

The streaming implementation is essential to prevent connection timeout errors
that commonly occur with non-streaming requests. Without streaming, API calls
often fail due to timeouts and connection drops, leading to retry exhaustion
even with 100 retries, making evaluation impossible to complete.

This implementation resolves concurrent request blocking issues in streaming mode
by creating isolated OpenAI client instances for each request, preventing
resource conflicts between parallel tasks.

* [Fix] fix pre-commit

* [Model] Add deepseek-r1 streaming
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.

4 participants