litellm - ✅(Solved) Fix [Feature]: Function calling support for VolcanoEngine Doubao series [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#23863Fetched 2026-04-08 00:54:14
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4closed ×1commented ×1cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #23871: [Feature] Add new model pricing details for volcengine Doubao-Seed-2.0 series

Description (problem / solution / changelog)

Relevant issues

Fixes #23863.

Pre-Submission checklist

Data-only change, irrelevant

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

CI (LiteLLM team)

Data-only change, irrelevant

Type

<!-- Select the type of Pull Request --> <!-- Keep only the necessary ones -->

🆕 New Feature

Changes

Add entries for volcengine Doubao-Seed-2.0 series. Function calling, reasoning and vision support verified here -> https://www.volcengine.com/docs/82379/1330310?lang=zh#15a31773

Tool choice support verified here -> https://www.volcengine.com/docs/82379/1569618?lang=zh

Only doubao-seed-1-6-*** models support this field.

Changed files

  • model_prices_and_context_window.json (modified, +152/-0)

Code Example

litellm.supports_function_calling(model="volcengine/doubao-seed-2-0-pro-260215")
False
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

The Feature

Nearly all Volcengine Doubao model after version 1.5 supports native function calling (Docs link). However, the following confirmation gives False:

litellm.supports_function_calling(model="volcengine/doubao-seed-2-0-pro-260215")
False

Motivation, pitch

Doubao-2.0 series is a fairly popular model family in China (though second to DeepSeek and Moonshot series), so supporting native function calling would be great.

What part of LiteLLM is this about?

SDK (litellm Python package)

LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?

No

Twitter / LinkedIn details

No response

extent analysis

Fix Plan

To fix the issue of native function calling not being supported for Volcengine Doubao models after version 1.5, we need to update the litellm package to include the necessary checks for these models.

Code Changes

We can add a new check in the supports_function_calling method to handle the Volcengine Doubao models:

def supports_function_calling(self, model):
    # existing checks...
    if "volcengine/doubao" in model and self.get_model_version(model) >= 1.5:
        return True
    # existing checks...

We also need to implement the get_model_version method to retrieve the version of the given model:

def get_model_version(self, model):
    # assuming the model version is embedded in the model name
    version = model.split("-")[-1]
    if version.replace('.', '', 1).isdigit():
        return float(version)
    # handle other version formats or exceptions

Verification

To verify that the fix worked, we can run the following test:

print(litellm.supports_function_calling(model="volcengine/doubao-seed-2-0-pro-260215"))  # should return True

Extra Tips

Make sure to update the documentation and tests to reflect the changes made to the litellm package. Additionally, consider adding more robust version parsing and error handling to the get_model_version method.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING