Skip to content

feat: add Qiniu provider support#1058

Merged
njbrake merged 4 commits into
mozilla-ai:mainfrom
JackChiang233:feat/add-qiniu-provider
May 1, 2026
Merged

feat: add Qiniu provider support#1058
njbrake merged 4 commits into
mozilla-ai:mainfrom
JackChiang233:feat/add-qiniu-provider

Conversation

@JackChiang233

Copy link
Copy Markdown
Contributor

Description

Added support for Qiniu AI (七牛云) as a new model provider.

PR Type

  • 🆕 New Feature

What changed

  • tests/unit/providers/test_qiniu_provider.py - Adds unit tests validating Qiniu provider behavior and integration points.
  • src/any_llm/providers/qiniu/qiniu.py - Implements the Qiniu provider client logic used by the gateway.
  • src/any_llm/providers/qiniu/__init__.py - Exposes Qiniu provider symbols for package-level imports.
  • src/any_llm/constants.py - Adds provider-related constants required for Qiniu registration and routing.
  • pyproject.toml - Updates project metadata/dependencies needed for Qiniu provider support.

Testing

pytest tests/unit/providers/test_qiniu_provider.py --tb=short
# 4 passed 0 failed

Checklist

  • I understand the code I am submitting.
  • I have added unit tests that prove my fix/feature works
  • I have run this code locally and verified it fixes the issue.
  • New and existing tests pass locally
  • Documentation was updated where necessary
  • I have read and followed the contribution guidelines
  • AI Usage:
    • No AI was used.
    • AI was used for drafting/refactoring.
    • This is fully AI-generated.

AI Usage Information

  • AI Model used:
  • AI Developer Tool used:
  • Any other info you'd like to share:

When answering questions by the reviewer, please respond yourself, do not copy/paste the reviewer comments into an AI system and paste back its answer. We want to discuss with you, not your AI :)

  • I am an AI Agent filling out this form (check box if true)

@njbrake njbrake temporarily deployed to integration-tests May 1, 2026 10:13 — with GitHub Actions Inactive
@njbrake njbrake temporarily deployed to integration-tests May 1, 2026 10:13 — with GitHub Actions Inactive
njbrake
njbrake previously approved these changes May 1, 2026
@codecov

codecov Bot commented May 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/any_llm/constants.py 100.00% <100.00%> (+14.03%) ⬆️
src/any_llm/providers/qiniu/__init__.py 100.00% <100.00%> (ø)
src/any_llm/providers/qiniu/qiniu.py 100.00% <100.00%> (ø)

... and 160 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Removed several tests for the QiniuProvider class, including basic attribute checks, model provider splitting, and metadata validation.
@njbrake njbrake temporarily deployed to integration-tests May 1, 2026 10:24 — with GitHub Actions Inactive
@njbrake njbrake temporarily deployed to integration-tests May 1, 2026 10:24 — with GitHub Actions Inactive
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@njbrake njbrake temporarily deployed to integration-tests May 1, 2026 10:29 — with GitHub Actions Inactive
@njbrake njbrake temporarily deployed to integration-tests May 1, 2026 10:29 — with GitHub Actions Inactive
@njbrake njbrake merged commit c8b07ca into mozilla-ai:main May 1, 2026
11 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.

3 participants