aimodels 0.3.11 → 0.3.12
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.js +58 -1
- package/dist/index.mjs +58 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2117,6 +2117,62 @@ var groq_provider_default = {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
};
|
|
2119
2119
|
|
|
2120
|
+
// src/data/providers/azure-provider.json
|
|
2121
|
+
var azure_provider_default = {
|
|
2122
|
+
id: "azure",
|
|
2123
|
+
name: "Azure OpenAI",
|
|
2124
|
+
websiteUrl: "https://azure.microsoft.com/en-us/products/ai-services/openai-service",
|
|
2125
|
+
apiUrl: "https://learn.microsoft.com/en-us/azure/ai-services/openai/reference",
|
|
2126
|
+
defaultModel: "gpt-4",
|
|
2127
|
+
models: {
|
|
2128
|
+
"gpt-4": {
|
|
2129
|
+
type: "token",
|
|
2130
|
+
input: 0,
|
|
2131
|
+
output: 0
|
|
2132
|
+
},
|
|
2133
|
+
"gpt-4-32k": {
|
|
2134
|
+
type: "token",
|
|
2135
|
+
input: 0,
|
|
2136
|
+
output: 0
|
|
2137
|
+
},
|
|
2138
|
+
"gpt-4-vision": {
|
|
2139
|
+
type: "token",
|
|
2140
|
+
input: 0,
|
|
2141
|
+
output: 0
|
|
2142
|
+
},
|
|
2143
|
+
"gpt-4o": {
|
|
2144
|
+
type: "token",
|
|
2145
|
+
input: 0,
|
|
2146
|
+
output: 0
|
|
2147
|
+
},
|
|
2148
|
+
"gpt-3.5-turbo": {
|
|
2149
|
+
type: "token",
|
|
2150
|
+
input: 0,
|
|
2151
|
+
output: 0
|
|
2152
|
+
},
|
|
2153
|
+
"gpt-3.5-turbo-16k": {
|
|
2154
|
+
type: "token",
|
|
2155
|
+
input: 0,
|
|
2156
|
+
output: 0
|
|
2157
|
+
},
|
|
2158
|
+
"text-embedding-ada-002": {
|
|
2159
|
+
type: "token",
|
|
2160
|
+
input: 0,
|
|
2161
|
+
output: 0
|
|
2162
|
+
},
|
|
2163
|
+
whisper: {
|
|
2164
|
+
type: "minute",
|
|
2165
|
+
price: 0
|
|
2166
|
+
},
|
|
2167
|
+
"dall-e-3": {
|
|
2168
|
+
type: "image",
|
|
2169
|
+
price: 0,
|
|
2170
|
+
size: "1024x1024",
|
|
2171
|
+
unit: "per_image"
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
};
|
|
2175
|
+
|
|
2120
2176
|
// src/builders/providers.ts
|
|
2121
2177
|
function isTokenPrice(price) {
|
|
2122
2178
|
return typeof price === "object" && price !== null && "type" in price && price.type === "token" && "input" in price && typeof price.input === "number" && "output" in price && typeof price.output === "number";
|
|
@@ -2176,7 +2232,8 @@ function buildAllProviders() {
|
|
|
2176
2232
|
validateProvider(xai_provider_default),
|
|
2177
2233
|
validateProvider(google_provider_default),
|
|
2178
2234
|
validateProvider(deepseek_provider_default),
|
|
2179
|
-
validateProvider(groq_provider_default)
|
|
2235
|
+
validateProvider(groq_provider_default),
|
|
2236
|
+
validateProvider(azure_provider_default)
|
|
2180
2237
|
];
|
|
2181
2238
|
}
|
|
2182
2239
|
function buildProvidersData() {
|
package/dist/index.mjs
CHANGED
|
@@ -2088,6 +2088,62 @@ var groq_provider_default = {
|
|
|
2088
2088
|
}
|
|
2089
2089
|
};
|
|
2090
2090
|
|
|
2091
|
+
// src/data/providers/azure-provider.json
|
|
2092
|
+
var azure_provider_default = {
|
|
2093
|
+
id: "azure",
|
|
2094
|
+
name: "Azure OpenAI",
|
|
2095
|
+
websiteUrl: "https://azure.microsoft.com/en-us/products/ai-services/openai-service",
|
|
2096
|
+
apiUrl: "https://learn.microsoft.com/en-us/azure/ai-services/openai/reference",
|
|
2097
|
+
defaultModel: "gpt-4",
|
|
2098
|
+
models: {
|
|
2099
|
+
"gpt-4": {
|
|
2100
|
+
type: "token",
|
|
2101
|
+
input: 0,
|
|
2102
|
+
output: 0
|
|
2103
|
+
},
|
|
2104
|
+
"gpt-4-32k": {
|
|
2105
|
+
type: "token",
|
|
2106
|
+
input: 0,
|
|
2107
|
+
output: 0
|
|
2108
|
+
},
|
|
2109
|
+
"gpt-4-vision": {
|
|
2110
|
+
type: "token",
|
|
2111
|
+
input: 0,
|
|
2112
|
+
output: 0
|
|
2113
|
+
},
|
|
2114
|
+
"gpt-4o": {
|
|
2115
|
+
type: "token",
|
|
2116
|
+
input: 0,
|
|
2117
|
+
output: 0
|
|
2118
|
+
},
|
|
2119
|
+
"gpt-3.5-turbo": {
|
|
2120
|
+
type: "token",
|
|
2121
|
+
input: 0,
|
|
2122
|
+
output: 0
|
|
2123
|
+
},
|
|
2124
|
+
"gpt-3.5-turbo-16k": {
|
|
2125
|
+
type: "token",
|
|
2126
|
+
input: 0,
|
|
2127
|
+
output: 0
|
|
2128
|
+
},
|
|
2129
|
+
"text-embedding-ada-002": {
|
|
2130
|
+
type: "token",
|
|
2131
|
+
input: 0,
|
|
2132
|
+
output: 0
|
|
2133
|
+
},
|
|
2134
|
+
whisper: {
|
|
2135
|
+
type: "minute",
|
|
2136
|
+
price: 0
|
|
2137
|
+
},
|
|
2138
|
+
"dall-e-3": {
|
|
2139
|
+
type: "image",
|
|
2140
|
+
price: 0,
|
|
2141
|
+
size: "1024x1024",
|
|
2142
|
+
unit: "per_image"
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
};
|
|
2146
|
+
|
|
2091
2147
|
// src/builders/providers.ts
|
|
2092
2148
|
function isTokenPrice(price) {
|
|
2093
2149
|
return typeof price === "object" && price !== null && "type" in price && price.type === "token" && "input" in price && typeof price.input === "number" && "output" in price && typeof price.output === "number";
|
|
@@ -2147,7 +2203,8 @@ function buildAllProviders() {
|
|
|
2147
2203
|
validateProvider(xai_provider_default),
|
|
2148
2204
|
validateProvider(google_provider_default),
|
|
2149
2205
|
validateProvider(deepseek_provider_default),
|
|
2150
|
-
validateProvider(groq_provider_default)
|
|
2206
|
+
validateProvider(groq_provider_default),
|
|
2207
|
+
validateProvider(azure_provider_default)
|
|
2151
2208
|
];
|
|
2152
2209
|
}
|
|
2153
2210
|
function buildProvidersData() {
|