|
|
@ -160,13 +160,12 @@ class ChatOpenAI(BaseChatModel, BaseModel):
|
|
|
|
|
|
|
|
|
|
|
|
extra = Extra.ignore
|
|
|
|
extra = Extra.ignore
|
|
|
|
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
|
|
|
|
@property
|
|
|
|
@property
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
def _llm_type(self) -> str:
|
|
|
|
def _llm_type(self) -> str:
|
|
|
|
# Return a string indicating the type of this language model
|
|
|
|
# Return a string indicating the type of this language model
|
|
|
|
return 'ChatOpenAI'
|
|
|
|
return 'ChatOpenAI'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def check_access(self) -> None:
|
|
|
|
def check_access(self) -> None:
|
|
|
|
"""Check that the user has access to the model."""
|
|
|
|
"""Check that the user has access to the model."""
|
|
|
|
|
|
|
|
|
|
|
|