opencode-auth-load-balancer 0.7.0 → 0.7.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/README.md +3 -0
- package/dist/index.js +5 -4
- package/dist/sdk/anthropic.d.ts +1 -0
- package/dist/sdk/anthropic.js +19420 -0
- package/dist/sdk/kimi.d.ts +1 -0
- package/dist/sdk/kimi.js +15254 -0
- package/dist/sdk/openai.d.ts +1 -0
- package/dist/sdk/openai.js +20991 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -74,6 +74,9 @@ bun run typecheck
|
|
|
74
74
|
bun test
|
|
75
75
|
bun run build
|
|
76
76
|
bun run scripts/smoke-v2.ts # isolated home/config/database/pool, requires opencode 2
|
|
77
|
+
bun run scripts/smoke-v2.ts . --inference # real host, local mock Anthropic, revoked-token rotation
|
|
78
|
+
bun run scripts/smoke-v2.ts . --live # real Anthropic request using the existing pool
|
|
79
|
+
bun run scripts/smoke-v2.ts . --live-codex # real GPT-6.1 Sol request; obsolete host auth must not gate the pool
|
|
77
80
|
```
|
|
78
81
|
|
|
79
82
|
---
|
package/dist/index.js
CHANGED
|
@@ -47378,6 +47378,7 @@ async function setupV2(ctx) {
|
|
|
47378
47378
|
return;
|
|
47379
47379
|
editor.update(adapter.id, (provider) => {
|
|
47380
47380
|
provider.package = packages[adapter.id];
|
|
47381
|
+
provider.integrationID = `auth-load-balancer-${adapter.id}`;
|
|
47381
47382
|
if (active)
|
|
47382
47383
|
provider.activation = "enabled";
|
|
47383
47384
|
provider.settings = { ...provider.settings, transport: "http" };
|
|
@@ -47501,10 +47502,10 @@ var init_v2 = __esm(() => {
|
|
|
47501
47502
|
init_util2();
|
|
47502
47503
|
init_v2_rpc();
|
|
47503
47504
|
packages = {
|
|
47504
|
-
anthropic: "
|
|
47505
|
-
openai: "
|
|
47506
|
-
"kimi-code-plan-cn": "
|
|
47507
|
-
"kimi-code-plan-global": "
|
|
47505
|
+
anthropic: `aisdk:${new URL("./sdk/anthropic.js", import.meta.url).href}`,
|
|
47506
|
+
openai: `aisdk:${new URL("./sdk/openai.js", import.meta.url).href}`,
|
|
47507
|
+
"kimi-code-plan-cn": `aisdk:${new URL("./sdk/kimi.js", import.meta.url).href}`,
|
|
47508
|
+
"kimi-code-plan-global": `aisdk:${new URL("./sdk/kimi.js", import.meta.url).href}`
|
|
47508
47509
|
};
|
|
47509
47510
|
});
|
|
47510
47511
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createAnthropic } from '@ai-sdk/anthropic';
|