Skip to content

SDK regeneration - #824

Merged
YuhengHuang-Cohere merged 2 commits into
mainfrom
fern-bot/2026-11-04_14-44-29_083
Nov 4, 2026
Merged

YuhengHuang-Cohere merged 2 commits into
mainfrom
fern-bot/2026-11-04_14-44-29_083

Conversation

@fern-api

@fern-api fern-api Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Automated SDK generation by Fern


✅ Customizations automatically preserved, but 4 files need your attention.

Action required: 4 files with unresolved customization conflicts

The new generation changed code you previously customized. Non-conflicting customizations have been applied automatically. The following files need manual resolution:

File Your customization Why it conflicted
pyproject.toml fix(utils): embed(texts=[]) crashes with IndexError on empty input (#778) The new generation changed the same lines you edited
src/cohere/core/client_wrapper.py fix(utils): embed(texts=[]) crashes with IndexError on empty input (#778) The new generation changed the same lines you edited
pyproject.toml Omit Authorization header when api_key is empty (#795) The new generation changed the same lines you edited
src/cohere/core/client_wrapper.py Omit Authorization header when api_key is empty (#795) The new generation changed the same lines you edited

How to resolve

  1. Check out this branch:
    git fetch origin && git checkout -b fern-bot/2026-11-04_14-44-29_083 origin/fern-bot/2026-11-04_14-44-29_083
    Or if you don't have the repo cloned:
    git clone https://github.com/cohere-ai/cohere-python.git && cd cohere-python && git checkout -b fern-bot/2026-11-04_14-44-29_083 origin/fern-bot/2026-11-04_14-44-29_083
  2. Run: fern replay resolve
  3. Open the conflicting files in your editor — you'll see standard merge conflict markers
  4. Resolve using your editor's merge tools (VS Code, IntelliJ, etc.)
  5. Run: fern replay resolve again to finalize
  6. Push your changes

Your resolved customizations will be remembered on future SDK generations.
If you merge this PR without resolving, your unresolved customizations will conflict again on the next generation.


Note

Medium Risk
Changes affect default HTTP retry semantics, proxy handling, auth header assembly, and request encoding; unresolved customization conflicts in client_wrapper may regress empty-key or embed fixes until manually merged.

Overview
Automated Fern regeneration bumps the package to 7.3.1 and refreshes poetry.lock (minor dependency updates). Packaging metadata adds explicit MIT license / license-files on [project].

HTTP client behavior is the main functional delta: default sync/async httpx clients now attach keepalive-aware proxy mounts rebuilt from environment proxy settings (so custom transports still honor HTTP(S)_PROXY / NO_PROXY). Request headers are merged with case-insensitive overrides via _merge_headers. RemoteProtocolError is no longer retried by default (only ConnectError); opt in with request_options["retry_remote_protocol_errors"]. retry-after-ms parsing is tightened.

Auth / headers: token defaults to None at the signature and is resolved in __init__ from CO_API_KEY (still required before use). get_headers(include_token=...) gates Authorization; async clients with async_token skip the sync token in base headers until the async token is applied.

Serialization / safety: path parameters reject . and .. segments; models drop case-colliding extras before encode; unknown union variants are preserved instead of dropped. ApiMetaBilledUnits gains optional text_tokens.

The PR description flags unresolved Fern replay conflicts in pyproject.toml and client_wrapper.py against prior customizations (#778, #795)—merge only after fern replay resolve if those behaviors must be preserved.

Reviewed by Cursor Bugbot for commit 099450e. Bugbot is set up for automated code reviews on this repo. Configure here.

fern-api Bot added 2 commits November 4, 2026 14:44
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-python-sdk: 5.41.10
Patches with unresolved conflicts (3):
  - patch-c81e8a75: fix(utils): embed(texts=[]) crashes with IndexError on empty input (#778)
  - patch-41f344bd: feat(client): forward max_retries through Client/ClientV2 constructors (#779)
  - patch-bc495daa: Omit Authorization header when api_key is empty (#795)
    Run `fern-replay resolve` to apply these customizations.
@YuhengHuang-Cohere
YuhengHuang-Cohere self-requested a review November 4, 2026 19:41
@YuhengHuang-Cohere
YuhengHuang-Cohere merged commit a37a6cf into main Nov 4, 2026
5 checks passed
@YuhengHuang-Cohere
YuhengHuang-Cohere deleted the fern-bot/2026-11-04_14-44-29_083 branch November 4, 2026 19:41
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.

1 participant