We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cbe7d3 commit 3b80129Copy full SHA for 3b80129
src/index.ts
@@ -102,7 +102,7 @@ const server = createServer(async (request, response) => {
102
103
const [functionToCall] = getFunctionCalls(
104
// @ts-expect-error - type error due to Copilot/OpenAI SDKs interop, I'll look into it ~@gr2m
105
- toolCaller.choices[0].message
+ toolCaller.choices[0]
106
)
107
108
if (
@@ -191,8 +191,7 @@ function getBody(request: IncomingMessage): Promise<string> {
191
bodyParts.push(chunk);
192
})
193
.on("end", () => {
194
- body = Buffer.concat(bodyParts);
195
- resolve(body);
+ resolve(Buffer.concat(bodyParts).toString());
196
});
197
198
}
0 commit comments