Skip to content

fix(vlm): rollback ResponseAPI to Chat Completions, keep tool calls#1137

Merged
qin-ctx merged 1 commit intomainfrom
fix/rollback_responseapi
Mar 31, 2026
Merged

fix(vlm): rollback ResponseAPI to Chat Completions, keep tool calls#1137
qin-ctx merged 1 commit intomainfrom
fix/rollback_responseapi

Conversation

@chenjw
Copy link
Copy Markdown
Collaborator

@chenjw chenjw commented Mar 31, 2026

  • Replaced Responses API with Chat Completions API in volcengine_vlm.py
  • Removed prompt caching features (LRUCache, response_id prefix caching)
  • Retained tool calling support via _parse_tool_calls and _build_vlm_response
  • Fixed tool result message format in memory/tools.py to use JSON string instead of dict for Chat Completions API compatibility

Description

Related Issue

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test update

Changes Made

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have tested this on the following platforms:
    • Linux
    • macOS
    • Windows

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

- Replaced Responses API with Chat Completions API in volcengine_vlm.py
- Removed prompt caching features (LRUCache, response_id prefix caching)
- Retained tool calling support via _parse_tool_calls and _build_vlm_response
- Fixed tool result message format in memory/tools.py to use JSON string
  instead of dict for Chat Completions API compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

@qin-ctx qin-ctx merged commit 40fa8ba into main Mar 31, 2026
9 of 11 checks passed
@qin-ctx qin-ctx deleted the fix/rollback_responseapi branch March 31, 2026 14:26
@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenViking project Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants