Skip to content

feat: Add Astraflow provider support (global + China endpoints) - #14270

Merged
JinHai-CN merged 12 commits into
infiniflow:mainfrom
ucloudnb666:feat/astraflow-1776820526
Apr 22, 2026
Merged

JinHai-CN merged 12 commits into
infiniflow:mainfrom
ucloudnb666:feat/astraflow-1776820526

Conversation

@ucloudnb666

Copy link
Copy Markdown

Add Astraflow Provider Support

This PR integrates Astraflow (by UCloud / 优刻得) as a new AI model provider in RAGFlow, with support for both global and China endpoints.

About Astraflow

Astraflow is an OpenAI-compatible AI model aggregation platform supporting 200+ models from major providers including DeepSeek, Qwen, GPT, Claude, Gemini, Llama, Mistral, and more.

Variant Factory Name Endpoint Env Var
Global Astraflow https://api-us-ca.umodelverse.ai/v1 ASTRAFLOW_API_KEY
China Astraflow-CN https://api.modelverse.cn/v1 ASTRAFLOW_CN_API_KEY

Files Changed

File Change
rag/llm/__init__.py Register Astraflow and Astraflow-CN in SupportedLiteLLMProvider enum, FACTORY_DEFAULT_BASE_URL, and LITELLM_PROVIDER_PREFIX
rag/llm/chat_model.py Add AstraflowChat and AstraflowCNChat (OpenAI-compatible Base subclass)
rag/llm/embedding_model.py Add AstraflowEmbed and AstraflowCNEmbed (subclasses of OpenAIEmbed)
rag/llm/rerank_model.py Add AstraflowRerank and AstraflowCNRerank (subclasses of OpenAI_APIRerank)
rag/llm/cv_model.py Add AstraflowCV and AstraflowCNCV (subclasses of GptV4)
rag/llm/tts_model.py Add AstraflowTTS and AstraflowCNTTS (subclasses of OpenAITTS)
rag/llm/sequence2txt_model.py Add AstraflowSeq2txt and AstraflowCNSeq2txt (subclasses of GPTSeq2txt)
conf/llm_factories.json Register Astraflow and Astraflow-CN factories with a curated list of popular models

Supported Model Types

  • ✅ Chat / LLM — DeepSeek-V3/R1, Qwen3, GPT-4o/4.1, Claude 3.5/3.7, Gemini 2.0/2.5 Flash, Llama 3.3/4, Mistral, and 200+ more
  • ✅ Text Embedding — text-embedding-3-small/large
  • ✅ Image / Vision (IMAGE2TEXT) — GPT-4o, GPT-4.1, Claude, Gemini, Llama-4, etc.
  • ✅ Text Re-Rank
  • ✅ TTS — tts-1
  • ✅ Speech-to-Text (SPEECH2TEXT) — whisper-1

Implementation Notes

  • Uses the openai/ LiteLLM prefix — consistent with other OpenAI-compatible aggregation platforms (SILICONFLOW, DeerAPI, CometAPI, OpenRouter, n1n, Avian, etc.)
  • Astraflow (global, rank 250) and Astraflow-CN (China, rank 249) are separate factory entries, allowing users to choose the optimal endpoint based on their region.
  • All model classes cleanly subclass existing base classes (Base, OpenAIEmbed, OpenAI_APIRerank, GptV4, OpenAITTS, GPTSeq2txt) with no custom logic needed — the provider is fully OpenAI-compatible.

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 22, 2026
@coderabbitai

coderabbitai Bot commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7b1c7cd2-8c1a-46e2-9a15-bd704be6ceef

📥 Commits

Reviewing files that changed from the base of the PR and between 6bae7a6 and eadb3ff.

📒 Files selected for processing (1)
  • conf/llm_factories.json
✅ Files skipped from review due to trivial changes (1)
  • conf/llm_factories.json

📝 Walkthrough

Walkthrough

Added two new LLM providers, Astraflow and Astraflow-CN: configuration entries, enum and mapping registrations, provider-specific chat and embedding classes with region-default base URLs, and documentation table rows; minor formatting fixes in existing factory JSON.

Changes

Cohort / File(s) Summary
Factory Configuration
conf/llm_factories.json
Appended Astraflow and Astraflow-CN factory entries with chat and embedding model lists, URLs, ranks, tags; fixed minor formatting/indentation in existing Tongyi-Qianwen and Gemini entries; removed trailing newline.
Provider Registration
rag/llm/__init__.py
Added Astraflow and Astraflow_CN to SupportedLiteLLMProvider; added default base URLs in FACTORY_DEFAULT_BASE_URL and openai/ prefix mappings in LITELLM_PROVIDER_PREFIX.
Chat Model Classes
rag/llm/chat_model.py
Added AstraflowChat and AstraflowCNChat classes (subclassing existing Base), each with _FACTORY_NAME and constructors that set region-specific default base_url when not provided.
Embedding Model Classes
rag/llm/embedding_model.py
Added AstraflowEmbed and AstraflowCNEmbed classes (subclassing OpenAIEmbed), each with _FACTORY_NAME and constructors that set region-specific default base_url.
Documentation
docs/guides/models/supported_models.mdx
Added table rows for Astraflow and Astraflow-CN marking LLM and Embedding support (Astraflow-CN also marks Rerank).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I hopped by config, with a twitchy nose,

Two Astraflow friends in tidy rows,
Chat and embed, US and CN delight,
I nibbled a bug, then bounded from sight. ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'feat: Add Astraflow provider support (global + China endpoints)' is concise, specific, and accurately summarizes the main change—adding Astraflow integration with both endpoints.
Description check ✅ Passed The PR description includes comprehensive background (About Astraflow), clearly identifies this as a 'New Feature', details files changed, supported model types, and implementation notes—exceeding the template requirements.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@dosubot dosubot Bot added 🌈 python Pull requests that update Python code 💞 feature Feature request, pull request that fullfill a new feature. labels Apr 22, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
rag/llm/sequence2txt_model.py (1)

307-331: ⚠️ Potential issue | 🔴 Critical

Move the DeerAPI __init__ method out of AstraflowCNSeq2txt class.

Lines 327–331 define a second __init__ inside AstraflowCNSeq2txt, overriding the first one (lines 322–325). This causes AstraflowCNSeq2txt to use the DeerAPI endpoint (https://api.deerapi.com/v1) instead of the correct Astraflow-CN endpoint (https://api.modelverse.cn/v1). Additionally, DeerAPISeq2txt lacks its own __init__ implementation.

Move the second __init__ to belong to DeerAPISeq2txt:

Fix
 class DeerAPISeq2txt(Base):
     _FACTORY_NAME = "DeerAPI"
+
+    def __init__(self, key, model_name="whisper-1", base_url="https://api.deerapi.com/v1", **kwargs):
+        if not base_url:
+            base_url = "https://api.deerapi.com/v1"
+        self.client = OpenAI(api_key=key, base_url=base_url)
+        self.model_name = model_name
+
 
 class AstraflowSeq2txt(GPTSeq2txt):
     _FACTORY_NAME = "Astraflow"
@@
     def __init__(self, key, model_name="whisper-1", base_url="https://api.modelverse.cn/v1", **kwargs):
         if not base_url:
             base_url = "https://api.modelverse.cn/v1"
         super().__init__(key, model_name=model_name, base_url=base_url, **kwargs)
-
-    def __init__(self, key, model_name="whisper-1", base_url="https://api.deerapi.com/v1", **kwargs):
-        if not base_url:
-            base_url = "https://api.deerapi.com/v1"
-        self.client = OpenAI(api_key=key, base_url=base_url)
-        self.model_name = model_name
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@rag/llm/sequence2txt_model.py` around lines 307 - 331, AstraflowCNSeq2txt
currently has two __init__ methods; the second one (which sets base_url to
"https://api.deerapi.com/v1" and initializes self.client = OpenAI(...)) should
be moved to DeerAPISeq2txt so AstraflowCNSeq2txt keeps its correct Astraflow-CN
initialization. Remove the duplicate __init__ from AstraflowCNSeq2txt (leave the
one that defaults base_url to "https://api.modelverse.cn/v1" and calls
super().__init__) and add the moved __init__ to DeerAPISeq2txt (use the existing
signature key, model_name="whisper-1", base_url="https://api.deerapi.com/v1",
check/fallback if not base_url, then set self.client = OpenAI(api_key=key,
base_url=base_url) and self.model_name = model_name).
rag/llm/tts_model.py (1)

444-467: ⚠️ Potential issue | 🔴 Critical

Move the DeerAPI initializer to DeerAPITTS.

The class AstraflowCNTTS defines two __init__ methods (lines 459 and 464), causing the China endpoint initializer to be overwritten by the DeerAPI endpoint. Additionally, DeerAPITTS lacks an explicit __init__, missing its intended default URL configuration. Move lines 464–467 to DeerAPITTS to resolve the endpoint routing.

🐛 Proposed fix
 class DeerAPITTS(OpenAITTS):
     _FACTORY_NAME = "DeerAPI"
+
+    def __init__(self, key, model_name, base_url="https://api.deerapi.com/v1", **kwargs):
+        if not base_url:
+            base_url = "https://api.deerapi.com/v1"
+        super().__init__(key, model_name, base_url, **kwargs)
+
+
 class AstraflowTTS(OpenAITTS):
     _FACTORY_NAME = "Astraflow"
 
@@
     def __init__(self, key, model_name, base_url="https://api.modelverse.cn/v1", **kwargs):
         if not base_url:
             base_url = "https://api.modelverse.cn/v1"
         super().__init__(key, model_name, base_url, **kwargs)
-
-    def __init__(self, key, model_name, base_url="https://api.deerapi.com/v1", **kwargs):
-        if not base_url:
-            base_url = "https://api.deerapi.com/v1"
-        super().__init__(key, model_name, base_url, **kwargs)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@rag/llm/tts_model.py` around lines 444 - 467, AstraflowCNTTS currently has
two __init__ definitions which overwrote the China endpoint initializer; remove
the duplicate __init__ that sets base_url="https://api.deerapi.com/v1" from
AstraflowCNTTS and instead add that initializer to DeerAPITTS so
DeerAPITTS.__init__(key, model_name, base_url="https://api.deerapi.com/v1",
**kwargs) sets the default DeerAPI URL and calls super().__init__(...), while
AstraflowCNTTS retains its China endpoint __init__
(base_url="https://api.modelverse.cn/v1"); keep the _FACTORY_NAME values as-is.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@conf/llm_factories.json`:
- Around line 6299-6303: The factory entries for "Astraflow" and "Astraflow-CN"
advertise the capability tag "TEXT RE-RANK" but their "llm" arrays lack any
rerank model entries; either add the appropriate Astraflow rerank model objects
into each factory's "llm" list (matching the shape of other models in the file
and using the provider's rerank model names/ids), or remove "TEXT RE-RANK" from
the factory "tags" field for both factories so rerank is not advertised until
models are added; update the same change for both occurrences mentioned in the
comment.

In `@rag/llm/chat_model.py`:
- Around line 39-56: The AstraflowChat and AstraflowCNChat classes currently
inherit from Base before Base is defined, causing a NameError; move the class
definitions for AstraflowChat and AstraflowCNChat so they appear after the Base
class definition (keep their _FACTORY_NAME, __init__ signatures, default
base_url values, and super().__init__ calls unchanged) and ensure any references
to these classes still import or instantiate them after the module-level Base is
available.

---

Outside diff comments:
In `@rag/llm/sequence2txt_model.py`:
- Around line 307-331: AstraflowCNSeq2txt currently has two __init__ methods;
the second one (which sets base_url to "https://api.deerapi.com/v1" and
initializes self.client = OpenAI(...)) should be moved to DeerAPISeq2txt so
AstraflowCNSeq2txt keeps its correct Astraflow-CN initialization. Remove the
duplicate __init__ from AstraflowCNSeq2txt (leave the one that defaults base_url
to "https://api.modelverse.cn/v1" and calls super().__init__) and add the moved
__init__ to DeerAPISeq2txt (use the existing signature key,
model_name="whisper-1", base_url="https://api.deerapi.com/v1", check/fallback if
not base_url, then set self.client = OpenAI(api_key=key, base_url=base_url) and
self.model_name = model_name).

In `@rag/llm/tts_model.py`:
- Around line 444-467: AstraflowCNTTS currently has two __init__ definitions
which overwrote the China endpoint initializer; remove the duplicate __init__
that sets base_url="https://api.deerapi.com/v1" from AstraflowCNTTS and instead
add that initializer to DeerAPITTS so DeerAPITTS.__init__(key, model_name,
base_url="https://api.deerapi.com/v1", **kwargs) sets the default DeerAPI URL
and calls super().__init__(...), while AstraflowCNTTS retains its China endpoint
__init__ (base_url="https://api.modelverse.cn/v1"); keep the _FACTORY_NAME
values as-is.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6e51f37a-7d9d-47b4-9a59-ef496c000290

📥 Commits

Reviewing files that changed from the base of the PR and between 74b44e1 and 4d8f2c8.

📒 Files selected for processing (8)
  • conf/llm_factories.json
  • rag/llm/__init__.py
  • rag/llm/chat_model.py
  • rag/llm/cv_model.py
  • rag/llm/embedding_model.py
  • rag/llm/rerank_model.py
  • rag/llm/sequence2txt_model.py
  • rag/llm/tts_model.py

Comment thread conf/llm_factories.json Resolved
Comment thread rag/llm/chat_model.py Resolved
@yingfeng yingfeng added the ci Continue Integration label Apr 22, 2026
@yingfeng
yingfeng marked this pull request as draft April 22, 2026 01:35
@yingfeng
yingfeng marked this pull request as ready for review April 22, 2026 01:36
@JinHai-CN

JinHai-CN commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

@ucloudnb666 would you please fix lint errors?

- rag/llm/chat_model.py: move AstraflowChat and AstraflowCNChat below the
  Base class definition (prev location caused NameError at import time);
  restore from common.misc_utils import thread_pool_exec to its proper
  position among module imports.
- rag/llm/sequence2txt_model.py, tts_model.py: restore DeerAPI __init__
  methods that had been merged into the adjacent Astraflow-CN classes,
  resolving ruff F811 redefinition errors.
- conf/llm_factories.json: drop TEXT RE-RANK from Astraflow /
  Astraflow-CN factory tags since no rerank models are listed.
- rag/llm/rerank_model.py: remove AstraflowRerank / AstraflowCNRerank
  classes to match the factory tag change.
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Apr 22, 2026
user added 2 commits April 22, 2026 13:58
- conf/llm_factories.json: Astraflow / Astraflow-CN tags no longer claim
  IMAGE2TEXT because the llm list contained no image2text model entries
  (same inconsistency coderabbit flagged for TEXT RE-RANK).
- rag/llm/cv_model.py: remove AstraflowCV / AstraflowCNCV accordingly.
- docs/guides/models/supported_models.mdx: add Astraflow and Astraflow-CN
  rows. rag/llm/__init__.py requires this doc to stay in sync.
… + embedding

The previous factory entries listed 23 model names per factory, but 19 of
them do not exist on the Astraflow platform (verified via /v1/models).
Users selecting those entries would have gotten 404s from the API.

- conf/llm_factories.json: rewrite Astraflow and Astraflow-CN llm lists
  using only models that are currently served by Astraflow
  (18 chat + 3 embedding, cross-checked against the live /v1/models
  endpoint at https://api.modelverse.cn/v1/models).
- Tags reduced to LLM + TEXT EMBEDDING. Speech2text / TTS were dropped
  because the platform's speech / tts endpoints are not OpenAI-compatible
  in a way that RAGFlow's GPTSeq2txt / OpenAITTS subclasses can drive.
- rag/llm/tts_model.py, sequence2txt_model.py: remove
  AstraflowTTS / AstraflowCNTTS / AstraflowSeq2txt / AstraflowCNSeq2txt
  accordingly.
- docs/guides/models/supported_models.mdx: update Astraflow /
  Astraflow-CN rows to check only LLM and Embedding columns.

Verified locally: ruff check (whole repo), AST parse, factory tags vs
model_type consistency, and every listed llm_name resolves against the
live /v1/models API.
@ucloudnb666

Copy link
Copy Markdown
Author

Pushed two follow-up commits (a89d08f, 23b9a49) addressing the review:

Commit 1 — the three items from coderabbit & @JinHai-CN:

  1. NameError: moved AstraflowChat / AstraflowCNChat below the Base class definition (chat_model.py).
  2. Rerank tag mismatch: dropped TEXT RE-RANK from factory tags and removed the now-unused AstraflowRerank / AstraflowCNRerank classes.
  3. Ruff F811: restored DeerAPI's init to its own class in sequence2txt_model.py and tts_model.py (it had been merged into AstraflowCN* classes in the previous diff).

Commit 2 — two additional issues I caught during a full audit:
4. Same tag/model mismatch existed for IMAGE2TEXT (factory tag claimed it but no image2text entries were listed). Dropped IMAGE2TEXT from tags and removed the AstraflowCV / AstraflowCNCV classes from cv_model.py to match.
5. rag/llm/init.py explicitly requires docs/guides/models/supported_models.mdx to stay in sync with the provider enum — added Astraflow and Astraflow-CN rows there.

ruff check (whole repo), AST semantic checks, and factory tags/model-type consistency all pass locally. Please take another look when you have time — CI is still waiting for maintainer approval to run, could you also kick it off?

@ucloudnb666

Copy link
Copy Markdown
Author

Pushed one more commit (6bae7a6) for a deeper audit — the previous entries
were lint-clean but listed 19 model names that don't exist on the Astraflow
platform (verified against the live /v1/models endpoint). Users picking
any of those would have hit 404.

Rewrote the Astraflow / Astraflow-CN llm lists using only models that the
platform currently serves (18 chat + 3 embedding, cross-checked against
https://api.modelverse.cn/v1/models). Scoped tags to LLM + TEXT EMBEDDING
and removed the Seq2txt / TTS / CV classes since Astraflow's speech / tts
endpoints aren't OpenAI-compatible in a way RAGFlow's existing subclasses
can drive.

All checks still pass locally (ruff, AST, factory tag/type consistency,
and every listed llm_name resolves against the live API).

- Add is_tools: false to embedding entries (matches CometAPI / DeerAPI /
  SILICONFLOW convention — all existing embedding entries carry this field).
- Rewrite context-size tag strings to use short forms ("1M" for 1_000_000,
  "8K" for 8K embeddings) consistent with other factories, instead of
  "1000k" / "8191".
@ucloudnb666

Copy link
Copy Markdown
Author

Pushed one more alignment commit (eadb3ff) to match the JSON conventions
used by peer factories (CometAPI / DeerAPI / SILICONFLOW):

  • embedding entries now carry "is_tools": false (the field was missing
    in the earlier diff).
  • Context-size tags rewritten in short form ("1M", "8K") instead of
    "1000k" / "8191".

Full audit re-run locally (14 independent checks): ruff, AST structure,
class order / duplicate methods, parent-child init signature compat,
Python _FACTORY_NAME ↔ JSON name ↔ enum alignment, JSON schema, tag /
model_type consistency, docs table row + column alignment, and live
/v1/models existence check for all 21 listed llm_name values. All pass.

Ready for another round of review whenever you have time.

@codecov

codecov Bot commented Apr 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.97%. Comparing base (74b44e1) to head (eadb3ff).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14270      +/-   ##
==========================================
- Coverage   97.41%   95.97%   -1.44%     
==========================================
  Files          10       10              
  Lines         695      695              
  Branches      111      111              
==========================================
- Hits          677      667      -10     
- Misses          7       11       +4     
- Partials       11       17       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JinHai-CN
JinHai-CN merged commit f853a39 into infiniflow:main Apr 22, 2026
1 check passed
Oldcircle added a commit to Oldcircle/ragflow that referenced this pull request Apr 24, 2026
同步 infiniflow/ragflow main(v0.25.0 tag + 后续 commits)。

上游主要变更:
- REST API 大重构:user/tenant/stats/plugin/chunk/document/file2document/
  connector/langfuse/mcp/system/chat/search 全部迁到 api/apps/restful_apis/
- feat: Agent API (infiniflow#14157) / deepseek v4 (infiniflow#14346) / docling native chunking
  (infiniflow#14218) / Astraflow provider (infiniflow#14270) / title chunk 优化 (infiniflow#14325)
- refactor: doc metadata update / agent webhook → REST / 移除 legacy MCP web API
- Go 侧:retrieval_test in GO / stream think chat / zhipu thinking /
  minimax provider / balance command
- 若干 fix:think tags normalization / upload truncation / audio-video pipeline
- 7 个 ingestion_pipeline templates 重命名(Book→book 等)

冲突解决(2 处):
- CLAUDE.md:保留 fork 专属整块(Fork 信息/端口/macOS 本地/活跃文档/首次运行
  记录/Task Executor),追加上游新增的 Working Style 8 条作为独立段
- web/src/pages/dataset/testing/testing-result.tsx:保留 HEAD 版本
  (P1.7-C4 设计对齐版已内含 upstream 要加的 RAGFlowPagination + isRuned 空态
  文案,upstream 版被 HEAD 超集)

验证:
- `pytest test/agent_v2/` → 301 passed / 8 skipped(RAGFLOW_TEST_DB gate)
- 其它冲突文件 auto-merge 成功:dialog_service.py / docker/.env /
  pyproject.toml / uv.lock / locales/en.ts / dataset-table.tsx / testing-form.tsx

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai coderabbitai Bot mentioned this pull request May 15, 2026
1 of 6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration 💞 feature Feature request, pull request that fullfill a new feature. 🌈 python Pull requests that update Python code size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants