@pi-plugins/claude-cli 0.2.1 → 0.2.2
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/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getBuiltinModels } from "@earendil-works/pi-ai/providers/all";
|
|
2
|
-
import * as
|
|
2
|
+
import * as PiAi from "@earendil-works/pi-ai/compat";
|
|
3
3
|
import * as NodeChildProcess from "node:child_process";
|
|
4
4
|
import { PassThrough } from "node:stream";
|
|
5
5
|
import * as NodeCrypto from "node:crypto";
|
|
@@ -25853,7 +25853,7 @@ const release = () => runtime.runPromise(gen(function* () {
|
|
|
25853
25853
|
* `anthropic` provider, and Claude Code sends the request in between.
|
|
25854
25854
|
*/
|
|
25855
25855
|
function stream(model, context, options) {
|
|
25856
|
-
return
|
|
25856
|
+
return PiAi.anthropicMessagesApi().streamSimple({
|
|
25857
25857
|
...model,
|
|
25858
25858
|
api: "anthropic-messages",
|
|
25859
25859
|
compat: model.compat
|