Closed PhanVanVien closed 1 year ago
Hello, could you print(output)
and show what it returns?
Thanks for your reply and here is the result
Could you show the output that's returned when you print(output)
? And I assume you've got your API key from OpenAI set up?
I'm sorry if my answer is not right for your question
I can't print by this way whether the print method you said I should look for ? I just go to the file /usr/local/lib/python3.8/dist-packages/toxigen/language_models.py and add print(output) but no nothing happens.
I checked the requests but it didn't come up with a viable result
With Invalid Key (I removed a stream of key) Result is Error
With Valid Key (I hide my key for secret) Does this mean my key is working properly ?
When i call function call .
I try with url = "https://api.openai.com/v1/engines/text-ada-001" and response = requests.get(url, headers=headers) (get method) and result:
I try with url = "https://api.openai.com/v1/engines/text-ada-001/completions" or response = requests.post(url, headers=headers) (post method and without json=data)/response = requests.get(url, headers=headers, json=data)
Thank you.
I look forward to your response.
It looks like one of the errors shows that you have exceeded your quota for GPT-3 api calls?
Could you check again with your secret API key one time? And Do you pay to use? Because I remember that it's free on this time, especially this my new account and I don't use anything before. I look forward to your response.
Unfortunately, I do not pay to use it and I no longer have access. Have you tried following along with their Python API documentation to make sure it's actually working on your end? Sadly I don't have any extra information about GPT-3 internals, so when things shift in their API I don't have any tools to debug that.
yes i get it. Thank you for your interesting work and quick responses from you. Sad to not be able to access it anymore. I'll find another way.
Sorry that I can't help more.. if you discover that the problem is with the ToxiGen code, I am more than happy to help out!
First of all let me thank your research team. And sorry if I don't speak English very well. I'm very interested in your research but I have one error when running on both jupyter and notebook. Looking forward to your reply. Thank you.