From 81070d5e2ab5d58d184aa76815bb40779e8f9aca Mon Sep 17 00:00:00 2001 From: Charles Lariviere Date: Thu, 4 Apr 2024 13:49:14 -0400 Subject: [PATCH] add ChatCompletionRole for ChatCompletionMessage.role --- src/openai/types/chat/chat_completion_message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openai/types/chat/chat_completion_message.py b/src/openai/types/chat/chat_completion_message.py index 8db7d17d24..669cbc29f0 100644 --- a/src/openai/types/chat/chat_completion_message.py +++ b/src/openai/types/chat/chat_completion_message.py @@ -1,10 +1,10 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Optional -from typing_extensions import Literal from ..._models import BaseModel from .chat_completion_message_tool_call import ChatCompletionMessageToolCall +from .chat_completion_role import ChatCompletionRole __all__ = ["ChatCompletionMessage", "FunctionCall"] @@ -26,7 +26,7 @@ class ChatCompletionMessage(BaseModel): content: Optional[str] = None """The contents of the message.""" - role: Literal["assistant"] + role: ChatCompletionRole """The role of the author of this message.""" function_call: Optional[FunctionCall] = None