This repository was archived by the owner on Apr 22, 2026. It is now read-only.
Add AI Badgr as a cheaper OpenAI-compatible backend#1341
Open
michaelmanly wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed everything up to f8fc9e2 in 1 minute and 40 seconds. Click for details.
- Reviewed
36lines of code in1files - Skipped
0files when reviewing. - Skipped posting
3draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. README.md:140
- Draft comment:
The Python example usesfrom openai import OpenAIand then instantiatesOpenAI(...). The official OpenAI Python library typically usesimport openaiwith configuration viaopenai.api_keyandopenai.api_base. Please verify that this constructor-based approach is supported or update the snippet to avoid confusion. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 50% The comment is asking the PR author to "verify" something and suggests the code might be wrong. However, the code is actually correct - this is the modern OpenAI Python library syntax (v1.0+). The comment appears to be based on outdated knowledge of the OpenAI library. The comment also violates the rule about not asking the PR author to verify or confirm things. This is a clear case where the comment is incorrect and should be deleted. Could the comment be referring to a specific version of the OpenAI library that this project uses? Maybe the project is pinned to an older version where this syntax wouldn't work? Even if the project uses an older version, the comment doesn't provide that context and asks the author to "verify" rather than stating a definitive issue. The comment is speculative and asks for verification, which violates the rules. Without seeing evidence that the project is pinned to an old OpenAI library version, I should assume the modern syntax is correct. This comment should be deleted. It's based on outdated knowledge of the OpenAI Python library (the constructor-based approach is the current standard), and it violates the rule against asking the PR author to verify things. The code shown is correct.
2. README.md:131
- Draft comment:
Consider adding a link or reference to AI Badgr’s documentation/homepage for more context on this alternative backend. - Reason this comment was not posted:
Confidence changes required:50%<= threshold50%None
3. README.md:155
- Draft comment:
It might be helpful to provide a brief code example or more explanation for enabling streaming (stream: true) and JSON mode in the API calls. - Reason this comment was not posted:
Confidence changes required:50%<= threshold50%None
Workflow ID: wflow_G7kLMW87cwfHqJjS
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add AI Badgr as a cheaper OpenAI-compatible backend
This PR adds a short documentation section showing how to use AI Badgr as a drop-in replacement for OpenAI's API at a fraction of the cost.
What's Changed
base_urlparameteropenaipackage)openaipackage)Key Points
base_url)base_urland optionallyapi_keyTechnical Details
AI Badgr implements the OpenAI API specification, supporting:
This is an optional addition that gives developers a cost-effective alternative backend choice for their OpenAI-compatible applications.
Contributor License Agreement: I agree to the contributor license agreement terms for this repository.
Important
Adds documentation for using AI Badgr as a cheaper OpenAI-compatible backend in
README.md.README.mdfor using AI Badgr as a cheaper OpenAI-compatible backend.base_urland optionallyapi_key.This description was created by
for f8fc9e2. You can customize this summary. It will automatically update as commits are pushed.