Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Latest commit

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

LuaOpenAI

broken after critical api change

localOpenAI=loadstring(game:HttpGet('https://raw.githubusercontent.com/Perthys/LuaOpenAI/main/main.lua'))()
localDump=loadstring(game:HttpGet('https://raw.githubusercontent.com/Perthys/table/main/main.lua'))().DumplocalConfiguration, API=OpenAI.Configuration, OpenAI.OpenAIAPIlocalConfig=Configuration.new({
APIKey="sk-__________________________________________";
})
localOpenAIInstance=API.new(Config);
localResponse=OpenAIInstance:CreateCompletion({
["model"] ="text-davinci-003",
["prompt"] ="hello",
["temperature"] =0.8,
["max_tokens"] =40,
["top_p"] =1,
["frequency_penalty"] =0,
["presence_penalty"] =0
});
print(Dump(Response))

Most if not all endpoints are inside of the api

About

Lua OpenAI

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages