🤯 OpenAI Assistants API Python (Full Tutorial)

Sdílet
Vložit
  • čas přidán 28. 08. 2024

Komentáře • 147

  • @luissantiagolopez3863
    @luissantiagolopez3863 Před 9 měsíci +9

    I really liked your video, clear and concise. Most senior programmers can't even explain the simple steps properly. Thanks!

  • @creatorsmafia
    @creatorsmafia Před 9 měsíci +5

    I appreciate how clear and concise your explanations were throughout the process.

  • @adamsardo
    @adamsardo Před 9 měsíci +8

    Would love to see a tutorial now on using the assistant in a chat ui. Would be cool to see how to approach that :)

  • @dereksparks3764
    @dereksparks3764 Před 8 měsíci +2

    You are fantastic! this is EXACTLY what I was looking for. Thank you. Very clear, specific, and to the point. I watched a different creator's video that was over an hour and was completely lost. Yours was SO good.

  • @toapyandfriends
    @toapyandfriends Před 7 měsíci +1

    Yes thank you so much I took your old tutorials I think we're using torch and it's so awesome that we're in this new age and I could count on an awesome woman to teach me!

  • @user-qs8zf5fd9r
    @user-qs8zf5fd9r Před 7 měsíci +2

    This video introduces in detail how to create an API call file in a local program. Based on this architecture and the API Reference provided by OpenAI, you can implement an Assistants API call file that is unique to your project. This is definitely a precious resource for those who are ready to start development. At present, most CZcamsrs have not explained it in such detail.😁

  • @MindfulStream-dj7io
    @MindfulStream-dj7io Před 8 měsíci

    This is the most clear explanation I've seen so far on the topic. The only inconsistency is redefining a 'run' variable on 7:50

  • @bas_abhi
    @bas_abhi Před 9 měsíci +6

    Anyone struggling to get a response, you might be trying to the retrieve it before it is finished. So wait until you get the run.status as completed after retrieval. Should be able to view the response after that.

    • @HuimanHou
      @HuimanHou Před 9 měsíci +4

      exactlly! The purpose of step5 (runs.retrieve) is not to get the messages result, but to check the run.status. If the status is not completed, we can add a loop with sleep(1 or 2 seconds) and retrieve the status again, until we reach the completed status. Then go to the next step to print the messages. Thanks and appreciate for the video and comments.

  • @KumR
    @KumR Před 2 měsíci

    Thanks a lot Smita . I got a couple of questions about the second example
    1) Can we upload multiple files?
    2) Can we upload multiple formats like PDF , CSV , DOC etc?
    3) Can we create a Streamlit UI to access the assistant ?
    4) Is this a type of RAG ?

  • @faizansultan5304
    @faizansultan5304 Před 9 měsíci +1

    Thanks @Smitha for explaining about Openai assistant I created multi AI agents with help of your videos

  • @user-sc1ur2tu3o
    @user-sc1ur2tu3o Před 5 měsíci

    Definitely not for beginners but presentation at this level is very decent along with voice control that has clarity.

  • @Arrowtake
    @Arrowtake Před 9 měsíci

    Thanks, this helped me to get this working. Many other sources try to fit their explanations to so broad audience that the essense "how to do this" is lost in the mess starting what is python type fo quesitons. This was good and lacked all that noise!

  • @faizanabbasi3627
    @faizanabbasi3627 Před 7 měsíci

    Extremely clear explanation, you are an awesome teacher

  • @Stewz66
    @Stewz66 Před 9 měsíci

    I found this extremely helpful. I've been using Assistants in playground on the dev site. Im using it for coding. I'm trying to imagine how i will use this in this context, but the step by step here was super helpful.

  • @TimeSpace-Talks
    @TimeSpace-Talks Před 7 měsíci

    THX,It's still a bit difficult for someone from another industry.

  • @ArabicScriptElegance
    @ArabicScriptElegance Před 7 měsíci

    Bravo for your tutorial. 👍👍 This is really well explained!! I think this is the basic foundation for becoming a developer😇🤔

  • @Gardetsky
    @Gardetsky Před 7 měsíci +1

    thank you for this clear video! Can you make another one with instructions of how to make same mechanic but user is asking questions and get answers from Assistant via simple web interface?

    • @kamalam1085
      @kamalam1085 Před 4 měsíci

      you have to pay to make it work?

    • @Gardetsky
      @Gardetsky Před 4 měsíci

      @@kamalam1085 just some 0.01 cents for open ai API

  • @wasabi6521
    @wasabi6521 Před 9 měsíci

    thank you so much for this walkthrough. I spent two days working on the Quick start but I couldn't get the function to import the secret key, I didn't realize I could just insert it right into the function (I know it's not recommended for serious projects but I just wanted my request to work, as this is my first time working with the API)

  • @paineldeprecosdaconstrucao3895

    Thank you! It helped a lot to understand how assistants work.

  • @arvinth_c
    @arvinth_c Před 6 měsíci

    Informative. At the same time the description there is a mentioning of "Function calling". But that as a concept is not explained in the video. Can you modify the description so it won't be misleading? Thanks

  • @PhilipZeplinDK
    @PhilipZeplinDK Před 6 měsíci +1

    I'm trying to follow this just in a python script, but I keep getting the error "ImportError: cannot import name 'OpenAI' from 'openai'". What am I doing wrong?

  • @rachpalsingh3498
    @rachpalsingh3498 Před 7 měsíci

    Superb insights. Thanks for your efforts. Success !

  • @andresmoks7272
    @andresmoks7272 Před 9 měsíci +3

    If not getting response, before retrieve add:
    import time
    time.sleep(20)

    • @GregorSchafrothAI
      @GregorSchafrothAI Před 9 měsíci

      nice try, didn't fix it for me tho

    • @paulobitfranca
      @paulobitfranca Před 9 měsíci

      @@GregorSchafrothAI it's not necessary to use the "sleep".
      Just run the "retrieve" until the run status is "completed".
      Change the step 5 from the video to:
      while run.status != "completed":
      run = openai.beta.threads.runs.retrieve(
      thread_id=thread.id,
      run_id=run.id
      )
      print(run.status)
      time.sleep(2)

    • @brendancoram7584
      @brendancoram7584 Před 7 měsíci

      Or just split the code out into separate sections ... the time taken to click on run for each section introduces sufficient time gap for it to get a response

    • @Halexx
      @Halexx Před 2 měsíci

      Thanks, did the trick for me!

  • @mpazaryna
    @mpazaryna Před 9 měsíci +1

    This is very well done, thank you very much.

  • @yerneroneroipas8668
    @yerneroneroipas8668 Před 9 měsíci +1

    Great video, simple and to the point

  • @fabriziogaucci
    @fabriziogaucci Před 8 měsíci +3

    Hi there, I'm trying to replicate this code, I got credit for the API environment but I just can't get the Assistant's reply. Any suggestion? I can see the assistant_id, the thread_id but there's no way to get the answer (I tried changing the model too). Thanks for the help

    • @kiranrokkam5459
      @kiranrokkam5459 Před 7 měsíci

      bro did you find out the answer I am stuck in the same issue

    • @brendancoram7584
      @brendancoram7584 Před 7 měsíci

      You need a time delay between creating the thread run and retrieving the answers/messages. Smitha has every element in a new code block, further down someone suggested a forced time delay. Either way works

  • @generalx8910
    @generalx8910 Před 12 hodinami

    Where did u get your file from, the memgpt-paper.pdf????

  • @paulobitfranca
    @paulobitfranca Před 9 měsíci

    You explain very well! Thanks for the video!

  • @toapyandfriends
    @toapyandfriends Před 7 měsíci +1

    Can you get really into detail ... In your next tutorial...........I create a blender python add on it's like the biggest in the world code wise ....FAST Animation Studio Toolz....and I'm gonna be packing artificial intelligence features in to this and I'd like if there was some information I could use to Know how I could manipulate blender operators with open AI easy..

  • @user-du6gg4ij5l
    @user-du6gg4ij5l Před 9 měsíci +3

    when i am putting all the code inside a single shell , it's only printing user's message , it's not printing assistant's response .why such?

    • @vamsinadh100
      @vamsinadh100 Před 9 měsíci +2

      same here did you find any fix?

    • @paulobitfranca
      @paulobitfranca Před 9 měsíci +3

      Run the "retrieve" until the run status is "completed".
      Change the step 5 from the video to:
      while run.status != "completed":
      run = openai.beta.threads.runs.retrieve(
      thread_id=thread.id,
      run_id=run.id
      )
      print(run.status)
      time.sleep(2)

    • @GEScott71
      @GEScott71 Před 7 měsíci

      Thank you@@paulobitfranca , exactly what I was looking for! Also I had to add import time

    • @himanshupatidar8040
      @himanshupatidar8040 Před 6 měsíci

      @@paulobitfranca thanks man

  • @santiagomunoz6071
    @santiagomunoz6071 Před 9 měsíci +2

    Hi, thanks for this great explanation! How can I attach multiple files to the same assistant so it uses them simultaneously instead of just one?

    • @mushifalinawaz
      @mushifalinawaz Před 9 měsíci +2

      You can upload multiple files and pass a list in the `file_ids` parameter when creating an assistant.

  • @pw4645
    @pw4645 Před 7 měsíci +1

    Error:
    for message in reversed(messages):
    TypeError: 'SyncCursorPage[ThreadMessage]' object is not reversible

    • @randallreed9279
      @randallreed9279 Před 7 měsíci

      They may have changed the object since this video was made. Correct code should be: for message in reversed(list(messages)):

  • @shailavijay1
    @shailavijay1 Před 9 měsíci +4

    Thanks for sharing this video. I have tried same code in colab using model="gpt-3.5-turbo", I didn't get assistant response in step 4. When I checked run.status value it is returned as failed. Can anyone advice me how to solve this issue?

    • @GregorSchafrothAI
      @GregorSchafrothAI Před 9 měsíci

      Same issue

    • @ChanoGodoi
      @ChanoGodoi Před 8 měsíci +1

      @@GregorSchafrothAI same problem, but i charge it 5 dolars and it work. i dont know why.

    • @DanielTorres-cn8kh
      @DanielTorres-cn8kh Před 7 měsíci +1

      I have the same issue

    • @GregorSchafrothAI
      @GregorSchafrothAI Před 7 měsíci

      @@DanielTorres-cn8kh you need to top up some some money to OpenAI then it will work. Or at least that's what solved it for me

  • @connorodea9499
    @connorodea9499 Před 7 měsíci

    Great tutorial. just a heads up you spelled assistant wrong in the file name. Not a big deal at all but I noticed it and thought I would point it out considering the rest of your tutorial was spot on. Not trying to be a smart a** thanks again for the great information :)

  • @diviyanshmodi
    @diviyanshmodi Před 7 měsíci

    Thanks & Appreciate for making this video so easy to implement.

  • @Hamzo93
    @Hamzo93 Před 9 měsíci

    Great, finally something clear !
    @AssemblyAI How can we have this view with PHPStorm ?

  • @lorainesouza2014
    @lorainesouza2014 Před 8 měsíci +1

    Can you give us the link to Git or the code for this?

  • @felixseitz3411
    @felixseitz3411 Před 9 měsíci +1

    I want to build something with the Assistants API for my website. Is there also a word limitation for it like in GPT-4? When Im using GPT-4 in the chatbot, i need to write „continue“ after roughly 1200 words. What I need for my website is, that it generates 3000 words in one response (needs to be an analysis of something). Is this possible with the assistants api? If the answer is no, is there any workarounds?

  • @satyabharadwaj7779
    @satyabharadwaj7779 Před 7 měsíci

    Very informative. However, I have a question: is it possible to retrieve the assistant's response as soon as a query is given by the user? To develop interactive chatbots and build context, the user has to know the model's response for their query, isn't it?

  • @MichaelTwining
    @MichaelTwining Před 7 měsíci

    Can you place a file path and do a loop for all files in a directory/folder? What would that look like?

  • @SJT-jb9gz
    @SJT-jb9gz Před 7 měsíci

    Great video. I have a question: if I use codes shown in video as server-side backend, and use XMLHttpRequest to send requests (e.g. user entered questions) and receive/display AI's responses, how do we let openai know that chat chain belongs to one thread id? In another word, if user keep asking questions, how do we make multi Runs within one thread?

  • @manojlk
    @manojlk Před 9 měsíci

    Please make a video on OpenAI assistant to make a API call to third-party using functions

  • @ramp2011
    @ramp2011 Před 7 měsíci

    Great video. Could you please share the notebook? Thank you

  • @MDEdwardsCreative
    @MDEdwardsCreative Před 3 měsíci +2

    Some of us noobs have no idea what program that is your are working in from the get go....

  • @user-mv9ul9tz1c
    @user-mv9ul9tz1c Před 4 měsíci

    Hello, I have a long text that I would like to split into 10 segments. I plan to summarize each segment using an API or assistant and then integrate these summaries.
    How can I ensure that all these interactions occur within the same conversation thread like in ChatGPT interface, allowing the API to remember the context?
    Thank you.

  • @randomancy
    @randomancy Před 6 měsíci

    Is there a link to the GitHub for the python code, or to the Jupyter notebook?

  • @user-mg2qk2cl3f
    @user-mg2qk2cl3f Před 5 měsíci

    can I also integrate the assistant api via JS on my website?

  • @drewclifton610
    @drewclifton610 Před 6 měsíci

    Thanks for this! Do you provide the code for this tutorial anywhere?

  • @DANNYEL20122
    @DANNYEL20122 Před 9 měsíci

    Thanks for the tutorial . A quick question: How do one deploy this to a business or a company

    • @kamalam1085
      @kamalam1085 Před 4 měsíci

      you have to pay to make it work?

  • @fintech1378
    @fintech1378 Před 5 měsíci

    i have already had credentials from my custom GPT in GPT store. how can i connect it to my separate app with assistant API

  • @triples363
    @triples363 Před 5 měsíci

    What system are you using to create this I tried to email Assembly AI from your website, but it would not let me.

  • @Noob_mukesh
    @Noob_mukesh Před měsícem

    maa'm it is giviing
    error when i passing files_id pararm in assistant if could help out please reply soon

  • @soumyaranjanharichandan7840
    @soumyaranjanharichandan7840 Před 9 měsíci +2

    hey thanks for the VIdeo it is very helpful. I have tried the code but facing some issue with my Assitant . It is only printing user response not the Assitant response can you help me with that. whaat might be a reson for that ?

    • @neerajmahapatra5239
      @neerajmahapatra5239 Před 9 měsíci

      Are you trying on VS code or Collab. Try on vs code

    • @estebanseguel7004
      @estebanseguel7004 Před 9 měsíci +2

      same thing here mate... Im not sure why

    • @adelekefikayomi8351
      @adelekefikayomi8351 Před 9 měsíci

      same here !@@estebanseguel7004

    • @JPTebbe
      @JPTebbe Před 9 měsíci

      I ran in the same problem with the file upload. There I can't even check on the status. If there is a better way to handle this than time.sleep(), let me know.

    • @Creepa45
      @Creepa45 Před 9 měsíci

      @@estebanseguel7004 same have u found out why?

  • @apester2
    @apester2 Před 9 měsíci

    Very very good!

  • @husnainabbasi3974
    @husnainabbasi3974 Před 8 měsíci

    i have custom GPT Model and created its assistant over there as well. Now how to use the API of assistant to integrate the custom GPT in my web app. Plz answer

  • @madshader
    @madshader Před 7 měsíci +1

    Hmm for some reason the "Assistant: The solution..." didn't return even though I did exactly as you did?

  • @user-in8cj9qm2q
    @user-in8cj9qm2q Před 7 měsíci

    How do you know if the assistant is using the research paper rather than just making things up on its own knowledge?

  • @Introdigitalarts
    @Introdigitalarts Před 3 měsíci

    does anyone have a clue how to fix this error : cannot import name ‘OpenAI’ from ‘openai’

  • @dimersonnunez6268
    @dimersonnunez6268 Před 8 měsíci +1

    Where's the source code?

  • @andresodochian8111
    @andresodochian8111 Před 9 měsíci

    very helpfull

  • @asiddiqi123
    @asiddiqi123 Před 7 měsíci

    How to send to and fro messages?

  • @Johnathonaaron
    @Johnathonaaron Před 5 měsíci

    🎯 Key Takeaways for quick navigation:
    00:00 *🌐 Introduction to the OpenAI Assistants API, still in beta, for building AI assistants in Python.*
    00:26 *💻 Instruction on installing the OpenAI library and obtaining an OpenAI API key.*
    01:04 *🔑 Steps to authenticate by creating and using a client object with the OpenAI API key.*
    01:17 *🤖 Overview of OpenAI Assistants: Customize personalities, capabilities, and integrate multiple tools.*
    02:12 *🚀 Creating an assistant with a specific role (e.g., math tutor) and defining its capabilities.*
    03:14 *🧠 Selection of the GPT-4 model for the assistant's underlying technology.*
    03:45 *🧵 Concept of threads in assistant interactions for organizing messages.*
    05:13 *✉️ Creating and linking messages to threads to simulate conversation flow.*
    06:32 *▶️ Initiating the assistant to process and respond to queries.*
    07:14 *📬 Retrieving and displaying the assistant's responses to ensure the communication loop.*
    09:50 *📁 Advanced example of creating an AI assistant that processes and responds to content from uploaded files.*
    10:19 *🗃️ Uploading and specifying files for the assistant to use for knowledge retrieval.*
    11:43 *🤖📚 Adjusting the assistant's purpose for specialized tasks, like analyzing a research paper.*
    13:07 *🧪 Demonstrating the assistant's ability to handle complex inquiries based on specific document content.*
    14:33 *🔄 Highlighting the iterative process of refining questions and receiving responses to build a dynamic interaction.*
    15:01 *🛠️ Mention of the beta status of the API, indicating ongoing development and future improvements.*
    Made with HARPA AI

  • @sealandland3959
    @sealandland3959 Před 8 měsíci

    Do you hapen to have the whole code? I would happily buy it

  • @NeoAAnderson
    @NeoAAnderson Před 9 měsíci

    what to do with a frontend in a web application?

  • @Player-oz2nk
    @Player-oz2nk Před 7 měsíci

    🎯 Key Takeaways for quick navigation:
    00:00 🎓 *Introduction to OpenAI's new Assistants API*
    - Introduction to OpenAI Assistants API and initial setup requirements,
    - Installation of the OpenAI Python library,
    - Obtaining an OpenAI API key.
    01:04 🛠️ *Setting up the OpenAI client and creating an assistant*
    - Importing the OpenAI library and creating a client object with the API key,
    - Explanation of the OpenAI assistant's capabilities and tools,
    - Creating an assistant object with a specific name and instructions.
    02:40 🧮 *Creating a Math Tutor Assistant*
    - Setting up an assistant to function as a math tutor,
    - Specifying tools and the model for the assistant,
    - Initiating the first thread and message within the assistant.
    05:13 ✉️ *Sending and Running Messages in the Thread*
    - Creating and sending a message to the thread with a math problem,
    - Running the assistant to process the message,
    - Retrieving and printing the assistant's response.
    07:00 📄 *Integrating File Retrieval with AI Assistant*
    - Uploading a file to OpenAI for the assistant to use,
    - Creating a new assistant with file retrieval capabilities,
    - Sending a content-specific question to the new assistant.
    10:19 🤖 *Creating an Assistant for Research Papers*
    - Uploading a research paper for the assistant to reference,
    - Modifying the assistant creation code for a machine learning researcher persona,
    - Running the assistant and displaying its response to a research-related question.
    13:37 🔄 *Continuing the Conversation with the Assistant*
    - Continuing the conversation by asking additional questions,
    - How to change the query and retrieve new responses,
    - Mention of the beta status and the need for improved documentation and resources.
    Made with HARPA AI

  • @aeharrison1able
    @aeharrison1able Před 4 měsíci

    is that code available?

  • @hassanahmad1483
    @hassanahmad1483 Před 7 měsíci

    What is actually use of this assistant....?if you can't implement these

  • @northdecatur
    @northdecatur Před 8 měsíci

    It does not work using the gpt-3.5-turbo-1106 model. There is no output of assistant. Did someone run into the same problem?

  • @arianpc6939
    @arianpc6939 Před 8 měsíci

    🎯 Key Takeaways for quick navigation:
    00:00 🤖 *En este video, Smitha de Assembly AI muestra cómo usar la nueva API de OpenAI llamada Assistance API para construir tu propio asistente de inteligencia artificial en Python.*
    02:12 🧠 *Al crear un asistente, puedes acceder a los modelos de OpenAI, darle instrucciones específicas sobre su personalidad y capacidades, y también acceder a herramientas como el intérprete de código.*
    04:11 🧵 *Para crear un asistente, se inicia creando un objeto de asistente con un nombre, instrucciones, herramientas (como el intérprete de código) y el tipo de modelo (por ejemplo, GPT-4).*
    06:16 🗣️ *Se crea un hilo y se añade un mensaje al hilo para interactuar con el asistente. En este caso, se le pide al asistente resolver una ecuación matemática.*
    09:35 📝 *Se muestra un ejemplo práctico donde el asistente responde a una pregunta matemática, demostrando cómo puedes crear tu propio asistente personalizado.*
    11:30 📚 *Smitha luego presenta cómo crear un asistente vinculado a archivos usando la recuperación de conocimiento, subiendo un archivo y creando un asistente que responde preguntas basadas en ese archivo.*
    14:47 🚀 *Se destaca que puedes ampliar la conversación, hacer más preguntas y vincular otras herramientas a tu asistente a medida que desarrollas aplicaciones prácticas con esta API.*
    Made with HARPA AI

  • @user-vi5tp4xd8i
    @user-vi5tp4xd8i Před 8 měsíci

    I don't know what was more interesting to look at, the OAI Assistants code or the beautiful host teaching it to everyone.

  • @user-bl8hi7je1z
    @user-bl8hi7je1z Před 8 měsíci

    Thanks for your sharing but why kepe this error appear 'Beta' object has no attribute 'assistant' in assistant = client.beta.assistant.create(
    name='Math tutor',
    instructions="You are a personal math tutor. Write and answer the code.",
    tools=[{"type": "code_interpreter"}],
    model="gpt-4.0-turbo"
    )

    • @mal5068
      @mal5068 Před 6 měsíci

      it should be assistants with an S i think

  • @n4rzul
    @n4rzul Před 9 měsíci

    I followed along with Co Pilot. I typed the first couple of letters and it fills in what is on the CZcams vid... Madness.

  • @shuncho7844
    @shuncho7844 Před 7 měsíci

    when i run the code it gives me the error:
    openai.BadRequestError:Error code: 400 - {'error': {'message': "The requested model 'gpt-4-1106-preview' does not exist.", 'type': 'invalid_request_error', 'param': 'model', 'code': 'model_not_found'}}

    • @student7818
      @student7818 Před 7 měsíci +1

      me also get the same error message. later I change it to gpt-3.5 model. But I could not get the message of the assistant like she got in this video. Does any one know the reason

    • @patty109109
      @patty109109 Před 5 měsíci

      @@student7818 Had the same. I went to open AI api keys and under Settings > Billing saw that I had no credit. There is/was a free credit of $5 given to people, which expires 3 months after creating account. You can add as little as $5 to your account. Do so, to get an API credit, and try again. This fixed the error for me, and I can see my API calls under "Usage" on the web portal for the keys. However, I still am not yet getting an actual response back from the assistant.

  • @MrPeguerox
    @MrPeguerox Před 8 měsíci

    great explanation, Likely this is not going to fly. Too complicated, the majority of the people dont use threads. They have to remove all that, and just put the normal chat completion with 2 more variables assistant and file id...

  • @SergioSanchez-og3rt
    @SergioSanchez-og3rt Před 6 měsíci

    No response solution:
    while run.status != "completed":
    run.status = client.beta.threads.runs.retrieve(thread_id = thread.id, run_id = run.id)
    sleep(1)

  • @Doggy_Styles_Coding
    @Doggy_Styles_Coding Před 9 měsíci +1

    If an AI make music, does it use algorythm ?

  • @pseudonymous8702
    @pseudonymous8702 Před 3 měsíci

    doesn't work. it doesn't include a reply from the assistant

    • @PrinceEliB
      @PrinceEliB Před 3 měsíci

      Have you found a way to get the reply?

    • @PrinceEliB
      @PrinceEliB Před 3 měsíci

      Hey. Just wanted to say. For me, i went in the playground and the assistant was created.
      Went in the playground to test if i would received an answer, and the answers failed too.
      The problem was i did not have any credits, using the api key from another account.
      The code works, but if you dont get the reply i suggest you look in playground if you do, there, it will tell you why it wont.

  • @KrAsHeDD
    @KrAsHeDD Před 9 měsíci

    I'm getting BadRequestError 400. Is it because it paid?

    • @northdecatur
      @northdecatur Před 8 měsíci

      Your API key is not allowed to use gpt-4-1106-preview

    • @KrAsHeDD
      @KrAsHeDD Před 8 měsíci

      @@northdecatur thank you

  • @xfmaydogan
    @xfmaydogan Před 9 měsíci

    Cool""😁""🐤i know, i'm..

  • @diego-castro
    @diego-castro Před 7 měsíci

    Could share you collab?

  • @Best_Real_Experience
    @Best_Real_Experience Před 9 měsíci +14

    the api key is paid ..... you should tell that before completing

  • @spektree8448
    @spektree8448 Před 24 dny

    shes so pretty

  • @maycolsj
    @maycolsj Před 8 měsíci

    It's valid to clarify that before using the api_key to build you app you should pay for it. Just saying...

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Před 9 měsíci

    thanks for great content, but one suggestion, I prefer where you don't have to type the code on the screen. just eats up unnecessary time and this is video after all.

  • @igromanyayt4323
    @igromanyayt4323 Před 7 měsíci

    не понимаю, зачем снимать видео и переписывать его с официальной документации, если я тоже могу переписать все с официальной документации и записать видео на 15 минут, которое ничем и не помогло, мдам

  • @erikpeterson4873
    @erikpeterson4873 Před 9 měsíci

    How come your code box says Python, can you make a dumb version for non-developers?

  • @kaniki_the_problem
    @kaniki_the_problem Před 6 měsíci

    The most helpful api tutorial yet ! I was getting so fed up with lack of progress. Thank you a millie. Maquina.KANIKI

  • @suuuur-xh2mr
    @suuuur-xh2mr Před 7 měsíci

    scripte ples

  • @user-cq1wc5tz7c
    @user-cq1wc5tz7c Před 9 měsíci

    °\\• I believe we are meant to be like Jesus in our hearts and not in our flesh. But be careful of AI, for it is just our flesh and that is it. It knows only things of the flesh (our fleshly desires) and cannot comprehend things of the spirit such as peace of heart (which comes from obeying God's Word). Whereas we are a spirit and we have a soul but live in the body (in the flesh). When you go to bed it is your flesh that sleeps but your spirit never sleeps (otherwise you have died physically) that is why you have dreams. More so, true love that endures and last is a thing of the heart (when I say 'heart', I mean 'spirit'). But fake love, pretentious love, love with expectations, love for classic reasons, love for material reasons and love for selfish reasons that is a thing of our flesh. In the beginning God said let us make man in our own image, according to our likeness. Take note, God is Spirit and God is Love. As Love He is the source of it. We also know that God is Omnipotent, for He creates out of nothing and He has no beginning and has no end. That means, our love is but a shadow of God's Love. True love looks around to see who is in need of your help, your smile, your possessions, your money, your strength, your quality time. Love forgives and forgets. Love wants for others what it wants for itself. Take note, true love works in conjunction with other spiritual forces such as patience and faith (in the finished work of our Lord and Savior, Jesus Christ, rather than in what man has done such as science, technology and organizations which won't last forever). To avoid sin and error which leads to the death of our body and also our spirit in hell fire, we should let the Word of God be the standard of our lives not AI. If not, God will let us face AI on our own and it will cast the truth down to the ground, it will be the cause of so much destruction like never seen before, it will deceive many and take many captive in order to enslave them into worshipping it and abiding in lawlessness. We can only destroy ourselves but with God all things are possible. God knows us better because He is our Creater and He knows our beginning and our end. Our prove text is taken from the book of John 5:31-44, 2 Thessalonians 2:1-12, Daniel 7-9, Revelation 13-15, Matthew 24-25 and Luke 21. Let us watch and pray... God bless you as you share this message to others.

  • @vijaybudhewar7014
    @vijaybudhewar7014 Před 9 měsíci +1

    The API documentation from openAI looks more clear than this video...try to add value in the video , dont hust read the api doc and explain it here , we can do that too in less time ofcourse

  • @drewclifton610
    @drewclifton610 Před 6 měsíci

    Hi I just ran this script (below) but I only got my own message/prompt output to the terminal, not the response! 😄
    from openai import OpenAI
    # Create client objet and set OpenAI API key
    client = OpenAI(api_key="my_key")
    # Upload a file with an "assistants" purpose
    file = client.files.create(
    file=open("ss_output.txt", "rb"),
    purpose='assistants'
    )
    print(file)
    assistant = client.beta.assistants.create(
    name = "Data Guru",
    instructions="You are great at data processing-particularly text files and CSVs!",
    model="gpt-4-turbo-preview",
    tools=[{"type": "retrieval"}],
    file_ids = ["file-kHE4llGj5A8b24ot2A6WqAvc"]
    )
    thread = client.beta.threads.create()
    print(thread)
    message = client.beta.threads.messages.create(
    thread_id = thread.id,
    role = "user",
    content = "Fix/clean the data in this CSV file (attached) so it is properly formatted and output the cleaned version. In particular:
    - Remove any odd characters, e.g, \"`\"
    - Remove any sentences and only leave the correct data in each column
    - Convert any Names or Titles to title case
    - Remove duplicate header rows.")
    run = client.beta.threads.runs.create(
    thread_id = thread.id,
    assistant_id = assistant.id
    )
    run = client.beta.threads.runs.retrieve(
    thread_id = thread.id,
    run_id = run.id
    )
    messages = client.beta.threads.messages.list(
    thread_id = thread.id
    )
    for message in reversed(messages.data):
    print(message.role + ": " + message.content[0].text.value)
    Any idea where I went wrong? I was just trying to type along... No errors just no response.