Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deepseek chat 模型报错 #402

Open
TonyWang-hub opened this issue Mar 10, 2025 · 4 comments
Open

deepseek chat 模型报错 #402

TonyWang-hub opened this issue Mar 10, 2025 · 4 comments

Comments

@TonyWang-hub
Copy link

TonyWang-hub commented Mar 10, 2025

Bug description
deepseek chat 模型报错

Bug solved method

2025-03-10 17:54:23.682 | WARNING  | __main__:main:15 - Processing your request...
2025-03-10 17:54:23.683 | INFO     | app.agent.base:run:137 - Executing step 1/30
2025-03-10 17:57:24.917 | ERROR    | app.llm:ask_tool:262 - API error: Request timed out.
2025-03-10 18:00:27.085 | ERROR    | app.llm:ask_tool:262 - API error: Request timed out.
2025-03-10 18:03:30.016 | ERROR    | app.llm:ask_tool:262 - API error: Request timed out.
2025-03-10 18:06:32.440 | ERROR    | app.llm:ask_tool:262 - API error: Request timed out.
2025-03-10 18:09:38.339 | ERROR    | app.llm:ask_tool:262 - API error: Request timed out.
2025-03-10 18:12:48.098 | ERROR    | app.llm:ask_tool:262 - API error: Request timed out.
Traceback (most recent call last):
  File "/opt/anaconda3/lib/python3.12/site-packages/anyio/_core/_tasks.py", line 115, in fail_after
    yield cancel_scope
  File "/opt/anaconda3/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 114, in connect_tcp
    stream: anyio.abc.ByteStream = await anyio.connect_tcp(
                                   ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/lib/python3.12/site-packages/anyio/_core/_sockets.py", line 219, in connect_tcp
    async with create_task_group() as tg:
  File "/opt/anaconda3/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 688, in __aexit__
    raise cancelled_exc_while_waiting_tasks
  File "/opt/anaconda3/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 668, in __aexit__
    await asyncio.wait(self._tasks)
  File "/opt/anaconda3/lib/python3.12/asyncio/tasks.py", line 464, in wait
    return await _wait(fs, timeout, return_when, loop)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/lib/python3.12/asyncio/tasks.py", line 550, in _wait
    await waiter
asyncio.exceptions.CancelledError: Cancelled by cancel scope 1093d0350

使用代理之后报错:

2025-03-10 18:23:14.624 | WARNING  | __main__:main:15 - Processing your request...
2025-03-10 18:23:14.625 | INFO     | app.agent.base:run:137 - Executing step 1/30
2025-03-10 18:23:15.381 | ERROR    | app.llm:ask_tool:262 - API error: Error code: 403 - {'error': {'code': 'unsupported_country_region_territory', 'message': 'Country, region, or territory not supported', 'param': None, 'type': 'request_forbidden'}}
2025-03-10 18:23:16.699 | ERROR    | app.llm:ask_tool:262 - API error: Error code: 403 - {'error': {'code': 'unsupported_country_region_territory', 'message': 'Country, region, or territory not supported', 'param': None, 'type': 'request_forbidden'}}

配置:

[llm]
model='deepseek-chat'
base_url = "https://api.deepseek.com"
api_key = "sk-"
max_tokens = 4096
temperature = 0.0

[llm.vision]
model='deepseek-chat'
base_url = "https://api.deepseek.com"
api_key = "sk-"

-->

Environment information
System: macos 15.1v
Python: 3.12

@zbinxp
Copy link

zbinxp commented Mar 10, 2025

use this base_url = "https://api.deepseek.com/v1", and have a try

@FujiwaraChoki
Copy link

DeepSeek does not support tool calls

@SC-czx
Copy link

SC-czx commented Mar 10, 2025

好像是deepseek不支持函数式调用,得换模型

@ruge189
Copy link

ruge189 commented Mar 10, 2025

第一个错误:请求超时,deepseekAPI经常会有超时问题
第二个错误:不支持的地区,deepseek禁止了该国家或地区的请求

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

No branches or pull requests

5 participants