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

not work with qwen-vl-max as provide unsupported param: temperature #24

Closed
youzipi opened this issue Jul 9, 2024 · 4 comments
Closed

Comments

@youzipi
Copy link

youzipi commented Jul 9, 2024

not work with qwen-vl-max as provide not supported param: temperature

code:

from GeneralAgent import Agent

models = [

    ('qwen-vl-max', 6000, 'sk-0xxx', 'https://dashscope.aliyuncs.com/compatible-mode/v1'),
]

for model, token_limit, api_key, base_url in models:
    agent = Agent('You are a helpful agent.', model=model, token_limit=token_limit, api_key=api_key, base_url=base_url)
    agent.user_input('介绍一下成都')

error:

openai.BadRequestError: Error code: 400 - {'error': {'code': 'invalid_parameter', 'param': None, 'message': "'temperature' is not support for vl model now", 'type': 'invalid_request_error'}}

error location:

GeneralAgent.skills.llm_inference.llm_inference
image
@zRzRzRzRzRzRzR
Copy link
Contributor

已经修复,CosmosShadow/GeneralAgent#11 PR中

@CosmosShadow
Copy link
Owner

Update to gptpdf==0.0.13

@eruca
Copy link

eruca commented Jul 12, 2024

版本已升级至0.0.13,使用parse_pdf,还是这个错误:

2024-07-12 12:06:53,818 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 400 Bad Request"
2024-07-12 12:06:53,822 - ERROR - Error code: 400 - {'error': {'code': 'invalid_parameter_error', 'param': None, 'message': 'Range of max_tokens should be [1, 1500]', 'type': 'invalid_request_error'}, 'id': 'chatcmpl-d479aeb6-489a-9d6f-8ed9-164a106146e8'}

@CosmosShadow CosmosShadow reopened this Jul 14, 2024
@CosmosShadow
Copy link
Owner

版本已升级至0.0.13,使用parse_pdf,还是这个错误:

2024-07-12 12:06:53,818 - INFO - HTTP Request: POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions "HTTP/1.1 400 Bad Request"
2024-07-12 12:06:53,822 - ERROR - Error code: 400 - {'error': {'code': 'invalid_parameter_error', 'param': None, 'message': 'Range of max_tokens should be [1, 1500]', 'type': 'invalid_request_error'}, 'id': 'chatcmpl-d479aeb6-489a-9d6f-8ed9-164a106146e8'}

这个报错显示你的max_token超量了。

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

4 participants