openai-nim
OpenAI API for Nim
Summary
| Latest Version | Unknown |
|---|---|
| License | GPL-3.0 |
| CI Status | Failing |
| Stars | 6 |
| Forks | 0 |
| Open Issues | 0 |
| Last Commit | 2023-10-25 |
| Downloads | 0 |
| Last Indexed | 2026-09-06 06:05 |
Tags
Installation
nimble install openai-nim
choosenim install openai-nim
git clone https://github.com/wick3dr0se/openai-nim
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| openai-nim | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/wick3dr0se/openai-nim |
|---|---|
| Homepage | https://github.com/wick3dr0se/openai-nim |
| Registry Source | github |
README
OpenAI-Nim
OpenAI API for Nim
Acquisition
Install with Nimble
nimble install https://github.com/wick3dr0se/openai-nim@#head
Install from source
git clone https://github.com/wick3dr0se/openai-nim; cd openai-nim
Getting Started
Import openai module
# from nimble
import openai
# or from source
import ./openai
Start an asynchronous OpenAI client
var ai = newAIClient(getEnv("AI_KEY")
Text chat with OpenAI
ai.chat("Say 'test'")
Generate an image with DALL-E
ai.imageGen("Puppy")