Repository navigation
Conversation
JhoanG956
pushed a commit
to JhoanG956/coucou
that referenced
this pull request
Oct 7, 2026
… name Groundwork for the Mac's chat providers on Windows and Linux, with the Claude chat brought to parity first: - chat.rs holds the conversation for every provider: in the wire format of the provider that answered last, and as plain text turns. A turn with another provider rebuilds its history from the plain turns, so Claude's web search blocks are never sent anywhere else. Only a successful turn is recorded, and an answer that lands after "New chat" is dropped. - Claude's answer keeps every text block, joined as is (Mac Louis-CFM#67, commit 0a633f9): citations no longer get a line break in mid-sentence. - The system prompt asks for light Markdown, as on the Mac, and greets the user by their first name when the account has one worth using (Mac Louis-CFM#154, same rules as UserIdentity.swift): the Windows display name or the Linux GECOS full name; login handles are ignored. - COUCOU_ANTHROPIC_BASE_URL sends the Claude chat through an Anthropic-compatible gateway (issue Louis-CFM#180). It is a base URL (/v1/messages is added when missing), must be https (http only to this computer), and only that variable is read: Claude Code's ANTHROPIC_BASE_URL could hand the user's key to a proxy they never chose. The gateway's host, never the key, is logged once. - Every answer is read with a size ceiling (net.rs), and requests to this computer skip any system proxy. - chat_models lists the models on the Anthropic account, for the picker. Based on Louis-CFM#206 by @Totopo27 (custom Anthropic base URL), reduced to COUCOU_ANTHROPIC_BASE_URL and tested without touching the environment. Co-authored-by: Totopo27 <35828647+Totopo27@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thank you! Fixed #180 in Coucou for Windows 0.2.0 (https://github.com/Louis-CFM/coucou/releases/tag/windows-v0.2.0), based on this PR (credited). Changes: only Generated by Claude Code |
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.
Resolves #180.
What it does
Allows pointing the Claude API client on Linux/Windows to a custom endpoint or gateway (such as LiteLLM, corporate proxies, or local relays) by checking \COUCOU_ANTHROPIC_BASE_URL\ (or standard \ANTHROPIC_BASE_URL), falling back to the public endpoint when neither is set.
Trailing slashes are automatically trimmed.
Changes
Verification
\cargo test --manifest-path windows/src-tauri/Cargo.toml\ passes cleanly.