asimov-openai-module 0.0.3

ASIMOV OpenAI module.
Documentation

ASIMOV OpenAI Module

License Package on Crates.io Documentation

ASIMOV OpenAI module.

✨ Features

  • To be determined!

🛠️ Prerequisites

  • Rust 1.85+ (2024 edition) if building from source code

⬇️ Installation

Installation with ASIMOV CLI

asimov module install openai -v

Installation from Source Code

cargo install asimov-openai-module

👉 Examples

asimov-openai-prompter

⚙ Configuration

Provide an API key either by module configuration

asimov module config openai

Or through environment variables

export OPENAI_API_KEY="..."

Optional configuration

Name Environment Variable Default
endpoint OPENAI_API_ENDPOINT https://api.openai.com
model OPENAI_MODEL gpt-5-mini

Use a custom endpoint such as Exo

$ # either:
$ asimov module config openai
Enter value for `api-key`
> doesntmatter
Enter value for `endpoint` (optional, default: `https://api.openai.com`)
> http://localhost:52415
Enter value for `model` (optional, default: `gpt-5-mini`)
> llama-3.2-3b

$ # or:
$ export OPENAI_API_ENDPOINT="http://localhost:52415"
$ export OPENAI_MODEL="llama-3.2-3b"

$ # then:
$ echo "Why is the sky blue?" | asimov-openai-prompter

📚 Reference

Prompt

echo "Why is the sky blue?" | asimov-openai-prompter

👨‍💻 Development

git clone https://github.com/asimov-modules/asimov-openai-module.git

Share on X Share on Reddit Share on Hacker News Share on Facebook Share on LinkedIn