Toptube Video Search Engine



Title:How to use Assistants API and the best way to do it
Duration:24:37
Viewed:2,069
Published:18-04-2024
Source:Youtube

In this video we will explore on how we can use the Assistants web Ui to create out assistants and configure it then use it from our python script. Code files for this project at Patreon: https://www.patreon.com/posts/explaining-how-102574497 UPDATE: When we set truncation strategy of type "last messages" then we must also pass "last messages key with the object as: max_prompt_tokens=20000, # if you will use file search set this to 20k or more truncation_strategy={"type": "last_messages", "last_messages": 5}, # also can be "auto" otherwise like this: max_prompt_tokens=20000, # if you will use file search set this to 20k or more truncation_strategy={"type": "auto"}, # also can be "auto" if you dont give the "last messages" param when using "last messages" strategy then in the future you may see 400 error being returned Auto Streamer: https://www.autostreamer.live/ Search 200+ echohive videos and code download links:https://www.echohive.live/ CodeHive 900+ GPT python chat apps: https://www.codehive.app/ Chat with us on Discord: https://discord.gg/PPxTP3Cs3G Follow on twitter(X) : https://twitter.com/hive_echo CHAPTERS; 00:00 Intro 01:25 Creating an assistant for chat only 04:15 Vectorstore setup 06:38 Testing tool use 08:04 Possible max prompt tokens bug 11:09 general review 15:02 Code review 21:11 Auto Streamer #aiassistance #aiassistant #aiagents #openai #openaiapi #gpt4 #gpt4turbo #artificialintelligence #largelanguagemodels #pythonprojects #pythonai #pythonprogramming



SHARE TO YOUR FRIENDS


Download Server 1


DOWNLOAD MP4

Download Server 2


DOWNLOAD MP4

Alternative Download :