8000 填写deepseek key后,执行发现错误 · Issue #1 · SeldomQA/auto-wing · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

填写deepseek key后,执行发现错误 #1

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

Open
magixmin opened this issue Feb 11, 2025 · 4 comments
Open

填写deepseek key后,执行发现错误 #1

magixmin opened this issue Feb 11, 2025 · 4 comments

C 8000 omments

@magixmin
Copy link

File "/Users/mac/web/auto-wing/examples/test_playwright_unittest.py", line 41, in test_01_bing_search
self.ai.ai_action('搜索输入框输入"playwright"关键字,并回车')
File "/Users/mac/anaconda3/envs/magix/lib/python3.12/site-packages/autowing/playwright/fixture.py", line 121, in ai_action
response = self.llm_client.complete(action_prompt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mac/anaconda3/envs/magix/lib/python3.12/site-packages/autowing/core/llm/deepseek_client.py", line 115, in complete
raise Exception(f"DeepSeek API error: {str(e)}")
Exception: DeepSeek API error: Error code: 402 - {'error': {'message': 'Insufficient Balance', 'type': 'unknown_error', 'param': None, 'code': 'invalid_request_error'}}

@defnngj
Copy link
Contributor
defnngj commented Feb 12, 2025

提示是 Insufficient Balance, 余额不足,你充点钱呗!

@magixmin
Copy link
Author

现在充值都 被暂停了 现在爆了。

@magixmin
Copy link
Author

我改成千问
AUTOWING_MODEL_PROVIDER=qwen
OPENAI_BASE_URL=https://ark.cn-beijing.volces.com/api/v3

    except Exception as e:
      raise Exception(f"Qwen API error: {str(e)}")

E Exception: Qwen API error: Error code: 400 - {'error': {'code': 'MissingParameter', 'message': 'The request failed because it is missing one or multiple required parameters. Request id: 02173978360048324b561a2da1271c5abcb2fef88cb44be8f0d34', 'param': '', 'type': 'BadRequest'}}

../../../anaconda3/envs/magix/lib/python3.12/site-packages/autowing/core/llm/qwen_client.py:116: Exception
======================================================================================================================= warnings summary ========================================================================================================================
../../../anaconda3/envs/magix/lib/python3.12/site-packages/_pytest/config/init.py:1277
/Users/mac/anaconda3/envs/magix/lib/python3.12/site-packages/_pytest/config/init.py:1277: PytestAssertRewriteWarning: Module already imported so cannot be rewritten: anyio
好像提示格式,参数缺少。咱们标准Openai SDK 应该通用吧。官方也说支持openai 接口

@defnngj
Copy link
Contributor
defnngj commented Feb 26, 2025
AUTOWING_MODEL_PROVIDER=qwen
OPENAI_BASE_URL=https://ark.cn-beijing.volces.com/api/v3

这个配置是错的。

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

2 participants
0