Conversation
Contributor
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.