Skip to content

SDK regeneration - #805

Merged
andrewbcohere merged 2 commits into
mainfrom
fern-bot/2026-08-31_21-19-03_250
Sep 29, 2026
Merged

andrewbcohere merged 2 commits into
mainfrom
fern-bot/2026-08-31_21-19-03_250

Conversation

@fern-api

@fern-api fern-api Bot commented Aug 31, 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-08-31_21-19-03_250 origin/fern-bot/2026-08-31_21-19-03_250
    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-08-31_21-19-03_250 origin/fern-bot/2026-08-31_21-19-03_250
  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
Regenerated HTTP layer changes request shaping for optional-body calls and bumps many dependencies; unresolved replay conflicts may drop prior auth/embed fixes if merged without fern replay resolve.

Overview
Bumps the Cohere Python SDK to 7.2.0 via Fern (generator 5.29.3) and refreshes poetry.lock transitive dependencies.

HTTP client behavior now treats endpoints with optional request bodies correctly: when the caller omits all body fields, requests are sent without a body and without Content-Type, via new optional_body handling in get_request_body and drop_content_type_without_body. HttpResponse / streaming wrappers expose the underlying httpx.Response through a new response property.

Client metadata updates User-Agent / X-Fern-SDK-Version to 7.2.0. Doc examples for AsyncClient.chat_stream and generate_stream no longer incorrectly await the stream call before iterating.

The PR description notes unresolved Fern replay conflicts in pyproject.toml and client_wrapper.py against prior patches (#778 empty embed, #795 empty api_key)—those need manual merge before merge if customizations must stay.

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

fern-api Bot added 2 commits September 28, 2026 20:36
Generated by Fern
CLI Version: unknown
Generators:
  - fernapi/fern-python-sdk: 5.29.3
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.
@fern-api
fern-api Bot force-pushed the fern-bot/2026-08-31_21-19-03_250 branch from 2de27c3 to 3b596c1 Compare September 28, 2026 20:36
@andrewbcohere
andrewbcohere merged commit 0eacfe7 into main Sep 29, 2026
4 checks passed
@andrewbcohere
andrewbcohere deleted the fern-bot/2026-08-31_21-19-03_250 branch September 29, 2026 20:00
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