Skip to content

feat(llm): add AIGROW provider - #1828

Open
guglielmo-io wants to merge 1 commit into
harry0703:mainfrom
guglielmo-io:feat/aigrow-provider
Open

guglielmo-io wants to merge 1 commit into
harry0703:mainfrom
guglielmo-io:feat/aigrow-provider

Conversation

@guglielmo-io

Copy link
Copy Markdown

Adds AIGROW as an LLM provider, mirroring #1770 (UberLLM) and #1730 (CloudGPU).

AIGROW is a prepaid OpenAI-compatible API: one key serves Claude, GPT, Gemini, Grok, Qwen and Kimi models under plain IDs such as claude-haiku-5.5, gpt-6.2-sol or gemini-4-neon. Set llm_provider to aigrow and set aigrow_api_key (keys: https://aigrow.gg/dashboard/api). Leave aigrow_base_url and aigrow_model_name empty to use the defaults https://aigrow.gg/v1 and claude-haiku-5.5. The model list with per-token prices is public without a key at https://aigrow.gg/v1/models.

Changes: one LLMProviderSpec row, the config example block, en/zh labels and tips, and the matching test assertions. No adapter code; it uses the existing openai_compatible adapter.

Tests (Python 3.12, uv sync --locked):

  • python -m unittest test.services.test_llm test.services.test_webui_i18n: 144 tests, OK (1 skipped)
  • python -m pytest test/services/test_config.py test/services/test_settings_providers.py test/services/test_webui_settings_transfer.py test/services/test_mpt_agent_skill.py: 238 passed
  • Full suite as in CI, python -X utf8 -m pytest -q test: 3717 passed, 71 skipped
  • ruff check app cli.py main.py webui test docs/skill and compileall: clean

Live, on this branch with a real key, through the app's own test_connection(), generate_script() and generate_terms() (subject "why the sky is blue", aigrow_base_url left empty so the default URL was used):

  • default model claude-haiku-5.5: connection OK in 4.1 s, a one-paragraph English script, terms ['blue sky', 'sky sunlight', 'sky sunset']
  • gpt-6.2-sol: connection OK in 3.1 s, script and terms ['Blue sky', 'Sky light scattering', 'Sunset sky']
  • gemini-4-neon: connection OK in 7.0 s, script and terms ['clear blue sky', 'sky sunlight', 'sky atmosphere']

Not tested: a full video render (no LLM-specific code path changes after script and terms).

Each model is checked against its maker's own endpoint with a public script; the results are at https://aigrow.gg/ai-api/genuine-models.

Disclosure: I work on AIGROW. It is prepaid with no free tier, and the tip text says so. An AI coding agent prepared this change and ran the checks above.

@harry0703

Copy link
Copy Markdown
Owner

Thanks for adding AIGROW and including your live test results. The connection, script and keyword requests worked against my local test server, and the render finished.

I merged #1827 first since it was opened earlier. It adds entries in the same spots in the provider registry, example config, and translations. Could you rebase this PR onto main and keep both providers' entries? I'll recheck it once the conflicts are resolved.

@guglielmo-io

Copy link
Copy Markdown
Author

Rebased onto main. Both the AtmoRouter and the AIGROW entries are kept in the provider registry, the example config and the translations; pytest test/services/test_llm.py test/services/test_webui_i18n.py passes locally.

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.

2 participants