[Upstream] feat: add Alibaba Bailian and Coding Plan channels#119
Open
Sagit-chu wants to merge 2 commits into
Open
[Upstream] feat: add Alibaba Bailian and Coding Plan channels#119Sagit-chu wants to merge 2 commits into
Sagit-chu wants to merge 2 commits into
Conversation
Added:\n- add a dedicated AliBailianCodingPlan adaptor and channel type\n- add Bailian and Coding Plan model presets plus regression coverage\n\nChanged:\n- expose Bailian and Coding Plan options in default, air, and berry themes\n- distinguish Bailian and Coding Plan key prompts in channel forms\n- fix the duplicated Replicate channel key in the berry theme\n\nDocs:\n- add a top-level CHANGELOG entry for the new channels\n- document Bailian and Coding Plan setup in the Chinese and English READMEs\n\nTests:\n- go test ./relay/adaptor/openai -run 'TestAliBailianCodingPlan'\n- go test ./relay/... ./controller/...
- refresh in-memory channel selection state after channel create, update, delete, and status changes - invalidate cached per-group model lists so model discovery and routing stay consistent - add regression coverage for channel cache refresh behavior - serialize frontend theme builds in the Docker image to avoid concurrent build directory conflicts - document the cache refresh behavior in changelog and FAQ
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.
Synced from upstream PR: songquanpeng#2371
Summary
AliBailianCodingPlanchannel type for DashScope Coding Plan chat completionsdefault,air, andberrythemes/v1/modelsstays consistent with request routingbuild/directory conflictsNotes
Alibaba Bailian Coding Planis intentionally limited tochat/completionsembeddingsremain unsupported for Coding PlanRoot Cause
Channel mutations updated the database and
abilitiestable, but Redis-backed deployments also keep an in-memory channel selection cache that only refreshed on the periodic sync loop. In that window,/v1/modelscould show the new model list while request routing still used stale channel state and returnedno available channels.Testing
env -u GOROOT -u GOPATH -u GOTOOLDIR /opt/homebrew/bin/go test ./relay/adaptor/openai -run 'TestAliBailianCodingPlan'env -u GOROOT -u GOPATH -u GOTOOLDIR CGO_ENABLED=1 /opt/homebrew/bin/go test ./model ./controller/...git diff --check