pi-anthropic-oauth 0.1.13 → 0.1.14
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/package.json +1 -1
- package/src/index.ts +5 -8
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ const DEFAULT_OPUS_4_8: NonNullable<ProviderConfig["models"]>[number] = {
|
|
|
16
16
|
name: "Claude Opus 4.8",
|
|
17
17
|
api: "anthropic-messages",
|
|
18
18
|
reasoning: true,
|
|
19
|
+
thinkingLevelMap: { xhigh: "xhigh" },
|
|
19
20
|
input: ["text", "image"],
|
|
20
21
|
cost: { input: 5, output: 25, cacheRead: 0.5, cacheWrite: 6.25 },
|
|
21
22
|
contextWindow: 1000000,
|
|
@@ -38,16 +39,12 @@ function getAnthropicModels(): NonNullable<ProviderConfig["models"]> {
|
|
|
38
39
|
const models: NonNullable<ProviderConfig["models"]> = modelRegistry
|
|
39
40
|
.getAll()
|
|
40
41
|
.filter((model) => model.provider === "anthropic")
|
|
42
|
+
// Spread the full registry model so every field (thinkingLevelMap,
|
|
43
|
+
// baseUrl, headers, compat, and anything added in future) propagates
|
|
44
|
+
// automatically instead of being silently dropped by a hand-picked list.
|
|
41
45
|
.map((model) => ({
|
|
42
|
-
|
|
43
|
-
name: model.name,
|
|
46
|
+
...model,
|
|
44
47
|
api: model.api ?? "anthropic-messages",
|
|
45
|
-
reasoning: model.reasoning,
|
|
46
|
-
input: model.input,
|
|
47
|
-
cost: model.cost,
|
|
48
|
-
contextWindow: model.contextWindow,
|
|
49
|
-
maxTokens: model.maxTokens,
|
|
50
|
-
compat: model.compat,
|
|
51
48
|
}));
|
|
52
49
|
|
|
53
50
|
if (!models.some((model) => model.id === DEFAULT_OPUS_4_8.id)) {
|