# minimaxir/simpleaichat

Python package for easily interfacing with chat apps, with robust features and minimal code complexity.

Repository: https://github.com/minimaxir/simpleaichat
Canonical: https://ross.abutalabs.com/products/simpleaichat
Language: Python
License: MIT
License Family: permissive
Topics: ai, chatgpt
Last push: 2024-07-03T16:33:40+00:00

## Health v2 (maintenance only)
Score: 20/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 86
- inputs: {"age_days": 1215, "days_push": 791, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3500, forks 216 (observed 2026-08-28T04:08:07.498348+00:00)

## What it is
A Python library providing a minimal, low-complexity interface for building applications on top of chat LLM APIs like ChatGPT and GPT-4. It supports streaming, async, multiple concurrent sessions, tool use, and structured outputs while minimizing token usage and cost.

## Use cases
- build a chatbot on top of the OpenAI API with minimal boilerplate
- run many LLM chat sessions concurrently with async
- stream GPT-4 responses into a CLI or app
- get structured JSON data out of chat models using schemas
- reduce token costs and latency when calling ChatGPT
- prototype AI assistants and agents quickly in Python

## When to avoid
- you need multi-provider support beyond OpenAI models (PaLM, Claude support was planned but limited)
- you require a full agent framework with chains, memory, and tool ecosystems
- the project is in maintenance mode with infrequent updates as of mid-2024
- you need production features like rate limiting, retries, or observability built in

## Facets
- artifact type: library
- maturity: maintenance
- function: chatbot, llm-inference, agent-framework, sdk, http-client
- domain: large-language-models, chatbots, artificial-intelligence, developer-tools
- platform: python, cross-platform
- tags: openai, chatgpt, gpt-4, chat-interface, async, streaming, structured-output, pydantic, token-optimization, conversational-ai, python

## Member repositories
- minimaxir/simpleaichat (main) score 20

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:07.498348+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:35:48.690423+00:00, confidence not recorded.
  - readme: https://github.com/minimaxir/simpleaichat (fetched 2026-08-28T04:08:07.498348+00:00, sha bfa8342610cd)
  - registry_pypi: https://pypi.org/pypi/simpleaichat/json (fetched 2026-08-29T09:29:46.587177+00:00, sha 2e68689b2c89)
- Data as of 2026-08-30T08:39:29.467469+00:00.
