mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
Remove max thinking tokens (#144)
Some checks are pending
Lint / lint (push) Waiting to run
Test / test-e2e (3.12) (push) Blocked by required conditions
Test / test (3.10) (push) Waiting to run
Test / test (3.11) (push) Waiting to run
Test / test (3.12) (push) Waiting to run
Test / test (3.13) (push) Waiting to run
Test / test-e2e (3.10) (push) Blocked by required conditions
Test / test-e2e (3.11) (push) Blocked by required conditions
Test / test-e2e (3.13) (push) Blocked by required conditions
Test / test-examples (3.10) (push) Blocked by required conditions
Test / test-examples (3.11) (push) Blocked by required conditions
Test / test-examples (3.12) (push) Blocked by required conditions
Test / test-examples (3.13) (push) Blocked by required conditions
Some checks are pending
Lint / lint (push) Waiting to run
Test / test-e2e (3.12) (push) Blocked by required conditions
Test / test (3.10) (push) Waiting to run
Test / test (3.11) (push) Waiting to run
Test / test (3.12) (push) Waiting to run
Test / test (3.13) (push) Waiting to run
Test / test-e2e (3.10) (push) Blocked by required conditions
Test / test-e2e (3.11) (push) Blocked by required conditions
Test / test-e2e (3.13) (push) Blocked by required conditions
Test / test-examples (3.10) (push) Blocked by required conditions
Test / test-examples (3.11) (push) Blocked by required conditions
Test / test-examples (3.12) (push) Blocked by required conditions
Test / test-examples (3.13) (push) Blocked by required conditions
It's not used anywhere and it can be set through the env parameter
`ClaudeCodeOptions(env={"MAX_THINKING_TOKENS" : 8000})`
This commit is contained in:
parent
4ea71cfb97
commit
0aab45be7d
3 changed files with 0 additions and 3 deletions
|
|
@ -217,7 +217,6 @@ async def example_with_options():
|
|||
# Configure options
|
||||
options = ClaudeCodeOptions(
|
||||
allowed_tools=["Read", "Write"], # Allow file operations
|
||||
max_thinking_tokens=10000,
|
||||
system_prompt="You are a helpful coding assistant.",
|
||||
env={
|
||||
"ANTHROPIC_MODEL": "claude-3-7-sonnet-20250219",
|
||||
|
|
|
|||
|
|
@ -271,7 +271,6 @@ class ClaudeCodeOptions:
|
|||
"""Query options for Claude SDK."""
|
||||
|
||||
allowed_tools: list[str] = field(default_factory=list)
|
||||
max_thinking_tokens: int = 8000
|
||||
system_prompt: str | None = None
|
||||
append_system_prompt: str | None = None
|
||||
mcp_servers: dict[str, McpServerConfig] | str | Path = field(default_factory=dict)
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ class TestOptions:
|
|||
"""Test Options with default values."""
|
||||
options = ClaudeCodeOptions()
|
||||
assert options.allowed_tools == []
|
||||
assert options.max_thinking_tokens == 8000
|
||||
assert options.system_prompt is None
|
||||
assert options.permission_mode is None
|
||||
assert options.continue_conversation is False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue