@mnemom/mnemom 0.17.27 → 0.17.28

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.
@@ -33,7 +33,9 @@ const PROVIDERS = {
33
33
  label: "OpenAI",
34
34
  keyEnv: "OPENAI_API_KEY",
35
35
  keyHeader: "Authorization",
36
- defaultModel: "gpt-4o-mini",
36
+ // gpt-6-luna: the successor MNE-8754 ruled for gpt-4o-mini, which OpenAI shuts down
37
+ // 2027-01-14 (MNE-8755).
38
+ defaultModel: "gpt-6-luna",
37
39
  basePath: "/openai",
38
40
  },
39
41
  gemini: {
@@ -218,9 +220,12 @@ export async function birthThroughGateway(gatewayUrl, provider, agentName, provi
218
220
  switch (provider) {
219
221
  case "openai":
220
222
  url = `${gatewayUrl}${prov.basePath}/v1/chat/completions`;
223
+ // max_completion_tokens, not max_tokens: gpt-6-luna is a reasoning-profile model and
224
+ // OpenAI rejects max_tokens for those on Chat Completions (models-registry.ts
225
+ // REASONING_SUPPORTED_PARAMS). Older chat models accept max_completion_tokens too.
221
226
  body = JSON.stringify({
222
227
  model: prov.defaultModel,
223
- max_tokens: 16,
228
+ max_completion_tokens: 16,
224
229
  messages: [{ role: "user", content: "hello" }],
225
230
  });
226
231
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mnemom/mnemom",
3
- "version": "0.17.27",
3
+ "version": "0.17.28",
4
4
  "description": "Transparent AI agent tracing",
5
5
  "type": "module",
6
6
  "bin": {