Repository navigation
feat: add Infistar sponsor to README and AI providers - #142
Merged
Merged
Conversation
Infistar sponsors Youwee with links in the README and the AI/API settings. - README (EN/VI/ZH): a Sponsors section before Build from Source with the clickable banner (referral link) and the sponsor's introduction. Build from Source becomes its own section so the heading levels stay correct. - Settings > AI > Choose AI Provider: Infistar is listed first with a "Sponsored" label. It uses the existing OpenAI-compatible path with a fixed base URL (https://infistar.cc; www. rejects API POSTs), so users only paste an API key. The API key link and a short note point to the referral sign-up (CNY 5 free for Youwee users). - The model list comes from Infistar's public catalog (/api/pricing): chat models only, grouped by brand in Infistar's order, cached for a day, with a built-in fallback list. Default model is gpt-6.1-sol. - The referral link lives in src/lib/sponsors.ts for easy removal. - i18n for all 13 locales, changelog entries in EN/VI/ZH-CN. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sponsor # Conflicts: # CHANGELOG.md # docs/CHANGELOG.vi.md # docs/CHANGELOG.zh-CN.md
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Infistar sponsors Youwee for a one-month pilot. They asked for links in Youwee's AI/API settings and in the README (a banner with a short introduction). This PR adds both.
README (EN / VI / ZH-CN)
docs/sponsors/infistar.png, linking to the referral sign-up), the sponsor's introduction, and a plain referral link as a fallback.###under Installation to its own##section, with its sub-sections now###. This keeps the heading hierarchy correct. The#build-from-sourceanchor is unchanged.Settings → AI → Choose AI Provider
AIProvider::Infistarthat reuses the existing OpenAI-compatible proxy path with a fixed base URL,https://infistar.cc. Users only paste an API key.www.infistar.ccanswers API POSTs with 405, so the bare domain is required.get_infistar_modelscommand reads the publichttps://infistar.cc/api/pricingendpoint; no API key is sent. It keeps chat models callable through the OpenAI endpoint (164 today) and drops image, video, audio, embedding and rerank models. Models keep Infistar's own brand and model order, are cached for 24h in the app cache dir, and fall back to the stale cache or a built-in list when offline.SelectGroup/SelectLabel).ModelOptiongains an optionalgroup, so other providers are unaffected.gpt-6.1-sol. Recommended chips:gpt-6.1-sol,claude-sonnet-5-5,gemini-3.5-flash,deepseek-v4.1-flash,grok-4.7.src/lib/sponsors.ts, so the placement is easy to remove after the pilot.Notes for reviewers
aff=6VX7D2Z3, taken from the copy the sponsor sent. Confirm it is our own Invite & Earn code before merging. If not, updatesrc/lib/sponsors.tsand the 3 READMEs.main(gallery-dl install). The changelog conflict was resolved by keeping both entries.Test plan
tsc, bun tests (114) andcargo checkpass (pre-commit hook)cargo testpasses (238), including Infistar endpoint/serialization and catalog parsing testshttps://infistar.cc/v1/chat/completionsreturns an OpenAI-style 401 for an invalid key/api/pricingdata: 164 chat models in 15 brands, and all recommended models are present🤖 Generated with Claude Code