recordapi

command
v0.1.64 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package main provides a CLI tool to record real API responses for contract tests. Usage:

OPENAI_API_KEY=sk-xxx go run ./cmd/recordapi \
  -provider=openai \
  -endpoint=chat \
  -output=tests/contract/testdata/openai/chat_completion.json

Jump to

Keyboard shortcuts

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