Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/deepseek_cursor_proxy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
DEFAULT_UPSTREAM_BASE_URL = "https://api.deepseek.com"
DEFAULT_UPSTREAM_MODEL = "deepseek-v4-pro"
DEFAULT_THINKING = "enabled"
DEFAULT_REASONING_EFFORT = "high"
DEFAULT_REASONING_EFFORT = "max"
DEFAULT_DISPLAY_REASONING = True
DEFAULT_COLLAPSIBLE_REASONING = True
DEFAULT_NGROK = True
Expand Down
7 changes: 4 additions & 3 deletions src/deepseek_cursor_proxy/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ def build_arg_parser() -> argparse.ArgumentParser:
parser.add_argument(
"--reasoning-effort",
choices=["low", "medium", "high", "max", "xhigh"],
help="DeepSeek reasoning effort, default from config or high",
help="DeepSeek reasoning effort, default from config or max",
)
parser.add_argument(
"--reasoning-content-path",
Expand Down Expand Up @@ -997,8 +997,9 @@ def log_cursor_request(
) -> None:
model = str(payload.get("model") or config.upstream_model)
LOG.info(
"┌ cursor model=%s messages=%s tools=%s",
"┌ cursor model=%s effort=%s messages=%s tools=%s",
model,
config.reasoning_effort,
format_count(message_count(payload)),
format_count(tool_count(payload)),
)
Expand Down Expand Up @@ -1332,7 +1333,7 @@ def main(argv: list[str] | None = None) -> int:
store.close()
return 2
LOG.info("ngrok tunnel forwarding %s -> %s", public_url, target_url)
LOG.info("Cursor Base URL: %s/v1", public_url.rstrip("/"))
LOG.info("api base url: %s/v1", public_url.rstrip("/"))
try:
server.serve_forever()
except KeyboardInterrupt:
Expand Down
2 changes: 1 addition & 1 deletion src/deepseek_cursor_proxy/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def prepare_upstream_request(
thinking_disabled = config.thinking == "disabled"
if thinking_enabled:
prepared["reasoning_effort"] = normalize_reasoning_effort(
prepared.get("reasoning_effort") or config.reasoning_effort
config.reasoning_effort
)

cache_namespace = reasoning_cache_namespace(
Expand Down
6 changes: 3 additions & 3 deletions tests/test_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _default_cache_namespace() -> str:
ProxyConfig(),
"deepseek-v4-pro",
{"type": "enabled"},
"high",
"max",
)


Expand Down Expand Up @@ -366,14 +366,14 @@ def test_deepseek_pro_and_flash_share_reasoning_namespace(self) -> None:
config,
"deepseek-v4-pro",
{"type": "enabled"},
"high",
"max",
"Bearer key-a",
)
namespace_flash = reasoning_cache_namespace(
config,
"deepseek-v4-flash",
{"type": "enabled"},
"high",
"max",
"Bearer key-a",
)
self.assertEqual(namespace_pro, namespace_flash)
Expand Down