Skip to content

Conversation

@chenzhaofei01
Copy link
Contributor

@chenzhaofei01 chenzhaofei01 commented Dec 6, 2025

Title

Fix dashscope default base_url error

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

I don’t think additional tests are needed, as there’s already a unit test covering my code changes.
image

The new api_base is ok.
image

Sorry, I can’t get the unit tests to run on my machine—they keep failing, probably something wrong with my setup.
image

I only run the test file that I’ve modified.
image

Type

🐛 Bug Fix

Changes

Update the default base_url of DashScope, because if you use DashScope following the official sample usage (https://docs.litellm.ai/docs/providers/dashscope#sample-usage) and omit the base_url parameter, an error will be raised.

@vercel
Copy link

vercel bot commented Dec 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Dec 9, 2025 2:07am

@chenzhaofei01 chenzhaofei01 changed the title fix dashscope default base_url error [Fix] dashscope default base_url error Dec 6, 2025
@chenzhaofei01
Copy link
Contributor Author

Strangely, even the latest code—used as-is—fails to pass all the tests.

@krrishdholakia krrishdholakia merged commit 458032b into BerriAI:main Dec 9, 2025
6 of 7 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.

2 participants