@mariozechner/pi-ai 0.5.34 → 0.5.36
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 +31 -31
- package/dist/agent/agent.d.ts +2 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/agent.js +6 -4
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/tools/calculate.d.ts +2 -7
- package/dist/agent/tools/calculate.d.ts.map +1 -1
- package/dist/agent/tools/calculate.js +3 -3
- package/dist/agent/tools/calculate.js.map +1 -1
- package/dist/agent/tools/get-current-time.d.ts +2 -7
- package/dist/agent/tools/get-current-time.d.ts.map +1 -1
- package/dist/agent/tools/get-current-time.js +3 -3
- package/dist/agent/tools/get-current-time.js.map +1 -1
- package/dist/agent/types.d.ts +3 -3
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/models.generated.d.ts +7 -7
- package/dist/models.generated.js +41 -41
- package/dist/models.generated.js.map +1 -1
- package/dist/providers/anthropic.d.ts.map +1 -1
- package/dist/providers/anthropic.js +1 -2
- package/dist/providers/anthropic.js.map +1 -1
- package/dist/providers/google.d.ts.map +1 -1
- package/dist/providers/google.js +1 -2
- package/dist/providers/google.js.map +1 -1
- package/dist/providers/openai-completions.d.ts.map +1 -1
- package/dist/providers/openai-completions.js +1 -2
- package/dist/providers/openai-completions.js.map +1 -1
- package/dist/providers/openai-responses.d.ts.map +1 -1
- package/dist/providers/openai-responses.js +1 -2
- package/dist/providers/openai-responses.js.map +1 -1
- package/dist/typebox-helpers.d.ts +17 -0
- package/dist/typebox-helpers.d.ts.map +1 -0
- package/dist/typebox-helpers.js +21 -0
- package/dist/typebox-helpers.js.map +1 -0
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/validation.d.ts +3 -3
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +22 -22
- package/dist/validation.js.map +1 -1
- package/package.json +4 -1
package/dist/models.generated.js
CHANGED
|
@@ -1696,7 +1696,7 @@ export const MODELS = {
|
|
|
1696
1696
|
cacheRead: 0,
|
|
1697
1697
|
cacheWrite: 0,
|
|
1698
1698
|
},
|
|
1699
|
-
contextWindow:
|
|
1699
|
+
contextWindow: 32768,
|
|
1700
1700
|
maxTokens: 4096,
|
|
1701
1701
|
},
|
|
1702
1702
|
"deepseek/deepseek-chat-v3.1": {
|
|
@@ -1810,13 +1810,13 @@ export const MODELS = {
|
|
|
1810
1810
|
reasoning: false,
|
|
1811
1811
|
input: ["text"],
|
|
1812
1812
|
cost: {
|
|
1813
|
-
input: 0.
|
|
1814
|
-
output: 0.
|
|
1813
|
+
input: 0.07,
|
|
1814
|
+
output: 0.28,
|
|
1815
1815
|
cacheRead: 0,
|
|
1816
1816
|
cacheWrite: 0,
|
|
1817
1817
|
},
|
|
1818
1818
|
contextWindow: 262144,
|
|
1819
|
-
maxTokens:
|
|
1819
|
+
maxTokens: 262144,
|
|
1820
1820
|
},
|
|
1821
1821
|
"qwen/qwen3-30b-a3b-instruct-2507": {
|
|
1822
1822
|
id: "qwen/qwen3-30b-a3b-instruct-2507",
|
|
@@ -2898,12 +2898,12 @@ export const MODELS = {
|
|
|
2898
2898
|
reasoning: false,
|
|
2899
2899
|
input: ["text"],
|
|
2900
2900
|
cost: {
|
|
2901
|
-
input: 0.
|
|
2902
|
-
output: 0.
|
|
2901
|
+
input: 0.02,
|
|
2902
|
+
output: 0.02,
|
|
2903
2903
|
cacheRead: 0,
|
|
2904
2904
|
cacheWrite: 0,
|
|
2905
2905
|
},
|
|
2906
|
-
contextWindow:
|
|
2906
|
+
contextWindow: 16384,
|
|
2907
2907
|
maxTokens: 16384,
|
|
2908
2908
|
},
|
|
2909
2909
|
"qwen/qwen-2.5-72b-instruct": {
|
|
@@ -3006,7 +3006,7 @@ export const MODELS = {
|
|
|
3006
3006
|
cacheWrite: 0,
|
|
3007
3007
|
},
|
|
3008
3008
|
contextWindow: 131072,
|
|
3009
|
-
maxTokens:
|
|
3009
|
+
maxTokens: 131072,
|
|
3010
3010
|
},
|
|
3011
3011
|
"meta-llama/llama-3.1-8b-instruct": {
|
|
3012
3012
|
id: "meta-llama/llama-3.1-8b-instruct",
|
|
@@ -3076,43 +3076,43 @@ export const MODELS = {
|
|
|
3076
3076
|
contextWindow: 131072,
|
|
3077
3077
|
maxTokens: 128000,
|
|
3078
3078
|
},
|
|
3079
|
-
"mistralai/mistral-7b-instruct
|
|
3080
|
-
id: "mistralai/mistral-7b-instruct
|
|
3081
|
-
name: "Mistral: Mistral 7B Instruct
|
|
3079
|
+
"mistralai/mistral-7b-instruct:free": {
|
|
3080
|
+
id: "mistralai/mistral-7b-instruct:free",
|
|
3081
|
+
name: "Mistral: Mistral 7B Instruct (free)",
|
|
3082
3082
|
api: "openai-completions",
|
|
3083
3083
|
provider: "openrouter",
|
|
3084
3084
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
3085
3085
|
reasoning: false,
|
|
3086
3086
|
input: ["text"],
|
|
3087
3087
|
cost: {
|
|
3088
|
-
input: 0
|
|
3089
|
-
output: 0
|
|
3088
|
+
input: 0,
|
|
3089
|
+
output: 0,
|
|
3090
3090
|
cacheRead: 0,
|
|
3091
3091
|
cacheWrite: 0,
|
|
3092
3092
|
},
|
|
3093
3093
|
contextWindow: 32768,
|
|
3094
3094
|
maxTokens: 16384,
|
|
3095
3095
|
},
|
|
3096
|
-
"mistralai/mistral-7b-instruct
|
|
3097
|
-
id: "mistralai/mistral-7b-instruct
|
|
3098
|
-
name: "Mistral: Mistral 7B Instruct
|
|
3096
|
+
"mistralai/mistral-7b-instruct": {
|
|
3097
|
+
id: "mistralai/mistral-7b-instruct",
|
|
3098
|
+
name: "Mistral: Mistral 7B Instruct",
|
|
3099
3099
|
api: "openai-completions",
|
|
3100
3100
|
provider: "openrouter",
|
|
3101
3101
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
3102
3102
|
reasoning: false,
|
|
3103
3103
|
input: ["text"],
|
|
3104
3104
|
cost: {
|
|
3105
|
-
input: 0,
|
|
3106
|
-
output: 0,
|
|
3105
|
+
input: 0.028,
|
|
3106
|
+
output: 0.054,
|
|
3107
3107
|
cacheRead: 0,
|
|
3108
3108
|
cacheWrite: 0,
|
|
3109
3109
|
},
|
|
3110
3110
|
contextWindow: 32768,
|
|
3111
3111
|
maxTokens: 16384,
|
|
3112
3112
|
},
|
|
3113
|
-
"mistralai/mistral-7b-instruct": {
|
|
3114
|
-
id: "mistralai/mistral-7b-instruct",
|
|
3115
|
-
name: "Mistral: Mistral 7B Instruct",
|
|
3113
|
+
"mistralai/mistral-7b-instruct-v0.3": {
|
|
3114
|
+
id: "mistralai/mistral-7b-instruct-v0.3",
|
|
3115
|
+
name: "Mistral: Mistral 7B Instruct v0.3",
|
|
3116
3116
|
api: "openai-completions",
|
|
3117
3117
|
provider: "openrouter",
|
|
3118
3118
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
@@ -3161,34 +3161,34 @@ export const MODELS = {
|
|
|
3161
3161
|
contextWindow: 128000,
|
|
3162
3162
|
maxTokens: 4096,
|
|
3163
3163
|
},
|
|
3164
|
-
"meta-llama/llama-3-
|
|
3165
|
-
id: "meta-llama/llama-3-
|
|
3166
|
-
name: "Meta: Llama 3
|
|
3164
|
+
"meta-llama/llama-3-8b-instruct": {
|
|
3165
|
+
id: "meta-llama/llama-3-8b-instruct",
|
|
3166
|
+
name: "Meta: Llama 3 8B Instruct",
|
|
3167
3167
|
api: "openai-completions",
|
|
3168
3168
|
provider: "openrouter",
|
|
3169
3169
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
3170
3170
|
reasoning: false,
|
|
3171
3171
|
input: ["text"],
|
|
3172
3172
|
cost: {
|
|
3173
|
-
input: 0.
|
|
3174
|
-
output: 0.
|
|
3173
|
+
input: 0.03,
|
|
3174
|
+
output: 0.06,
|
|
3175
3175
|
cacheRead: 0,
|
|
3176
3176
|
cacheWrite: 0,
|
|
3177
3177
|
},
|
|
3178
3178
|
contextWindow: 8192,
|
|
3179
3179
|
maxTokens: 16384,
|
|
3180
3180
|
},
|
|
3181
|
-
"meta-llama/llama-3-
|
|
3182
|
-
id: "meta-llama/llama-3-
|
|
3183
|
-
name: "Meta: Llama 3
|
|
3181
|
+
"meta-llama/llama-3-70b-instruct": {
|
|
3182
|
+
id: "meta-llama/llama-3-70b-instruct",
|
|
3183
|
+
name: "Meta: Llama 3 70B Instruct",
|
|
3184
3184
|
api: "openai-completions",
|
|
3185
3185
|
provider: "openrouter",
|
|
3186
3186
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
3187
3187
|
reasoning: false,
|
|
3188
3188
|
input: ["text"],
|
|
3189
3189
|
cost: {
|
|
3190
|
-
input: 0.
|
|
3191
|
-
output: 0.
|
|
3190
|
+
input: 0.3,
|
|
3191
|
+
output: 0.39999999999999997,
|
|
3192
3192
|
cacheRead: 0,
|
|
3193
3193
|
cacheWrite: 0,
|
|
3194
3194
|
},
|
|
@@ -3297,34 +3297,34 @@ export const MODELS = {
|
|
|
3297
3297
|
contextWindow: 128000,
|
|
3298
3298
|
maxTokens: 4096,
|
|
3299
3299
|
},
|
|
3300
|
-
"mistralai/mistral-
|
|
3301
|
-
id: "mistralai/mistral-
|
|
3302
|
-
name: "Mistral
|
|
3300
|
+
"mistralai/mistral-small": {
|
|
3301
|
+
id: "mistralai/mistral-small",
|
|
3302
|
+
name: "Mistral Small",
|
|
3303
3303
|
api: "openai-completions",
|
|
3304
3304
|
provider: "openrouter",
|
|
3305
3305
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
3306
3306
|
reasoning: false,
|
|
3307
3307
|
input: ["text"],
|
|
3308
3308
|
cost: {
|
|
3309
|
-
input: 0.
|
|
3310
|
-
output: 0.
|
|
3309
|
+
input: 0.19999999999999998,
|
|
3310
|
+
output: 0.6,
|
|
3311
3311
|
cacheRead: 0,
|
|
3312
3312
|
cacheWrite: 0,
|
|
3313
3313
|
},
|
|
3314
3314
|
contextWindow: 32768,
|
|
3315
3315
|
maxTokens: 4096,
|
|
3316
3316
|
},
|
|
3317
|
-
"mistralai/mistral-
|
|
3318
|
-
id: "mistralai/mistral-
|
|
3319
|
-
name: "Mistral
|
|
3317
|
+
"mistralai/mistral-tiny": {
|
|
3318
|
+
id: "mistralai/mistral-tiny",
|
|
3319
|
+
name: "Mistral Tiny",
|
|
3320
3320
|
api: "openai-completions",
|
|
3321
3321
|
provider: "openrouter",
|
|
3322
3322
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
3323
3323
|
reasoning: false,
|
|
3324
3324
|
input: ["text"],
|
|
3325
3325
|
cost: {
|
|
3326
|
-
input: 0.
|
|
3327
|
-
output: 0.
|
|
3326
|
+
input: 0.25,
|
|
3327
|
+
output: 0.25,
|
|
3328
3328
|
cacheRead: 0,
|
|
3329
3329
|
cacheWrite: 0,
|
|
3330
3330
|
},
|