Skip to content

Commit

Permalink
fixies
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 6, 2024
1 parent 6ae9b50 commit 1efce82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const server = createServer(async (request, response) => {

const [functionToCall] = getFunctionCalls(
// @ts-expect-error - type error due to Copilot/OpenAI SDKs interop, I'll look into it ~@gr2m
toolCaller.choices[0].message
toolCaller.choices[0]
)

if (
Expand Down Expand Up @@ -189,8 +189,7 @@ function getBody(request: IncomingMessage): Promise<string> {
bodyParts.push(chunk);
})
.on("end", () => {
body = Buffer.concat(bodyParts);
resolve(body);
resolve(Buffer.concat(bodyParts).toString());
});
});
}

0 comments on commit 1efce82

Please sign in to comment.