cleverbit
cleverbit
BRBuildShip + Rowy
Created by cleverbit on 6/6/2024 in #💬・general
cleverbit - Not sure where to ask this, but I w...
No, that function would have to sit outside the assistant, so that the assistant can call it. I’ve injected the date in the OpenAI node itself in buildship- where the Query.prompt variable is, I’ve modified it to include the date: "Current time: " + (new Date().toISOString()) + ", User prompt: " + ctx["root"]["request"]["query"].prompt I’m just wondering if there’s a better way, better place to put this.
4 replies
BRBuildShip + Rowy
Created by cleverbit on 6/6/2024 in #💬・general
cleverbit - Not sure where to ask this, but I w...
Hey thanks for the reply. Yeah I have sort of "hacked" it in by adding Date.now() as a prefix to the prompt — so that is working. But like I said, I'm not sure if there's a better way to handle this, as it feels a bit hacky? In this case, I need my LLM to process dates, because if the user says something like "Remind me tomorrow" then it needs to output a date (which it is already set up to do, with tools, etc.). The problem I was seeing was just that it would base its logic on thinking the current date was Dec 2023. The strange thing is, now if I ask Chat GPT (in the regular chat interface) "what time is it", I can see that it does call one of it's tools, because it says "Analyzing…" and then comes back with the correct UTC time. But when I ask an Assistant that, it does not.
4 replies
BRBuildShip + Rowy
Created by adrfinance on 6/6/2024 in #💬・general
adrfinance - Hello, which database doese Builds...
So if you send: [ {"title":"Hello"}, {"description": "ok"}] That will fail, because the keys of the 2 objects don't match. You have to send:
[
{"title":"Hello", "description":""},
{"title":"", "description":"ok"}
}
[
{"title":"Hello", "description":""},
{"title":"", "description":"ok"}
}
Hope that helps?
6 replies
BRBuildShip + Rowy
Created by adrfinance on 6/6/2024 in #💬・general
adrfinance - Hello, which database doese Builds...
Oh of course, yeah sorry I misread your message! FWIW I've got Supabase working with Get, Update and Create. Something that was non-obvious (just failing silently) was that for an Update if you are passing multiple objects, all the keys need to match.
6 replies
BRBuildShip + Rowy
Created by adrfinance on 6/6/2024 in #💬・general
adrfinance - Hello, which database doese Builds...
Hey @adrfinance curious what you're building that involves update? Sounds interesting, but don't mean to pry. Would you mind sharing?
6 replies