Skip to content

Commit 85a7ad0

Browse files
jameszyaoSimsonW
authored andcommitted
fix: Add chat completion request body
1 parent ef26c83 commit 85a7ad0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

taskingai/inference/chat_completion.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ def chat_completion(
5252
body = ChatCompletionRequest(
5353
model_id=model_id,
5454
messages=messages,
55-
configs=configs
55+
configs=configs,
56+
function_call=function_call,
57+
functions=functions,
58+
stream=False
5659
)
5760
response: ChatCompletionResponse = api_instance.chat_completion(body=body)
5861
chat_completion_result: ChatCompletion = ChatCompletion(**response.data)

0 commit comments

Comments
 (0)