I thought what is the simplest implementation of openAi I could put into fiveM and made this resource,
To use this resource, follow these steps:
In-game, type /ai
followed by your question or prompt.
The script will send your query to the OpenAI API and output the response back
Prompt/AI personality can be customised to allow for more customised responses,
This script is in early development and subject to change feel free to fork and make PR’s
Download:
6 Likes
[script:openaifivemchat] Error: 429 - it gives this error and the script is not working
1 Like
Have you added a openAi api key?
Ok, now lets make a tablet or… wait lets make the peds use Open AI or… wait bro we could do so much with this
1 Like
The there is paid OpenAi npc scripts available just released this as a proof of concept and to show the simplicity of the code, it would be very easy to add npc interactions to it
I assure you The script is working error code 429 means you’ve hit a rate limit as far as I am aware there is no longer free access to openai’s api and you will have to add a payment method
just updated to allow for gpt 3.5
[ script:openai-fivem] AI Command Registered
[ script:openai-fivem] Prompt: what stand for fivem?
[ script:openai-fivem] Error: 429
RowDog
June 6, 2023, 9:06am
10
I direct you to my previous message about status code 429 but long story short it’s you not the script
RowDog
June 6, 2023, 10:19am
11
just added extra error handling to avoid confusion for anyone who doesn’t know how the api works giving more insight into any potential issues
can this work with okokchat?
My mans out here posting some cool work i see! keep it up dont be a stranger.
1 Like