nonoai

command
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

Fake LLM Server for Testing

A lightweight HTTP server that mimics OpenAI and Google Gemini APIs for testing purposes. This server allows E2E testing of LLM integration without incurring API costs or depending on external services.

Features

  • OpenAI API Compatible - Supports /v1/chat/completions endpoint
  • Gemini API Compatible - Supports /v1beta/models/{model}:generateContent endpoint
  • Configurable Responses - Keyword-based and provider-specific responses
  • Simulate Failures - Rate limiting and server errors
  • Latency Simulation - Configurable response delays
  • Health Check - /health endpoint for readiness probes
  • No Dependencies - Pure Go implementation

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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