-
Notifications
You must be signed in to change notification settings - Fork 52
feat: switch Responses API to Completion API #62
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
There was a problem hiding this 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.
No description provided.