[PR #5] [MERGED] Fix: Move re import to module level in providers.py #19

Closed
opened 2026-03-02 04:07:53 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/gadievron/raptor/pull/5
Author: @mbrg
Created: 11/25/2025
Status: Merged
Merged: 11/25/2025
Merged by: @mbrg

Base: mainHead: fix-ollama-re-import


📝 Commits (1)

  • 92f8b87 Fix: Move re import to module level in providers.py

📊 Changes

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

View changed files

📝 packages/llm_analysis/llm/providers.py (+1 -1)

📄 Description

The re module was conditionally imported inside generate_structured() only when tags were present, but was used unconditionally later in the function causing 'variable not associated with a value' errors.

Moved import to top-level module imports to ensure availability.


🔄 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/gadievron/raptor/pull/5 **Author:** [@mbrg](https://github.com/mbrg) **Created:** 11/25/2025 **Status:** ✅ Merged **Merged:** 11/25/2025 **Merged by:** [@mbrg](https://github.com/mbrg) **Base:** `main` ← **Head:** `fix-ollama-re-import` --- ### 📝 Commits (1) - [`92f8b87`](https://github.com/gadievron/raptor/commit/92f8b87e2e55a3bb5af409928806244b5b6aea7b) Fix: Move re import to module level in providers.py ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/llm_analysis/llm/providers.py` (+1 -1) </details> ### 📄 Description The re module was conditionally imported inside generate_structured() only when <think> tags were present, but was used unconditionally later in the function causing 'variable not associated with a value' errors. Moved import to top-level module imports to ensure availability. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 04:07:53 +03: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
starred/raptor#19
No description provided.