@@ -14,7 +14,7 @@ export class Chat extends APIResource {
1414 /**
1515 * Generate a chat completion based on the provided messages. The response shown
1616 * below is for non-streaming. To learn about streaming responses, see the
17- * [chat completion guide](/api-guides/chat-completion).
17+ * [chat completion guide](https://dev.writer.com /api-guides/chat-completion).
1818 */
1919 chat ( body : ChatChatParamsNonStreaming , options ?: RequestOptions ) : APIPromise < ChatCompletion > ;
2020 chat ( body : ChatChatParamsStreaming , options ?: RequestOptions ) : APIPromise < Stream < ChatCompletionChunk > > ;
@@ -282,10 +282,10 @@ export interface ChatCompletionParams {
282282 messages : Array < ChatCompletionParams . Message > ;
283283
284284 /**
285- * Specifies the model to be used for generating responses. The chat model is
286- * always `palmyra-x-004` for conversational use .
285+ * The [ID of the model](https://dev.writer.com/home/models) to use for creating
286+ * the chat completion .
287287 */
288- model : string ;
288+ model : 'palmyra-x-004' | 'palmyra-fin' | 'palmyra-med' | 'palmyra-creative' | 'palmyra-x-003-instruct' ;
289289
290290 /**
291291 * Specifies whether to return log probabilities of the output tokens.
@@ -301,7 +301,7 @@ export interface ChatCompletionParams {
301301
302302 /**
303303 * Specifies the number of completions (responses) to generate from the model in a
304- * single request. This parameter allows multiple responses to be generated ,
304+ * single request. This parameter allows for generating multiple responses ,
305305 * offering a variety of potential replies from which to choose.
306306 */
307307 n ?: number ;
@@ -344,7 +344,9 @@ export interface ChatCompletionParams {
344344 * generate responses. The tool definitions use JSON schema. You can define your
345345 * own functions or use one of the built-in `graph`, `llm`, or `vision` tools. Note
346346 * that you can only use one built-in tool type in the array (only one of `graph`,
347- * `llm`, or `vision`).
347+ * `llm`, or `vision`). You can pass multiple custom
348+ * tools](https://dev.writer.com/api-guides/tool-calling) of type `function` in the
349+ * same request.
348350 */
349351 tools ?: Array < Shared . ToolParam > ;
350352
@@ -362,7 +364,8 @@ export namespace ChatCompletionParams {
362364 /**
363365 * The role of the chat message. You can provide a system prompt by setting the
364366 * role to `system`, or specify that a message is the result of a
365- * [tool call](/api-guides/tool-calling) by setting the role to `tool`.
367+ * [tool call](https://dev.writer.com/api-guides/tool-calling) by setting the role
368+ * to `tool`.
366369 */
367370 role : 'user' | 'assistant' | 'system' | 'tool' ;
368371
@@ -426,10 +429,10 @@ export interface ChatChatParamsBase {
426429 messages : Array < ChatChatParams . Message > ;
427430
428431 /**
429- * Specifies the model to be used for generating responses. The chat model is
430- * always `palmyra-x-004` for conversational use .
432+ * The [ID of the model](https://dev.writer.com/home/models) to use for creating
433+ * the chat completion .
431434 */
432- model : string ;
435+ model : 'palmyra-x-004' | 'palmyra-fin' | 'palmyra-med' | 'palmyra-creative' | 'palmyra-x-003-instruct' ;
433436
434437 /**
435438 * Specifies whether to return log probabilities of the output tokens.
@@ -445,7 +448,7 @@ export interface ChatChatParamsBase {
445448
446449 /**
447450 * Specifies the number of completions (responses) to generate from the model in a
448- * single request. This parameter allows multiple responses to be generated ,
451+ * single request. This parameter allows for generating multiple responses ,
449452 * offering a variety of potential replies from which to choose.
450453 */
451454 n ?: number ;
@@ -488,7 +491,9 @@ export interface ChatChatParamsBase {
488491 * generate responses. The tool definitions use JSON schema. You can define your
489492 * own functions or use one of the built-in `graph`, `llm`, or `vision` tools. Note
490493 * that you can only use one built-in tool type in the array (only one of `graph`,
491- * `llm`, or `vision`).
494+ * `llm`, or `vision`). You can pass multiple custom
495+ * tools](https://dev.writer.com/api-guides/tool-calling) of type `function` in the
496+ * same request.
492497 */
493498 tools ?: Array < Shared . ToolParam > ;
494499
@@ -506,7 +511,8 @@ export namespace ChatChatParams {
506511 /**
507512 * The role of the chat message. You can provide a system prompt by setting the
508513 * role to `system`, or specify that a message is the result of a
509- * [tool call](/api-guides/tool-calling) by setting the role to `tool`.
514+ * [tool call](https://dev.writer.com/api-guides/tool-calling) by setting the role
515+ * to `tool`.
510516 */
511517 role : 'user' | 'assistant' | 'system' | 'tool' ;
512518
0 commit comments