iCreatAI News
Skip to content
Hacker News AI· l2dy·· 15 days agoAI score33

Bubbuild/republic: A Python library for AI providers

Bubbuild/republic: A Python library for AI providers

AI summary

Republic is a Python library offering one interface for chat, streaming, tool calls, and structured output across AI providers, while leaving agent loops, tool execution, and gateways to your own code. It requires Python 3.11 or later, is installed via pip, and names models as provider:model (e.g., openai:gpt-6-sol), reading keys from REPUBLIC_<PROVIDER>_API_KEY. Optional async middleware can observe and rewrite events of every call, and the project is licensed under Apache 2.0.

Source: Hacker News AI · github.com