Skip to content

Retry a failed floxi chat completion once - #1435

Merged
iceljc merged 2 commits into
SciSharp:masterfrom
iceljc:feature/floxi-chat-retry
Sep 11, 2026
Merged

iceljc merged 2 commits into
SciSharp:masterfrom
iceljc:feature/floxi-chat-retry

Conversation

@iceljc

@iceljc iceljc commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

GetChatCompletions now sends the request a second time when the first attempt fails, whatever the status and whether the transport answered or threw. A dispatch usually lands on a different node the second time, so a failure the request itself did not cause tends not to repeat.

A cancelled request is never retried: the caller has stopped waiting, so a second dispatch would only spend a node on a reply nobody will read.

The streaming path is untouched - once a delta has reached the client a retry would append a whole second reply to what it is already rendering.

GetChatCompletions now sends the request a second time when the first
attempt fails, whatever the status and whether the transport answered or
threw. A dispatch usually lands on a different node the second time, so a
failure the request itself did not cause tends not to repeat.

A cancelled request is never retried: the caller has stopped waiting, so a
second dispatch would only spend a node on a reply nobody will read.

The streaming path is untouched - once a delta has reached the client a
retry would append a whole second reply to what it is already rendering.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown
Contributor

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@iceljc
iceljc merged commit 03e72a4 into SciSharp:master Sep 11, 2026
3 of 4 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