-
Notifications
You must be signed in to change notification settings - Fork 25
feat(openai): Add Responses API support #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Fixes microsoft/teams-sdk#2500 Fixes microsoft/teams-sdk#2503 - Add bounds check (len > 0) before accessing messages[0] - Add optional chaining for messages[0]?.role access - Add null guard and bounds check in collapse() loop - Prevents 'Cannot read properties of null (reading role)' crash Root cause: Array access without bounds checking when: 1. Messages array becomes empty during collapse 2. end index exceeds array bounds in collapse loop Co-authored-by: claude-swarm-agent <swarm@local>
- Add StreamableHTTPServerTransport to support the new MCP spec transport - Add McpStreamableHTTPTransportOptions type with path and stateful options - Add McpTransportOptions union type for all transport configurations - Implement onInitStreamableHTTP with POST/GET/DELETE handlers - Session management with Map<string, StreamableHTTPServerTransport> - Bump @modelcontextprotocol/sdk to ^1.25.0 for StreamableHTTP support - Update connection.ts with ServerTransport union type Closes #2470
Closes microsoft/teams-sdk#2364 - Add OpenAIResponsesModel class implementing IChatModel<ResponsesCreateParams> - Support stateful mode (default) using previous_response_id for context - Support stateless mode sending full history each request - Add Azure OpenAI support via AzureOpenAI client - Full function/tool calling support with auto-execution - Message format conversion for Responses API format Co-authored-by: claude-swarm-agent <swarm@local>
|
@hggzm please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Summary
Implements OpenAI Responses API support with both stateful and stateless conversation modes.
Changes
OpenAIResponsesModelclass implementingIChatModelStreamableHTTPServerTransportsupport in MCP pluginFeatures
previous_response_idfor conversation contextFixes #2364