Skip to content

Commit 3b80129

Browse files
committed
fixies
1 parent 9cbe7d3 commit 3b80129

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const server = createServer(async (request, response) => {
102102

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

108108
if (
@@ -191,8 +191,7 @@ function getBody(request: IncomingMessage): Promise<string> {
191191
bodyParts.push(chunk);
192192
})
193193
.on("end", () => {
194-
body = Buffer.concat(bodyParts);
195-
resolve(body);
194+
resolve(Buffer.concat(bodyParts).toString());
196195
});
197196
});
198197
}

0 commit comments

Comments
 (0)