-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Sync SDK with latest OpenAPI specification #15
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
Conversation
- Add FinishReason enum (Stop, Length, ToolCalls, ContentFilter, FunctionCall) - Add ChatCompletionMessageToolCallChunk with index field for streaming - Add ChatCompletionTokenLogprob, TopLogprob, ChoiceLogprobs for logprobs support - Add reasoning_content and refusal fields to ChatCompletionStreamDelta - Add reasoning_content field to Message struct - Update Model.served_by from Option<String> to Provider enum - Make all Model fields required (object, created, owned_by, served_by) - Add A2AAgentCard and ListAgentsResponse types for A2A protocol support - Add list_agents() and get_agent(id) methods to InferenceGatewayAPI trait - Add NotFound error variant for 404 responses - Add tests for A2A endpoints Co-authored-by: Eden Reich <edenreich@users.noreply.github.com> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
@claude you didn't download the latest openapi spec, I've just downloaded it - please now work on making the code in sync. |
|
Claude finished @edenreich's task —— View job Syncing SDK with OpenAPI Specification ✅
Summary of changes:
Commit: c56690c --- | |
- Add OllamaCloud and Mistral providers to Provider enum - Update Display and TryFrom implementations for new providers - Add Serialize derive to ChatCompletionMessageToolCallChunk - Add logprobs field to ChatCompletionChoice - Add reasoning_format field to request/response types - Update all tests to include new providers and logprobs field Co-authored-by: Eden Reich <edenreich@users.noreply.github.com> 🤖 Generated with [Claude Code](https://claude.ai/code)
|
@claude Fix the CI |
|
Claude finished @edenreich's task —— View job Fixing CI ✅
Summary: Fixed rustfmt formatting issue in Commit: a11c355 |
Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
|
@claude Fix CI - tests are failing. Also remove the A2A related code - it has been removed from the OpenAPI spec. |
|
Claude finished @edenreich's task —— View job Fixing CI and Removing A2A Code ✅
Summary of changes:
Commit: ce8830c |
- Remove A2AAgentCard and ListAgentsResponse structs - Remove list_agents() and get_agent() trait methods - Remove A2A implementation methods from InferenceGatewayClient - Remove A2A-related tests - Add missing reasoning_format field in test_generate_request_serialization Co-authored-by: Eden Reich <edenreich@users.noreply.github.com> 🤖 Generated with [Claude Code](https://claude.ai/code)
## [0.12.0](0.11.0...0.12.0) (2025-11-21) ### ✨ Features * Sync SDK with latest OpenAPI specification ([#15](#15)) ([b655389](b655389)) * Update default models and docs for flox ([5a3f97b](5a3f97b)) ### 🐛 Bug Fixes * resolve markdownlint violations in AGENTS.md ([8240142](8240142)) ### 🔧 Miscellaneous * Add .env.example ([1099147](1099147)) * Add infer CLI ([c9dfc98](c9dfc98)) * Add issue templates ([9626778](9626778)) * Add markdownlint ([398e3b6](398e3b6)) * Claude PR Assistant workflow ([#13](#13)) ([a52795d](a52795d)) ### 📦 Miscellaneous * Add flox environment ([bba25a4](bba25a4))
|
🎉 This PR is included in version 0.12.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Sync the Rust SDK with the latest OpenAPI specification from inference-gateway.
Changes
FinishReasonenum for completion finish reasonsChatCompletionMessageToolCallChunkwithindexfield for streamingChatCompletionTokenLogprob,TopLogprob,ChoiceLogprobs)reasoning_contentandrefusalfields to streaming deltaModel.served_byto useProviderenumlist_agents,get_agent)NotFounderror variantCloses #14
🤖 Generated with Claude Code