Tim Stewart
BBuildShip
•Created by Tim Stewart on 6/4/2024 in #❓・buildship-help
Using information derived from assistant in supabase row filter
Is there a repeatable pattern I can use for this?
When i use autofill with ai and try to explain what information and what column name to match on it's not working for me.
I'd like to be able to do something like this without using the AI autofill (because you only get so many of those and so far they aren't working for me anyways):
CustomerEmail=eq.{Customer Email address}
where the column to filter on is CustomerEmail and the information the assistant is aware of is the Customer email address.
I feel like in all your videos this is just skimmed over repeatedly, and in the supabase documentation it does not discuss this (with respect to assistants at all)
This is my biggest problem with BuildShip, sometimes there is way too much magic (without the ability to see what that magic actually produced, ie: ai autofill), and sometimes there is absolutely none. Like for example, Table Names and Column names should be autopopulated from the actual supabsae schema, and Javascript objects that are known within the workflow should be autocompleted so you don't have to guess so much.
3 replies
BBuildShip
•Created by Tim Stewart on 6/4/2024 in #❓・buildship-help
I got no response from system, so after about a minute I wrote "Hello?" got this error
It seems like there should be a queue system to avoid this error... and/or some kind of run abandonment after a certain length of time.
in the logs:
400 Can't add messages to thread_HGCofP5gEjBN3YPyQyunApPQ while a run run_mFsQgl4yVf95jQimV5UwQpYC is active.
in the chat:
{"error":{"status":400,"headers":{"alt-svc":"h3=":443"; ma=86400","cf-cache-status":"DYNAMIC","cf-ray":"88ea986a0a091404-ORD","connection":"keep-alive","content-length":"217","content-type":"application/json","date":"Tue, 04 Jun 2024 20:15:31 GMT","openai-organization":"user-cyne7vaxre65dwua7c51gyf9","openai-processing-ms":"27","openai-version":"2020-10-01","server":"cloudflare","set-cookie":"__cf_bm=KsbgFY.OWoqhokw229.xBI0t_aeJQLttD_3XXrkWsCc-1717532131-1.0.1.1-2AWlz1GqHuySLv6xsSCUzCipseLeBkG7_W4Be1jU8o_3a66npH9BhxE6qedpJ87a1vZHyrCz8.YelNfD33JScg; path=/; expires=Tue, 04-Jun-24 20:45:31 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=eLBN7kMjbi2VTjXiaD_AMQaNwW3TtRH_UUQaGInR6cg-1717532131008-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None","strict-transport-security":"max-age=15724800; includeSubDomains","x-request-id":"req_911d355db879da1bf60086f2951b01f2"},"request_id":"req_911d355db879da1bf60086f2951b01f2","error":{"message":"Can't add messages to thread_HGCofP5gEjBN3YPyQyunApPQ while a run run_mFsQgl4yVf95jQimV5UwQpYC is active.","type":"invalid_request_error","param":null,"code":null},"code":null,"param":null,"type":"invalid_request_error"},"label":"OpenAI Assistant (Stream Response)","message":"400 Can't add messages to thread_HGCofP5gEjBN3YPyQyunApPQ while a run run_mFsQgl4yVf95jQimV5UwQpYC is active."}
5 replies
BBuildShip
•Created by Tim Stewart on 6/3/2024 in #❓・buildship-help
Streaming assistant showing json in chat widget
I know I must be doing something wrong, however after it not working at all, then setting
window.buildShipChatWidget.config.responseIsAStream = true;
I can see a response, however it looks like this:
{"stream":{"_events":{},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null}},"threadId":"thread_115YhyKghSRjBtnbm5DlNzPn"}
Is there something obvious I'm doing wrong?
6 replies
BBuildShip
•Created by Tim Stewart on 5/21/2024 in #❓・buildship-help
Can an assistant gather info and create variables the tools can use? How?
For example, during the chat, I'd like to prompt the assistant to ask for the users email address; then use that address to read a row from a supabase table.
5 replies