Assistant API V2
# 🤝help
b
hello people!! Happy Monday. Last week openAi release V2 for assistants api. Has someone already integrate thsi new version with botpress??? Rn I have the V1 from @quick-musician-29561 tutorial. https://cdn.discordapp.com/attachments/1231984738328379442/1231984738911260703/Screenshot_2024-04-22_at_9.43.06_AM.png?ex=6638f232&is=66267d32&hm=7d327e93f153aa39d99ebc1feb0a181eb52294fe47345fda484d9638ce24a268&
q
@best-army-74344 I just replied to you in the old thread https://discord.com/channels/1108396290624213082/1180023587646746715/1231984843680907326 I'll move those here also.
I haven’t tried v2 yet; the last time I checked, Assistants API beta was still using v1. But now it seems that they have changed the API to use this new version. Changes that need to be made to the code: https://platform.openai.com/docs/assistants/migration What’s new: https://platform.openai.com/docs/assistants/whats-new
For those who don't use tools with the Assistants API, it's a quick fix: just replace 'v1' with 'v2' in the URL. Old
Copy code
curl
"https://api.openai.com/v1/assistants"
new
Copy code
curl
"https://api.openai.com/v2/assistants"
with tools: The retrieval tool has been renamed to the file_search tool
v1 will work until the end of the year. If there are many changes, we should build new Botpress templates using v2
b
yesss
@quick-musician-29561 I have a very cool usecase that we can use for testing
And the assistat api ready
q
Nooooo 😂 🤣 😭
b
wait jajaaja I did not change the "v1" in the second card
q
Not so long ago, I thought we had finally solved that issue for good.
b
Let me test 🤣
I'm getting constantly this error @quick-musician-29561
m
q
Great that you've started solving the issues already! 🫡 I'll follow your lead and also update it here when I have changed my projects to use v2.
b
Alright,
I try to send you in DM my template so you can see the errors. It's rare, somethings answers, sometimes gives straight error
q
DM: devmikDMs (devmik_direct_messages)
📬
b
rockstar account 🤣
a
@quick-musician-29561 , @best-army-74344 hey guys, just wonder if you resolved or found root cause for this issue? i'm having the same problem with v2... sometimes it works but sometimes fails...
q
Yes, for example here https://discord.com/channels/1108396290624213082/1180023587646746715/1244197194261594122 and here https://discord.com/channels/1108396290624213082/1121494527727902891/1232919125584642129 Let us know if you still have issues which those don't solve, we can fix them together! 🫡
b
Hey guys!!! Hope everyone is doing well. I have a good question!! So.... I have a client that is building a mobile app. Does anyone knows how can we Add a chatbot to the mobile app????
5 Views