@askalf/dario 2.9.3 → 2.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/proxy.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ export ANTHROPIC_BASE_URL=http://localhost:3456 # or OPENAI_BASE_URL=http://lo
|
|
|
33
33
|
export ANTHROPIC_API_KEY=dario # or OPENAI_API_KEY=dario
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Opus, Sonnet, Haiku — all models, streaming, tool use. Works with Cursor, Continue, Aider, LiteLLM, Hermes, OpenClaw, or any tool that speaks the Anthropic or OpenAI API. When rate limited, `--cli` routes through Claude Code for uninterrupted Opus access.
|
|
36
|
+
Opus, Sonnet, Haiku — all models, streaming, tool use. **Zero dependencies.** ~1,600 lines of TypeScript. Works with Cursor, Continue, Aider, LiteLLM, Hermes, OpenClaw, or any tool that speaks the Anthropic or OpenAI API. When rate limited, `--cli` routes through Claude Code for uninterrupted Opus access.
|
|
37
37
|
|
|
38
38
|
<table>
|
|
39
39
|
<tr>
|
|
@@ -51,7 +51,7 @@ Opus, Sonnet, Haiku — all models, streaming, tool use. Works with Cursor, Cont
|
|
|
51
51
|
|
|
52
52
|
**Copilot** (Microsoft)
|
|
53
53
|
|
|
54
|
-
*"Verdict: Safe for local use — well-implemented with strong security practices. Minimal attack surface:
|
|
54
|
+
*"Verdict: Safe for local use — well-implemented with strong security practices. Minimal attack surface: zero runtime dependencies, PKCE OAuth, localhost-only binding, timing-safe auth, zero telemetry. The main risk vector is operator error rather than code defects."*
|
|
55
55
|
|
|
56
56
|
</td>
|
|
57
57
|
<td width="33%" valign="top">
|
package/dist/proxy.js
CHANGED
|
@@ -788,7 +788,9 @@ export async function startProxy(opts = {}) {
|
|
|
788
788
|
if (supportsThinking && !r.thinking) {
|
|
789
789
|
r.thinking = { type: 'adaptive' };
|
|
790
790
|
}
|
|
791
|
-
|
|
791
|
+
// Claude Code always sends max_tokens: 64000. Values above this
|
|
792
|
+
// are a fingerprint — cap to match real CC behavior.
|
|
793
|
+
if (!r.max_tokens || r.max_tokens !== 64000) {
|
|
792
794
|
r.max_tokens = 64000;
|
|
793
795
|
}
|
|
794
796
|
if (supportsThinking && !r.output_config) {
|