@anjanesh
its the openai everyone is talking about...
Http::withToken(config('services.openai.api_key'))
->post('https://api.openai.com/v1/completions',[
'model' => 'text-davinci-003',
'prompt' => $forum_question,
'max_tokens' => 60,
])
->collect();
Check out https://platform.openai.com/examples
I'm not sure of the settings Jeffrey is using (or what he is adding to the prompt besides the message) but its super fast to learn and setup. I had the api working in about 3 minutes.
You could even ask the chat 'model' how to set it up. just ask a good question...
me: where can I find your api docs?
ChatAi: I'm sorry, but as an AI language model, I do not have a public API that you can access.
However, OpenAI offers several APIs for developers to access various machine learning models and tools. You can find the documentation for these APIs on the OpenAI website: https://beta.openai.com/docs/.
Additionally, many other companies and services offer APIs that you may be interested in. If you have a specific service or platform in mind, I suggest checking their documentation or developer resources to learn more about their API.