github / github/copilot-sdk

Responses API: AssistantReasoningDeltaEvent and AssistantReasoningEvent triggered with empty content via BYOK providers

Đang mở
#1,230 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
documentation
Ngôn ngữ chính
Java
Star
10.5k
Fork
1.5k
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
128

Mô tả

When using GitHub Copilot SDK in a BYOK (Bring Your Own Key) setup—whether the provider is OpenAI or vLLM—the Responses API triggers both AssistantReasoningDeltaEvent and AssistantReasoningEvent, but the content (reasoning or explanation) for these events is always empty.

**Steps to reproduce:**
1. Set up Copilot SDK to use BYOK with OpenAI or vLLM as the provider (Windows or WSL). Example .NET code configuration:

```csharp
await using var session = await client.CreateSessionAsync(new SessionConfig
{
Provider = new ProviderConfig
{
Type = "openai",
BaseUrl = "https://api.openai.com/v1",
ApiKey = "your_api_key",
WireApi = "responses",
},
ReasoningEffort = "high",
Model = "gpt-5.4-2026-03-05",
OnPermissionRequest = PermissionHandler.ApproveAll,
Streaming = true
});
```

2. Trigger chat completions or requests that should provide reasoning content through the Responses API.
3. Observe that AssistantReasoningDeltaEvent and AssistantReasoningEvent are triggered, but the content is always empty.

**Expected behavior:**
These events should include the reasoning/explanation content returned by the provider's API. Content should not be empty if the provider returns a reasoning field.

**Context:**
- Environment: Windows, WSL
- Copilot SDK version: 0.3.0
- BYOK provider: OpenAI or vLLM

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.