Skip to content

Conversation

@Junyi-99
Copy link
Member

No description provided.

@Junyi-99 Junyi-99 linked an issue Dec 18, 2025 that may be closed by this pull request
@Junyi-99 Junyi-99 moved this from Icebox to Development & Blockers in Project PaperDebugger Dec 18, 2025
@Junyi-99 Junyi-99 self-assigned this Dec 18, 2025
@Junyi-99 Junyi-99 marked this pull request as ready for review December 19, 2025 01:34
Copilot AI review requested due to automatic review settings December 19, 2025 01:34
@Junyi-99 Junyi-99 merged commit 358a1ba into main Dec 19, 2025
5 of 6 checks passed
@Junyi-99 Junyi-99 deleted the feat-api-v2 branch December 19, 2025 01:34
@github-project-automation github-project-automation bot moved this from Development & Blockers to Done in Project PaperDebugger Dec 19, 2025
@Junyi-99 Junyi-99 changed the title [WIP] switch Responses API to Completion API feat: switch Responses API to Completion API Dec 19, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the chat API from v1 to v2, introducing support for multiple LLM providers, surrounding text context, and various UI improvements. The migration includes comprehensive internationalization (Chinese to English) and adds a new apiclientV2 alongside the existing v1 client.

Key Changes:

  • Migrates chat API from v1 to v2 with new protobuf definitions
  • Adds support for multiple LLM providers (OpenAI, Qwen, Google, DeepSeek, Anthropic)
  • Introduces surrounding text context feature for better AI understanding
  • Implements model persistence and selection improvements
  • Refactors stores to use Zustand persist middleware
  • Adds provider-specific icons and improved model information display

Reviewed changes

Copilot reviewed 147 out of 147 changed files in this pull request and generated no comments.

Show a summary per file
File Description
webapp/_webapp/src/libs/apiclient.ts Adds v2 API client with version-aware endpoint management
webapp/_webapp/src/query/api.ts Updates API calls to use v2 endpoints, removes unused v1 message creation
webapp/_webapp/src/stores/* Migrates stores to use persist middleware, adds surrounding text support
webapp/_webapp/src/views/**/*.tsx Updates imports to v2, adds provider icons, improves UI components
webapp/_webapp/src/hooks/*.ts Updates to v2 API, adds model provider information
webapp/_webapp/src/components/**/*.tsx Enhances components with copy functionality, improved styling
proto/chat/v2/chat.proto New v2 protobuf definition with surrounding text and model slug fields
internal/wire.go Adds v2 service dependencies to dependency injection
internal/services/*.tmpl Updates templates to include surrounding context
Comments suppressed due to low confidence (1)

webapp/_webapp/src/views/settings/sections/footer.tsx:9

  • Unused variable versionClickCount.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Switch from Responses API to Completion API

2 participants