@discomedia/utils 1.0.69 → 1.0.70

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.mjs CHANGED
@@ -1162,38 +1162,42 @@ const OPENAI_MODELS = [
1162
1162
  function isOpenAIModel(model) {
1163
1163
  return OPENAI_MODELS.includes(model);
1164
1164
  }
1165
+ /**
1166
+ * Represents OpenRouter models
1167
+ */
1168
+ const OPENROUTER_MODELS = [
1169
+ 'openai/gpt-5',
1170
+ 'openai/gpt-5-mini',
1171
+ 'openai/gpt-5.4-mini',
1172
+ 'openai/gpt-5-nano',
1173
+ 'openai/gpt-5.1',
1174
+ 'openai/gpt-5.4',
1175
+ 'openai/gpt-5.4-pro',
1176
+ 'openai/gpt-5.5',
1177
+ 'openai/gpt-5.5-pro',
1178
+ 'openai/gpt-5.2',
1179
+ 'openai/gpt-5.2-pro',
1180
+ 'openai/gpt-5.1-codex',
1181
+ 'openai/gpt-5.1-codex-max',
1182
+ 'openai/gpt-oss-120b',
1183
+ 'z.ai/glm-4.5',
1184
+ 'z.ai/glm-4.5-air',
1185
+ 'google/gemini-2.5-flash',
1186
+ 'google/gemini-2.5-flash-lite',
1187
+ 'deepseek/deepseek-r1-0528',
1188
+ 'deepseek/deepseek-chat-v3-0324',
1189
+ ];
1165
1190
  /**
1166
1191
  * Type guard to check if a model is an OpenRouter model
1167
1192
  */
1168
1193
  function isOpenRouterModel(model) {
1169
- const openRouterModels = [
1170
- 'openai/gpt-5',
1171
- 'openai/gpt-5-mini',
1172
- 'openai/gpt-5.4-mini',
1173
- 'openai/gpt-5-nano',
1174
- 'openai/gpt-5.1',
1175
- 'openai/gpt-5.4',
1176
- 'openai/gpt-5.4-pro',
1177
- 'openai/gpt-5.5',
1178
- 'openai/gpt-5.5-pro',
1179
- 'openai/gpt-5.2',
1180
- 'openai/gpt-5.2-pro',
1181
- 'openai/gpt-5.1-codex',
1182
- 'openai/gpt-5.1-codex-max',
1183
- 'openai/gpt-oss-120b',
1184
- 'z.ai/glm-4.5',
1185
- 'z.ai/glm-4.5-air',
1186
- 'google/gemini-2.5-flash',
1187
- 'google/gemini-2.5-flash-lite',
1188
- 'deepseek/deepseek-r1-0528',
1189
- 'deepseek/deepseek-chat-v3-0324',
1190
- ];
1191
- return openRouterModels.includes(model);
1194
+ return OPENROUTER_MODELS.includes(model);
1192
1195
  }
1193
1196
 
1194
1197
  var Types = /*#__PURE__*/Object.freeze({
1195
1198
  __proto__: null,
1196
1199
  OPENAI_MODELS: OPENAI_MODELS,
1200
+ OPENROUTER_MODELS: OPENROUTER_MODELS,
1197
1201
  isOpenAIModel: isOpenAIModel,
1198
1202
  isOpenRouterModel: isOpenRouterModel
1199
1203
  });
@@ -21562,5 +21566,5 @@ const disco = {
21562
21566
  },
21563
21567
  };
21564
21568
 
21565
- export { AlpacaMarketDataAPI, AlpacaTradingAPI, OPENAI_MODELS, disco, isOpenAIModel, isOpenRouterModel, supportsTemperature };
21569
+ export { AlpacaMarketDataAPI, AlpacaTradingAPI, OPENAI_MODELS, OPENROUTER_MODELS, disco, isOpenAIModel, isOpenRouterModel, supportsTemperature };
21566
21570
  //# sourceMappingURL=index.mjs.map