Proposal: auto-suppress THINKING for structured-output (format=) requests
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- python
- Lĩnh vực
- ai, backend-api-design
Hướng nghiên cứu
Read the related issues #1553, #406, and #1587 to understand the parser failure and existing thinking-option behavior. The proposal names generate_from_raw, act, and @generative as entry points, but does not identify files or tests. First get maintainer sign-off on the default-behavior change; done means structured-output requests default thinking off unless explicitly overridden, with coverage for the affected entry points.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
#1553 documents that structured-output examples using @generative stubs / format= are unreliable on thinking models unless the caller explicitly sets ModelOption.THINKING: False — the output parser otherwise receives the combined think-block-plus-answer text.
#1587 (Granite 4.2 defaults) independently confirmed the underlying mechanism: granite4.2 thinks by default unless reasoning_effort="none" / chat_template_kwargs.enable_thinking=False is sent, and produces a disproportionately long think block even for trivial prompts (observed: a 64-token capped reply was ~45 thinking tokens with thinking on, 2 with it off).
Proposal
When a caller passes format=SomeModel (or otherwise requests constrained/structured output) to generate_from_raw / act / a @generative stub, and the caller has not explicitly set ModelOption.THINKING, default it to False. This fixes the "parser receives combined think+answer text" failure mode structurally, instead of requiring every caller to remember to set the option themselves.
This is a default-behavior change (an explicit ModelOption.THINKING: True would still opt back in), so it needs maintainer sign-off on the direction before implementation — filing as a proposal to discuss, not a ready-to-merge PR.
Related
- #1553 — states the problem, requests test coverage for
ModelOption.THINKINGonOllamaModelBackend - #406 — cross-backend thinking abstraction (this would be one concrete policy built on top of it)
- #1587 — Ollama-specific
THINKING→reasoning_effortmapping this proposal would build on
- Ngôn ngữ chính
- Python
- Star
- 1.8k
- Fork
- 161
- Merge trung bình
- 4 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 45
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của generative-computing/mellea
-
bug: `mellea.plugins.builtin_debug.generation.log_generation_post_call` shows model as unknownĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
generative-computing/mellea#1864 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug: instruct() and react() replay tool-call turns without tool_callsCó thể đã có người làm @simonyang08 đã nhận 21 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
generative-computing/mellea#1784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examplesCó thể đã có người làm @madhusudhan1260 đã nhận 18 ngày trước. Đang mởgood first issue p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
generative-computing/mellea#1780 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
area/telemetry enhancement p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
generative-computing/mellea#1210 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Add requirement priorityĐang mởarea/requirement area/stdlib enhancement p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
generative-computing/mellea#31 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của generative-computing/mellea
Issue tương tự
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shardsĐang mởstatus/accepted type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
microsoft/apm#5309 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug vector-store
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
EverMind-AI/Raven#1413 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS poolsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
Maintainer thường phản hồi trong vòng 2 ngày