Skip to content

Commit 56e0040

Browse files
authored
chore(fai): Update param types. (#574)
1 parent 4170eaa commit 56e0040

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

fern/apis/fai/definition/chat.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,32 @@ service:
1919
name: ChatCompletionRequest
2020
body:
2121
properties:
22-
model: optional<string>
23-
system_prompt: optional<string>
24-
messages: list<ChatTurn>
22+
model:
23+
type: LanguageModel
24+
docs: The model to use for the chat completion.
25+
system_prompt:
26+
type: optional<string>
27+
docs: The system prompt to use for the chat completion.
28+
messages:
29+
type: list<ChatTurn>
30+
docs: The messages to use for the chat completion.
2531
response: ChatCompletionResponse
2632
errors:
2733
- commons.BadRequestError
2834
- commons.InternalError
2935

3036
types:
3137
ChatCompletionResponse:
32-
type: list<ChatTurn>
38+
properties:
39+
turns: list<ChatTurn>
40+
citations: list<string>
3341

3442
ChatTurn:
3543
properties:
3644
role: string
3745
content: string
46+
47+
LanguageModel:
48+
enum:
49+
- claude-4-sonnet-20250514
50+
- command-a-03-2025

0 commit comments

Comments
 (0)