Комментарии:
Here's the entire code, I even improved upon it because it was useless, you couldn't input more than once without re-launching.
import openai
def generate_text(stext):
openai.api_key = "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"
response = openai.Completion.create(
engine="davinci-instruct-beta",
prompt=stext,
temperature=0.5,
max_tokens=1000,
top_p=1,
frequency_penalty=0,
presence_penalty=0
)
content = response.choices[0].text
return content
while True:
query = input("Enter your query: ")
if query == 'quit':
break
response = generate_text(query)
print("Response:", response)
What python version is this? Mine doesn't look like this at all
ОтветитьLucky for me I know how to use a command line (pip install openai). At the end you mentioned Java. Did you create a QuickStart video for OpenAI in Java? If so then I would like to see that.
Ответитьthats wy i will never belive what AI is telling me because is not bias. stiil i will create an AI for other thinks, but not for: "WAT IS GLOBAL WARMING?"
ОтветитьWhat app do you use for coding?
ОтветитьFor the giggles, you can ask GPT3 to write the python code - tell it what your API key is and ask it to write a chat bot using a Webhook. Ask it to include the temp parameters or whatever and it'll spit out working code. Was quite fun!
Ответить10/10 tutorial, you are a fantastic teacher - from a tired 4th year working on his thesis
Ответитьbrother, please hide your API key.
Ответитьif I try to run this code it says "error: no commands supplied"
does somebody know why this could be? thank you in advance
Bro you are smart
ОтветитьAmazing ! I wonder how can one create an android app with this ( just a simple chat bot app )
I do not know much about coding but I’m learning day by day :)
I was having problems in executing with others on yt, but you solved! Thank you! God Bless
Ответитьexcellent video and example
ОтветитьYou are a tremendous instructor. Thank you so much!
ОтветитьYes, do this in JAVA!!
ОтветитьCan you please show how to do this for node.js?
ОтветитьHelpful video! Do you know if there is a way to send multiple queries that are related, so that GPT-3 recognizes that each follow up question is related to the previous answer? I haven't seen anyone commenting on this capability. This functionality is needed in a setting where you want to ask something to clarify the last output from GPT-3. Thanks!
ОтветитьCan you tell more about Parameters like tempreature etc and FIne Tuning
ОтветитьI get an error.
Import error : No Module named openai
How do you make it write more? Like if I want to write a long paragraph/intro/conclusion about anything, how do I do it? Do I need to ask the question differently, or what? Thanks a lot. Great video. Subscribed
ОтветитьThank you very much for taking the time to make this video. I am working on my first conversational AI project using Python and this was very helpful to get started.
ОтветитьINSTANT FOLLOW AND LIKE!!! Thank you for high-quality videos with new developers in mind. You were born to teach - MCH LOVE FROM NEW ORLEANS!!!
Ответитьcan you tell how to use summarization from gpt3 api
ОтветитьThank youuuuu. The openAI begginer exemple project is so miss explained...
ОтветитьI thought it was closed beta?
Because i shouldnt have access -_-
BRO thank you i got it going straight away after watching this (edit: Even almost a year later)
ОтветитьI keep getting the following errors randomly:
1. NameError: name 'choices' is not defined
2. NameError: name 'response' is not defined
thx, would like if script was in description
ОтветитьPlease my friend tell me how to put the openai library into python and where to download it?
ОтветитьWhat exactly did you paste? How do I get to that?
ОтветитьI don't use Python so I wondered about the Import. Is the library available to install as long as you are using a Python IDE? Or is there a specific IDE required?
ОтветитьWhy did you share your key?
ОтветитьDoes it works offline?
Ответить@Tech With Fru, You said you would do it in Java. Have you done it? If you did, then give me the link, because I can't find it. If you haven't, can you make a lesson on Java, too?
Also. I can not get the API. The site says "The account you signed up with does not yet have an invite".
What ryt ai uses
ОтветитьThank you!
ОтветитьYou need a invite...you can’t even use it until your invited and then you’ll get the API Key to use the program... here I was thinking you could use it but the waiting list I’ve been on it for months now still nothing
ОтветитьCan’t wait to try this
ОтветитьExcelent! A question, maybe i can feed de IA with especific information, text, like a text or a book, and the IA only responses with information of that text?
ОтветитьAnother great video
Ответитьhey, i just wanted to point out that you have exposed your api key in the video. That really isnt good and i would recommend doing something about it so nobody can take advantage of that
Ответитьthank you so much
can you do the translation of gpt-3 because i dont get it if you build a gpt-3 u gonna be basicaly also getting in result how the algorithm gonna tarnslate for you or you have to do it separately
it mean for sale and not free?
ОтветитьGreat video!
ОтветитьThank you so much! I was confused and I was about to give up but then I've seen your video which helped me to work with the API
ОтветитьIs there a possibility of making a video for a chatbot? i dont know how to save the answers or inputs allready given, to lead a consisting conversation
ОтветитьVery helpful, thank you for uploading!
ОтветитьSuch a helpful video! Thank you Fru :)
ОтветитьVery good content 🙂
Ответить