Skip to content

A RedM standalone Development API System utilizing a free use LLM called AI Horde, similar to a ChatGPT type system.

License

Notifications You must be signed in to change notification settings

BryceCanyonCounty/bcc-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BCC AI

A RedM standalone Development API System utilizing a free use LLM called AI Horde, similar to a ChatGPT type system.

This is an experimental project, use at your own discretion.

How to install

  • Download this repo
  • Copy and paste bcc-ai folder to resources/bcc-ai
  • Add ensure bcc-ai to your server.cfg file (ABOVE any scripts that use it)
  • Now you are ready to get coding!

API Docs

Generate text based on a prompt with Horde

local AI = exports['bcc-ai'].Initiate()
local test = AI.generateText('Hello what is your name?')
print(test[1].text)

-- Example response: Why so nervous? I'm not here to harm you." Another step closer. "My name is Sma, by the way. And you are?"

Generate text based on a prompt with ChatGPT

local AI = exports['bcc-ai'].Initiate('gpt')
local test = AI.generateText({
    prompt = "Hello what is your name?",
    model = "gpt-3.5-turbo",
    max_tokens = 40,
    temperature = 1
})

print(test[1].text)

Credits

The more you use this without contributing by joining the horde, the lower your request is in any priority processing queue. However, this helps it remain completely free. If you wish to help support this free to use system, join the horde and host an LLM. This will increase your queue status.

About

A RedM standalone Development API System utilizing a free use LLM called AI Horde, similar to a ChatGPT type system.

Topics

Resources

License

Stars

Watchers

Forks