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