From 990425411a78898aaeac5683744cc9a53d72ad2c Mon Sep 17 00:00:00 2001 From: eden Date: Sat, 23 Aug 2025 14:11:52 -0400 Subject: [PATCH] chore(fai): Update param types. --- fern/apis/fai/definition/chat.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/fern/apis/fai/definition/chat.yml b/fern/apis/fai/definition/chat.yml index 34be34919..4ff478da8 100644 --- a/fern/apis/fai/definition/chat.yml +++ b/fern/apis/fai/definition/chat.yml @@ -19,9 +19,15 @@ service: name: ChatCompletionRequest body: properties: - model: optional - system_prompt: optional - messages: list + model: + type: LanguageModel + docs: The model to use for the chat completion. + system_prompt: + type: optional + docs: The system prompt to use for the chat completion. + messages: + type: list + docs: The messages to use for the chat completion. response: ChatCompletionResponse errors: - commons.BadRequestError @@ -29,9 +35,16 @@ service: types: ChatCompletionResponse: - type: list + properties: + turns: list + citations: list ChatTurn: properties: role: string content: string + + LanguageModel: + enum: + - claude-4-sonnet-20250514 + - command-a-03-2025