Skip to content

Add AI Badgr as an OpenAI-compatible backend example#1

Open
michaelmanly wants to merge 1 commit intoJohnnie88:mainfrom
michaelmanly:docs/add-ai-badgr-provider
Open

Add AI Badgr as an OpenAI-compatible backend example#1
michaelmanly wants to merge 1 commit intoJohnnie88:mainfrom
michaelmanly:docs/add-ai-badgr-provider

Conversation

@michaelmanly
Copy link

Add documentation for using AI Badgr as an OpenAI-compatible backend

This PR adds a small documentation section showing how to point existing OpenAI client code at AI Badgr, which follows the same API surface (chat completions, streaming, JSON mode).

AI Badgr uses optimized open-source models to provide more affordable inference and also supports optional private/self-hosted modes for teams that need additional data control.

What's Included

  • A new README section showing how to override base_url and api_key
  • Language-specific examples:
    • Python + JavaScript + cURL (for mixed repos)
  • Notes explaining that AI Badgr works with standard OpenAI SDKs without code changes

Why This May Be Useful

Some users of this project work with OpenAI-compatible backends (self-hosted or third-party).

This example gives them a straightforward way to use AI Badgr as another compatible option while keeping their existing client code and request format.

Technical Notes

AI Badgr supports:

  • /v1/chat/completions with streaming
  • JSON mode (response_format)
  • Standard OpenAI SDKs (openai clients for Python and JS)
  • The same request/response schema used by OpenAI

This PR only adds optional documentation and does not modify any existing functionality.


Contributor License Agreement: I agree to the contributor license agreement terms for this repository.

@continue
Copy link

continue bot commented Dec 9, 2025

Keep this PR in a mergeable state →

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant