I'm trying to use chatgpt to help me write a web app that would use the chatgpt api to generate cover letters. it has coded most of it in python but it cant seem to get the url right in the code to access the api. The url it wants to use is https://api.openai.com/v1/cover_letters/generate which is invalid. do you know what the right url would be?
#ChatGPT recommending invalid url
14 messages · Page 1 of 1 (latest)
You probably want to use the "completions" API
Ask ChatGPT, "How can I write an API query to access the completions API on OpenAI"
Thanks. So that did give me a better url to use that seems valid, but chatgpt says I won’t be able to use that to create a web app that takes a job description and resume from the user and generates a cover letter from them with the api. It says this:
You need to write the prompt still
Yea so the issue is it changed the code to this
When I asked it to make the cover letter it switched to this (old url):
Is that not the prompt?
I am new to ChatGPT api, sounds interesting. Would someone points me to the document? Where to start?
A reminder to not trust ChatGPT answers. I was baffled when I asked how to reuse embeddings in a second prompt. It gave me an in-depth explanation with Python code that looked extremely plausible.
In the end, the feature did not exist and ChatGPT made it all up.
This code is slightly wrong btw
Check the API documentation
Just saw this! Thank you!
Change your API key or delete this reply.
This can be used to access your chatgpt balance and account.