@llmgateway/models 1.294.0 → 1.295.0

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/models.d.ts CHANGED
@@ -3,6 +3,8 @@ export type Provider = (typeof providers)[number]["id"];
3
3
  export type Model = (typeof models)[number]["id"];
4
4
  export type Price = string;
5
5
  export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
6
+ export declare const PROVIDER_API_FORMATS: readonly ["provider-native", "openai-chat-completions", "openai-responses", "google-vertex"];
7
+ export type ProviderApiFormat = (typeof PROVIDER_API_FORMATS)[number];
6
8
  export interface PricingTier {
7
9
  name: string;
8
10
  upToTokens: number;
@@ -89,7 +91,7 @@ export interface ProviderModelMapping {
89
91
  requiresDisableThinkingParam?: boolean;
90
92
  chatTemplateThinkingKey?: string;
91
93
  supportsResponsesApi?: boolean;
92
- apiFormat?: "openai-chat-completions";
94
+ apiFormat?: ProviderApiFormat;
93
95
  serviceTiers?: string[];
94
96
  serviceTierMultipliers?: Partial<Record<string, number>>;
95
97
  serviceTierRegions?: string[];
package/dist/models.js CHANGED
@@ -25,6 +25,12 @@ import { tencentModels } from "./models/tencent.js";
25
25
  import { xaiModels } from "./models/xai.js";
26
26
  import { xiaomiModels } from "./models/xiaomi.js";
27
27
  import { zaiModels } from "./models/zai.js";
28
+ export const PROVIDER_API_FORMATS = [
29
+ "provider-native",
30
+ "openai-chat-completions",
31
+ "openai-responses",
32
+ "google-vertex",
33
+ ];
28
34
  export const models = [
29
35
  ...llmgatewayModels,
30
36
  ...openaiModels,
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OA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W;IACd,GAAG,eAAe;IAClB,GAAG,kBAAkB;IACrB,GAAG,UAAU;IACb,GAAG,YAAY;IACf,GAAG,aAAa;IAChB,GAAG,YAAY;IACf,GAAG,aAAa;IAChB,GAAG,SAAS;IACZ,GAAG,gBAAgB;CACkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmgateway/models",
3
- "version": "1.294.0",
3
+ "version": "1.295.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",