From f10c757d831d90407ba47b4659d9cd34b1a35b1d Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Fri, 29 Sep 2023 09:27:37 +0100 Subject: [PATCH] fix(api): add content_filter to chat completion finish reason (#344) --- src/resources/chat/completions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index 18338c669..b72b595d2 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -139,7 +139,7 @@ export namespace ChatCompletionChunk { * content was omitted due to a flag from our content filters, or `function_call` * if the model called a function. */ - finish_reason: 'stop' | 'length' | 'function_call' | null; + finish_reason: 'stop' | 'length' | 'function_call' | 'content_filter' | null; /** * The index of the choice in the list of choices.