Skip to content

Dev#22

Merged
rensumo merged 15 commits intomainfrom
dev
May 7, 2026
Merged

Dev#22
rensumo merged 15 commits intomainfrom
dev

Conversation

@rensumo
Copy link
Copy Markdown

@rensumo rensumo commented May 7, 2026

No description provided.

Starry-Sky-World and others added 15 commits May 4, 2026 03:34
Add support for embedding web frontend assets directly into the server to improve management panel distribution and accessibility.

- Integrate an embedded file system to serve the management control panel and static assets.
- Add an OAuth provider listing endpoint to the management API to improve frontend integration.
- Update the management server to handle routing for embedded assets and provide fallback mechanisms.
- Improve authentication success page styling for a better user experience.
- Update .gitignore to exclude build artifacts and private directories.
Updates CI workflows to use the Go version defined in go.mod and removes redundant setup steps.

Refines web linting configuration by simplifying the ESLint setup and restricting linting scope to the source directory. Removes unused imports and cleans up code structure in web components to improve maintainability. Additionally, updates .gitignore to track the gitkeep file in web assets.
Handle tool calls returned either as native structured deltas or
embedded as XML in response content. Inject a system prompt to
guide models toward the expected XML format, and set the proper
finish_reason for both streaming and non-streaming responses.
Detect XML tool call markers during streaming to avoid emitting partial
content chunks before fallback parsing completes. Clear content fields
when native tool calls or reasoning content are present, and extract
text content from structured message payloads.
Enhances the handling of CodeArts SSE streams by adding robust error reporting, dynamic model name resolution, and improved tool call parsing.

Refactors stream processing to unify non-stream and stream logic, ensuring consistent token counting and finish reason reporting. Adds support for alternative data line formats and ensures proper cleanup of tool call artifacts from generated content.
…enAI-compatible API

- Add JoyCode auth module with token verification and web OAuth flow
- Add JoyCode executor supporting stream/non-stream chat completions
- Add --joycode-login CLI flag and /v0/oauth/joycode/* web routes
- Register JoyCode translator, models, and provider metadata
- Fix oauth-model-alias: add missing providers (gitlab, cursor, qoder, codebuddy, codebuddy-ai, kilo, bt)
JoyCode login page redirects to http://127.0.0.1:{port}/?authKey=...&pt_key=...
not /joycode/callback. Register root path handler in CLI mode and intercept
root-path requests with JoyCode auth params in web server mode.
- Fetch models from /api/saas/models/v1/modelList with chatApiModel/label
  and hidden filter, matching JoyCode2api.py behavior
- Set loginType header to empty string (matching Python)
- Add x-ms-client-request-id header (matching Python)
- Remove hardcoded static model list, use API with static fallback
@rensumo rensumo merged commit 32de090 into main May 7, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants