feat(client): WebUI/Cline compatibility and configurable env vars#48
Open
SevaAIgnatyev wants to merge 1 commit intoTelegramMessenger:mainfrom
Open
feat(client): WebUI/Cline compatibility and configurable env vars#48SevaAIgnatyev wants to merge 1 commit intoTelegramMessenger:mainfrom
SevaAIgnatyev wants to merge 1 commit intoTelegramMessenger:mainfrom
Conversation
- Client: set Content-Type application/json for models list responses (fixes compatibility with WebUI, Cline and other OpenAI-compatible UIs) - cocoon-launch: configurable via env vars - COCOON_ROUTER_POLICY (default: tdx) for router listen policy - COCOON_CLIENT_VERBOSITY (default: 3) for client log level - COCOON_BUILD_JOBS to limit parallel build jobs (e.g. on WSL) - benchmark: run without Go by downloading hey binary when go not installed - .gitignore: benchmark/hey, nul (generated/downloaded artifacts) Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
Improves Cocoon client usability for OpenAI-compatible UIs (WebUI, Cline, etc.) and makes
cocoon-launchconfigurable via environment variables without changing defaults.Changes
Client (
ClientRunner.cpp)Set
Content-Type: application/jsonfor the models list response (/v1/models).Some clients (e.g. WebUI, Cline) require this header to treat the response as JSON; without it they may fail or mis-handle the list.
cocoon-launch
COCOON_ROUTER_POLICY(default:tdx) — router listen policy (e.g.anyfor local/dev without TDX).COCOON_CLIENT_VERBOSITY(default:3) — client log level (-vN).COCOON_BUILD_JOBS— number of parallel build jobs (useful to limit memory use, e.g. on WSL).benchmark
run-benchmark.shcan run without Go: ifheyis not in PATH andgois not installed, it downloads theheybinary so the benchmark still runs..gitignore
Ignore
benchmark/heyandnul(downloaded/generated artifacts).Backward compatibility
All new options use the same defaults as current behavior; no config or script changes required for existing users.
Testing
Content-Type: application/jsonand is accepted by WebUI/Cline.COCOON_ROUTER_POLICY=anyandCOCOON_BUILD_JOBStested on WSL.