Skip to content

Commit 1efce82

Browse files
committed
fixies
1 parent 6ae9b50 commit 1efce82

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const server = createServer(async (request, response) => {
9999

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

105105
if (
@@ -189,8 +189,7 @@ function getBody(request: IncomingMessage): Promise<string> {
189189
bodyParts.push(chunk);
190190
})
191191
.on("end", () => {
192-
body = Buffer.concat(bodyParts);
193-
resolve(body);
192+
resolve(Buffer.concat(bodyParts).toString());
194193
});
195194
});
196195
}

0 commit comments

Comments
 (0)