Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
loosen functions type (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerred authored Feb 27, 2024
1 parent c44f80d commit 28823fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backends/openai/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ class ChatDelta(BaseModel):
class ChatCompletionRequest(BaseModel):
model: str
messages: list[ChatMessage]
functions: list[ChatFunction] | None = None
functions: list | None = None
temperature: float | None = 1.0
top_p: float | None = 1
stream: bool | None = False
stop: str | None = None
max_tokens: int | None = 128
Expand Down

0 comments on commit 28823fc

Please sign in to comment.