Skip to content

feat: add Infistar sponsor to README and AI providers - #142

Merged
vanloctech merged 2 commits into
mainfrom
docs/readme-infistar-sponsor
Nov 13, 2026
Merged

vanloctech merged 2 commits into
mainfrom
docs/readme-infistar-sponsor

Conversation

@vanloctech

Copy link
Copy Markdown
Owner

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)

  • New Sponsors section placed right before Build from Source. It has the clickable banner (docs/sponsors/infistar.png, linking to the referral sign-up), the sponsor's introduction, and a plain referral link as a fallback.
  • EN keeps the sponsor's copy verbatim. VI and ZH-CN are translations; model names, numbers and links are unchanged.
  • Build from Source moves from ### under Installation to its own ## section, with its sub-sections now ###. This keeps the heading hierarchy correct. The #build-from-source anchor is unchanged.

Settings → AI → Choose AI Provider

  • Infistar is listed first, with a Sponsored label.
  • Backend: new AIProvider::Infistar that reuses the existing OpenAI-compatible proxy path with a fixed base URL, https://infistar.cc. Users only paste an API key. www.infistar.cc answers API POSTs with 405, so the bare domain is required.
  • The Get API key link and a short note point to the referral sign-up (Youwee users get CNY 5 free).
  • Model list comes from Infistar's live catalog. The new get_infistar_models command reads the public https://infistar.cc/api/pricing endpoint; 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.
  • The dropdown groups models by brand (SelectGroup/SelectLabel). ModelOption gains an optional group, so other providers are unaffected.
  • Default model is 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.
  • The referral link lives in src/lib/sponsors.ts, so the placement is easy to remove after the pilot.
  • i18n for all 13 locales. Changelog entries in EN, VI and ZH-CN.

Notes for reviewers

  • The referral code is aff=6VX7D2Z3, taken from the copy the sponsor sent. Confirm it is our own Invite & Earn code before merging. If not, update src/lib/sponsors.ts and the 3 READMEs.
  • The branch merges the latest main (gallery-dl install). The changelog conflict was resolved by keeping both entries.

Test plan

  • Biome, tsc, bun tests (114) and cargo check pass (pre-commit hook)
  • cargo test passes (238), including Infistar endpoint/serialization and catalog parsing tests
  • https://infistar.cc/v1/chat/completions returns an OpenAI-style 401 for an invalid key
  • Catalog parser on the live /api/pricing data: 164 chat models in 15 brands, and all recommended models are present
  • Manual: select Infistar, paste a real key, Test, then summarize a video
  • Manual: README banner renders and links correctly on GitHub

🤖 Generated with Claude Code

vanloctech and others added 2 commits November 13, 2026 00:15
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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T17:21:16.744503Z 048248f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vanloctech
vanloctech merged commit 3e57400 into main Nov 13, 2026
4 checks passed
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