01_basic_chat

command
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL