Skip to content
1 min read · 82 words

Interface: ChatCompletionsResponseChoice ​

Defined in: src/batteries/llm/openai_chat_completions/types.ts:327

A choice returned in non-streaming chat completions.

Properties ​

PropertyTypeDescriptionDefined in
finish_reason?string | nullReason why the model finished generating.src/batteries/llm/openai_chat_completions/types.ts:339
index?numberIndex of the choice in the list.src/batteries/llm/openai_chat_completions/types.ts:331
message?ChatCompletionsResponseMessageMessage response payload.src/batteries/llm/openai_chat_completions/types.ts:335