Skip to content

Does the 'pr-agent' version (0.3.1) not support dashscope models? #2114

@luoyq-Rockey

Description

@luoyq-Rockey

Git provider

Gitlab

System Info

'pr-agent' version : 0.3.1
pc : windows 11
IDE:pycharm 2025
python version: 3.13
local gitlab version: 18.5.1

Bug details

I upgraded my local pr-agent from 0.3.0 to 0.3.1, and then made a code comparison between these two versions. I found that version 0.3.1 is in the code of pr-agent\pr_agent\algo\ai_handlers\litellm_ai_handler.py. Support dashscope models has been cancelled

Image

`(.venv) PS D:\Code\pr-agent-0.31\pr_agent> python cli.py --pr_url=http://172.0.0.1:8081/root/lyq_test/-/merge_requests/10 improve --verbose
D:\Code\pr-agent-0.31.venv\Lib\site-packages\azure_init_.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
2025-11-24 12:47:36.316 | INFO | pr_agent.tools.pr_code_suggestions:run:99 - Generating code suggestions for PR...
2025-11-24 12:47:40.756 | INFO | pr_agent.tools.pr_code_suggestions:prepare_prediction_main:698 - Number of PR chunk calls: 1

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

2025-11-24 12:47:41.482 | WARNING | pr_agent.algo.ai_handlers.litellm_ai_handler:chat_completion:396 - Error during LLM inference: litellm.NotFoundError: NotFoundError: DashscopeException - model 'deepseek-v3.1' not found

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.

2025-11-24 12:47:41.496 | WARNING | pr_agent.algo.ai_handlers.litellm_ai_handler:chat_completion:396 - Error during LLM inference: litellm.NotFoundError: NotFoundError: DashscopeException - model 'deepseek-v3.1' not found
2025-11-24 12:47:41.496 | WARNING | pr_agent.algo.pr_processing:retry_with_fallback_models:333 - Failed to generate prediction with dashscope/deepseek-v3.1
2025-11-24 12:47:41.501 | ERROR | pr_agent.tools.pr_code_suggestions:run:185 - Failed to generate code suggestions for PR, error: Failed to generate prediction with any model of ['dashscope/deepseek-v3.1']`

If I copy the difference code in pr-agent\pr_agent\algo\ai_handlers\litellm_ai_handler.py to 0.3.1, the same error will still occur

Image

Is this a defect or will dashscope no longer be supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions