CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
fix(providers): address Codex review on PR #67
xf gong5401b5b5eb60
diff --git a/cubepi/providers/anthropic.py b/cubepi/providers/anthropic.pyindex 4f3bb14..96ed04c 100644--- a/cubepi/providers/anthropic.py+++ b/cubepi/providers/anthropic.py@@ -107,8 +107,14 @@ class AnthropicProvider:"model": model.id,"messages": api_messages,"max_tokens": max_tokens,- "temperature": model.temperature,}+ # Anthropic disallows temperature modifications when extended+ # thinking is enabled — see+ # https://platform.claude.com/docs/en/build-with-claude/extended-thinking#feature-compatibility+ # The provider request will fail with thinking on if we send a+ # non-default temperature, so skip the field unless thinking is off.+ if thinking == "off":+ kwargs["temperature"] = model.temperatureif system_prompt:if cache_control and self._cache_policy.mark_system():kwargs["system"] = [diff --git a/cubepi/providers/openai.py b/cubepi/providers/openai.pyindex 9480124..0c0e019 100644--- a/cubepi/providers/openai.py+++ b/cubepi/providers/openai.py@@ -77,8 +77,6 @@ class OpenAIProvider:"model": model.id,"messages": api_messages,"stream": True,- "max_tokens": model.max_tokens,- "temperature": model.temperature,}if tools:kwargs["tools"] = [self._convert_tool(t) for t in tools]