@axemere/gateway 0.1.7 → 0.1.8

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/client.js CHANGED
@@ -51,6 +51,7 @@ class AiGatewayClient {
51
51
  const provider_params = {
52
52
  model,
53
53
  messages,
54
+ max_tokens: extra_params["max_tokens"] ?? 256,
54
55
  ...extra_params,
55
56
  };
56
57
  if (stream) {
package/dist/types.d.ts CHANGED
@@ -38,6 +38,15 @@ export interface StreamChunk {
38
38
  record_id?: string;
39
39
  metering?: Metering;
40
40
  }
41
+ /**
42
+ * Parameters for {@link AiGatewayClient.execute}.
43
+ *
44
+ * Any extra keys beyond the named fields are forwarded verbatim to the
45
+ * provider as `provider_params`. Notable passthrough field:
46
+ *
47
+ * - `max_tokens` — defaults to `256` when omitted (Anthropic requires this
48
+ * field and rejects requests without it). Pass an explicit value to override.
49
+ */
41
50
  export interface ExecuteParams {
42
51
  messages: Message[];
43
52
  provider?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axemere/gateway",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Axemere AI Gateway SDK — core client, config, and proxy URL builder",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",