boots
CDCloudflare Developers
•Created by echoes221 on 9/29/2024 in #workers-ai
I'm trying to get started with workers
6 replies
CDCloudflare Developers
•Created by echoes221 on 9/29/2024 in #workers-ai
I'm trying to get started with workers
ah also my prompt did include the instruction:
"Use the tool "make_request". Always respond in valid JSON. Help the user test the happy path."
6 replies
CDCloudflare Developers
•Created by echoes221 on 9/29/2024 in #workers-ai
I'm trying to get started with workers
i was using hermes 2 as an experiment but the latency was too high for my use case. i never had problems with not getting structured output, and did indeed use tool_choice, similar to the openai api. here's example code:
https://github.com/fiberplane/fpx/blob/main/examples/ai-request-generation/src/index.ts
6 replies
Cookies not available in other Route
also depending on your oauth flow there are some interesting patterns you can do with that state param. (you can use it to reference a record in the database that understands the "state" of the user's authorization flow, i.e., pending or granted or rejected, and update it accordingly depending on the response from spotify)
18 replies
Cookies not available in other Route
just off the cuff — my impression is that since you're redirecting the response from
/login/:userId
, the set-cookie
header won't actually be sent. which would explain why you don't have the cookie in /callback
it would be better to pass the userId
param as part of the redirectUI, that way you can parse it from the url in /callback
also most authorization providers will document a way to pass state in your auth url, the spotify docs might tell you how to do something like that18 replies