command
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Mar 13, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Basic example demonstrating simple chat completion with OpenAI.
This example shows the most basic usage: sending a single message
and getting a response.
To run:
export OPENAI_API_KEY="your-key-here"
go run examples/01_basic_chat/main.go
Source Files
¶
Click to show internal directories.
Click to hide internal directories.