Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Sep 7, 2024
2 parents 27797a9 + 4924ee2 commit e86ab37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/openai/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def chat_completions_common(body: dict, is_legacy: bool = False, stream=False, p
raise InvalidRequestError(message="messages: missing content", param='messages')

# Chat Completions
object_type = 'chat.completions' if not stream else 'chat.completions.chunk'
object_type = 'chat.completion' if not stream else 'chat.completion.chunk'
created_time = int(time.time())
cmpl_id = "chatcmpl-%d" % (int(time.time() * 1000000000))
resp_list = 'data' if is_legacy else 'choices'
Expand Down

0 comments on commit e86ab37

Please sign in to comment.