mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-30 04:40:46 +00:00
fix(groq): update reasoning integration model (#38976)
Requests for `qwen/qwen3-32b` now return `model_not_found` under the Groq integration-test credentials, so the reasoning invoke, stream, and disabled-effort tests fail before exercising `ChatGroq`. This switches those cases to `qwen/qwen3.6-27b`, which Groq documents as supporting parsed reasoning and `reasoning_effort="none"`, and shares the reasoning-model constant across all three tests.
This commit is contained in:
@@ -28,8 +28,8 @@ DEFAULT_MODEL_NAME = "openai/gpt-oss-20b"
|
||||
TOOL_CALLING_MODEL_NAME = "qwen/qwen3.6-27b"
|
||||
TOOL_CALLING_MODEL_KWARGS: dict[str, Any] = {"reasoning_effort": "none"}
|
||||
|
||||
# gpt-oss doesn't support `reasoning_effort`
|
||||
REASONING_MODEL_NAME = "qwen/qwen3-32b"
|
||||
# GPT-OSS models don't support `reasoning_format`
|
||||
REASONING_MODEL_NAME = "qwen/qwen3.6-27b"
|
||||
|
||||
|
||||
#
|
||||
@@ -278,7 +278,7 @@ def test_reasoning_output_stream() -> None:
|
||||
def test_reasoning_effort_none() -> None:
|
||||
"""Test that no reasoning output is returned if effort is set to none."""
|
||||
chat = ChatGroq(
|
||||
model="qwen/qwen3-32b", # Only qwen3 currently supports reasoning_effort = none
|
||||
model=REASONING_MODEL_NAME,
|
||||
reasoning_effort="none",
|
||||
)
|
||||
message = HumanMessage(content="What is the capital of France?")
|
||||
|
||||
Reference in New Issue
Block a user