Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naymmmm/openai.luau
🚀 An OpenAI API wrapper for Lune
https://github.com/naymmmm/openai.luau
ai api chatgpt gpt gpt-4 lua luau lune openai wrapper wrapper-api
Last synced: about 1 month ago
JSON representation
🚀 An OpenAI API wrapper for Lune
- Host: GitHub
- URL: https://github.com/naymmmm/openai.luau
- Owner: Naymmmm
- License: gpl-3.0
- Created: 2024-10-29T07:37:34.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-21T00:08:34.000Z (2 months ago)
- Last Synced: 2024-11-21T01:18:57.536Z (2 months ago)
- Topics: ai, api, chatgpt, gpt, gpt-4, lua, luau, lune, openai, wrapper, wrapper-api
- Language: Luau
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🤖 openai.luau
An OpenAI API wrapper for Lune.
## Acknowledgements
- OpenAI, for the API
- The Lune Team, for Lune
- Roblox, for Luau
- The Rojo Team, for Rokit## API Reference
#### Create a new context
```lua
self.New(api_key: string, model: string, systemprompt: string): Context
```| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `api_key` | `string` | The API key used to interface with the OpenAI API. |
| `model` | `string` | The model to be used with the prompts. |
| `systemprompt` | `string` | The system prompt to be sent to the completion. |#### Chat with the Context
```lua
Context:Complete(message: string): response: string, success: bool?
```| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| `message` | `string` | The message to be sent to the completion. |