samsar-js 0.48.12 → 0.48.14

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/README.md CHANGED
@@ -93,7 +93,10 @@ const cancelled = await samsar.cancelRender({
93
93
  console.log(cancelled.data.status, cancelled.data.cancelled);
94
94
 
95
95
  // Enhance chat message
96
- const enhanced = await samsar.enhanceMessage({ message: 'Please improve this caption.' });
96
+ const enhanced = await samsar.enhanceMessage({
97
+ message: 'Please improve this caption.',
98
+ maxwords: 450,
99
+ });
97
100
 
98
101
  // Set an account-level assistant system prompt
99
102
  await samsar.setAssistantSystemPrompt({
package/dist/index.d.ts CHANGED
@@ -292,6 +292,8 @@ export interface EnhanceMessageRequest {
292
292
  message: string;
293
293
  metadata?: Record<string, unknown>;
294
294
  language?: string;
295
+ maxwords?: number | string;
296
+ maxWords?: number | string;
295
297
  }
296
298
  export interface EnhanceMessageResponse {
297
299
  content: string;
@@ -1436,6 +1438,7 @@ export declare class SamsarClient {
1436
1438
  /**
1437
1439
  * Enhance or rewrite text using the chat enhancement endpoint.
1438
1440
  * Optionally pass `language` (code or name) to enforce the output language.
1441
+ * Pass `maxwords` (or `maxWords`) as a positive integer to override the default output limit.
1439
1442
  */
1440
1443
  enhanceMessage(payload: EnhanceMessageRequest, options?: SamsarRequestOptions): Promise<SamsarResult<EnhanceMessageResponse>>;
1441
1444
  /**
package/dist/index.js CHANGED
@@ -611,6 +611,7 @@ export class SamsarClient {
611
611
  /**
612
612
  * Enhance or rewrite text using the chat enhancement endpoint.
613
613
  * Optionally pass `language` (code or name) to enforce the output language.
614
+ * Pass `maxwords` (or `maxWords`) as a positive integer to override the default output limit.
614
615
  */
615
616
  async enhanceMessage(payload, options) {
616
617
  return this.post('chat/enhance', payload, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samsar-js",
3
- "version": "0.48.12",
3
+ "version": "0.48.14",
4
4
  "description": "TypeScript client for the Samsar Processor API routes.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",