Skip to content

Commit

Permalink
await non stream response
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Nov 1, 2024
1 parent 5c5933b commit 9032ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/inference/server/routes/chat_complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function registerChatCompleteRoute({

const { connectorId, messages, system, toolChoice, tools, functionCalling } = request.body;

const chatCompleteResponse = client.chatComplete({
const chatCompleteResponse = await client.chatComplete({
connectorId,
messages,
system,
Expand Down

0 comments on commit 9032ba1

Please sign in to comment.