[FEATURE] Native Databricks provider for Databricks Unity Gateway model services
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
Hướng nghiên cứu
The request asks for a new native databricks provider in the LLM layer, built on subclasses of the existing OpenAI, Anthropic and Gemini providers, plus a databricks extra and an opt-in allow_upload switch in crewai-files. Start by reading how SnowflakeCompletion is structured and how is_litellm routing selects a provider. Done means the routing rules and auth behaviour are settled in review, and PR #9746 is accepted, since it already covers this work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Area
Integration with external tools
Is your feature request related to a an existing bug? Please link it here.
NA
Describe the solution you'd like
A native databricks LLM provider, so LLM(model="databricks/<model-service>") calls models through Databricks Unity Gateway. Databricks Unity Gateway is the recommended way to access models on Databricks. Model services are either Databricks-provided (system.ai.<model>) or configured in Unity Catalog (<catalog>.<schema>.<service>).
Today databricks/... goes through LiteLLM, or through the OpenAI provider with a base_url and a hand-minted token. Neither supports OAuth with token refresh, and model-specific behaviour (for example, models that reject temperature) is left to each user.
What the provider would do:
- Auth: Databricks unified auth through
databricks-sdk(PAT, OAuth M2M, OAuth U2M / CLI profiles), with a fresh token on every request, so long-running crews don't expire. - Routing: each model service goes to the right API, chosen by its name or by
api=, with no network lookups:- Claude goes to the native Anthropic Messages API.
- Gemini goes to the native Gemini API, which keeps multi-turn tool calls working.
- Every other model goes to the unified Responses API, or to Chat Completions with
api="completions".
- Reuse: the classes subclass crewAI's existing OpenAI, Anthropic and Gemini providers, the same pattern as
SnowflakeCompletion. Tools, streaming, structured output, files and usage come from those classes. - No I/O at construction, a
databricksextra, CLI picker entries, and docs inen,ar,koandpt-BR.
Describe alternatives you've considered
- Keep using LiteLLM's
databricks/route. It works for chat, but auth, refresh and model quirks stay outside crewAI, and native Anthropic/Gemini features aren't available. - Use the OpenAI provider with
base_url. This only supports a static token (no refresh), and every model is forced onto one OpenAI-shaped API.
Additional context
Design points we'd like feedback on before review:
databricks/names would use the native provider. Previously they fell back to LiteLLM;is_litellm=Truekeeps the old route.- The
databricksextra bundlesdatabricks-sdk, plus theanthropicandgoogle-genaiSDKs (already crewAI extras) for the native Claude and Gemini APIs. - The provider's own Databricks requests carry a
crewai_oss/<version>User-Agent. Other providers and the host application's SDK clients are untouched. - Files are always sent inline: Databricks Unity Gateway serves no vendor Files API. This needs a small opt-in
allow_uploadswitch in crewai-files.
An implementation is ready on a fork: prasadkona/crewAI @ feat/databricks-provider.
- It has 159 unit tests (mocked, no network), and mypy and ruff are clean.
- The existing test suites give the same results as
main. - It was verified end to end against a Databricks workspace, including a crew deployed as a Databricks App.
Willingness to Contribute
Yes, I'd be happy to submit a pull request
- Ngôn ngữ chính
- Python
- Star
- 61.2k
- Fork
- 9.2k
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 180
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của crewAIInc/crewAI
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[FEATURE] Add Straitly as a native OpenAI-compatible LLM providerCó thể đã có người làm @HashimSyedUBC đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Native OpenAI sync streaming with response_model returns an empty string and emits no completed event when the parse is missingCó thể đã có người làm @basil-k-aji-dev đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Native Azure provider ignores the seed settingCó thể đã có người làm @basil-k-aji-dev đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
crewAIInc/crewAI#9787 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] LiteLLM path reports 0 cached and reasoning tokens in the usage summaryCó thể đã có người làm @basil-k-aji-dev đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của crewAIInc/crewAI
Issue tương tự
-
[BUG] SMTP listener now binds to EMAIL_PORT instead of 2525 since the gunicorn switch 5.0.3-ls373Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
linuxserver/docker-healthchecks#137 · 1 bình luận ·
-
RequirementAgent treats list -> add -> list as a tool call cycle and drops the second list call (Python)Có thể đã có người làm @chaitanya0305 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
i-am-bee/beeai-framework#2049 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fedora-infra/anitya#2272 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
unitaryfoundation/mitiq#3205 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
[Bug]: Index worker test drops empty Git config values on WindowsCó thể đã có người làm @xiaoyesoso đã nhận hôm nay. Đang mởtriage/confirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
agentscope-ai/agentscope#4377 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày