Skip to content

OpenAI-compatible LLM engine (reqwest-based, streaming status) #2

Closed

Description

@ajianaz

LLM Engine

Build the core LLM integration engine that communicates with any OpenAI-compatible API.

Requirements

  • HTTP client using reqwest with streaming support
  • Support for OpenAI chat completions format (/v1/chat/completions)
  • Streaming responses for real-time status feedback
  • Configurable base URL, model, temperature, max tokens
  • Support multiple providers: OpenAI, Anthropic (via proxy), Ollama, LM Studio, custom endpoints
  • Rate limiting and retry logic with exponential backoff
  • Timeout handling

Architecture

src/engine/
├── mod.rs
├── client.rs      # HTTP client wrapper
├── prompt.rs      # Prompt construction
├── parser.rs      # Response parsing
└── provider.rs    # Provider-specific config

Acceptance Criteria

  • Works with OpenAI, Ollama, and custom endpoints
  • Streams responses to terminal with progress indicator
  • Handles rate limits gracefully
  • API key loaded from config or environment

Activity

  1. added
    enhancement
    on May 30, 2026
  2. ajianaz commented on May 30, 2026

    @ajianaz
    CollaboratorAuthor

    ✅ Implemented in initial release (v0.1.0) — commit b3f31c9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions