[PR #460] [MERGED] Fix: Error: int() argument must be a string, a bytes-like object or a… #430

Closed
opened 2026-10-18 21:06:03 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/pipelines/pull/460
Author: @reasv
Created: 3/10/2025
Status: ✅ Merged
Merged: 4/14/2025
Merged by: @tjbck

Base: main ← Head: patch-1


📝 Commits (1)

  • afb4704 Fix: Error: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 examples/pipelines/providers/anthropic_manifold_pipeline.py (+1 -0)

📄 Description

The pipeline will throw an uncaught exception whenever reasoning_effort is None because it is a TypeError and the try/catch block only catches ValueError

This PR fixes it by checking if the value is None and skipping the int conversion step entirely if it is.

The error is easy to reproduce:

  1. Generate a response with the model and start a conversation
  2. Open the Chat Controls sidebar, in Advanced Params click on Reasoning Effort so it is set to the default string of "medium"
  3. Generate another response, this time it will have reasoning
  4. Click on Advanced Params > Reasoning Effort > Custom, closing the textbox and returning the button to "Default"
  5. Generate another response
  6. Error: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/pipelines/pull/460 **Author:** [@reasv](https://github.com/reasv) **Created:** 3/10/2025 **Status:** ✅ Merged **Merged:** 4/14/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`afb4704`](https://github.com/open-webui/pipelines/commit/afb4704034870075333e060aa56e6114b0154f36) Fix: Error: int() argument must be a string, a bytes-like object or a real number, not 'NoneType' ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `examples/pipelines/providers/anthropic_manifold_pipeline.py` (+1 -0) </details> ### 📄 Description The pipeline will throw an uncaught exception whenever `reasoning_effort` is `None` because it is a `TypeError` and the try/catch block only catches `ValueError` This PR fixes it by checking if the value is None and skipping the int conversion step entirely if it is. The error is easy to reproduce: 1. Generate a response with the model and start a conversation 2. Open the Chat Controls sidebar, in Advanced Params click on Reasoning Effort so it is set to the default string of "medium" 3. Generate another response, this time it will have reasoning 4. Click on Advanced Params > Reasoning Effort > Custom, closing the textbox and returning the button to "Default" 5. Generate another response 6. `Error: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-18 21:06:03 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/pipelines#430
No description provided.