"src/vscode:/vscode.git/clone" did not exist on "6c314ad0ce8f59f24a26556488972bb70bd904a8"
Unverified Commit 550586ef authored by BroadbentJim's avatar BroadbentJim Committed by GitHub
Browse files

fix: Inappropriate lack of Optional type on OpenAI ChatCompletionRequest (#4681)

parent cf29fe9e
......@@ -323,7 +323,7 @@ class ChatCompletionRequest(BaseModel):
max_tokens: Optional[int] = None
n: int = 1
presence_penalty: float = 0.0
response_format: Union[ResponseFormat, StructuralTagResponseFormat] = None
response_format: Optional[Union[ResponseFormat, StructuralTagResponseFormat]] = None
seed: Optional[int] = None
stop: Optional[Union[str, List[str]]] = None
stream: bool = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment