Open jchris opened 8 months ago
I chased the anonymous promise failure down to
const stream = OpenAIStream(openaiResponse, {
onStart: async () => onStartCallback(),
onToken: async (token) => onTokenCallback(token),
});
and neither of those callbacks get called. also this doesn't log:
// @ts-ignore
for await (const _ of stream) {
// no-op, just read the stream, onToken callback above will handle the tokens
console.log("stream", _);
}
great catch, thank you! I'll have a look later this week.
I just picked this up for a potential project and hit a couple of rough spots, thought it better to share:
.env
was more work than expected. Maybe link to the GitHub docs: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-appUser chat messages work, so I guess this is an AI integration thing. After another user message I see:
Sorry there's no pull request. The thing I'm building might make more sense to do
partykit init
on my existing UI anyway.