Skip to content

feat(ai): add Responses and Gemini support with GPT-5.x and Gemini compatibility improvements#105

Merged
GCWing merged 4 commits intoGCWing:mainfrom
wgqqqqq:feat/response
Mar 10, 2026
Merged

feat(ai): add Responses and Gemini support with GPT-5.x and Gemini compatibility improvements#105
GCWing merged 4 commits intoGCWing:mainfrom
wgqqqqq:feat/response

Conversation

@wgqqqqq
Copy link
Collaborator

@wgqqqqq wgqqqqq commented Mar 10, 2026

Summary

  • add OpenAI Responses API support across the core client, stream handlers, config layer, and UI model configuration
  • add Gemini provider support, including message conversion, streaming response handling, and configuration wiring
  • improve GPT-5 / Responses integration with a GPT-5-specific agentic prompt, reasoning effort support, and more reliable streamed tool-call handling
  • improve Gemini compatibility by adding native tool support, structured output translation, richer grounding/safety/code-execution metadata handling, and safer fallback behavior when built-in tools would conflict with custom function calling

Why

  • enable Responses-based models and Gemini models to work as first-class providers in BitFun instead of relying on OpenAI chat-completions-only behavior
  • make GPT-5 and Gemini behave more reliably in real agentic workflows, especially around tool use, streaming, and provider-specific response semantics
  • reduce provider-specific failures by normalizing request/response handling while still preserving important native capabilities and metadata

Test plan

  • verified targeted Rust tests for Responses and Gemini stream/message conversion paths
  • verified Gemini request-building behavior for native-tool-only and mixed-tool scenarios
  • verified Gemini parsing for grounding metadata, safety feedback, and code execution response parts
  • checked edited files for linter diagnostics

wgqqqqq added 4 commits March 10, 2026 18:41
Make agentic mode pick a GPT-5-specific prompt and expose reasoning effort so Responses-based models can be configured consistently across core and UI.
Also harden tool-call streaming and connection checks for Responses providers to avoid dropped arguments and false negatives during tool execution.

Made-with: Cursor
Prevent Gemini requests from mixing built-in and custom tools while adding native tool support, structured output translation, and richer grounding, safety, and code execution metadata handling.

Made-with: Cursor
@GCWing GCWing merged commit eb67c6d into GCWing:main Mar 10, 2026
2 checks passed
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.

2 participants