lifan0127 / ai-research-assistant

Aria is Your AI Research Assistant Powered by GPT Large Language Models
GNU Affero General Public License v3.0
1.06k stars 57 forks source link

Advice for being compatible with qwen #111

Closed caomingpei closed 3 months ago

caomingpei commented 3 months ago

Qwen is developed by Alibaba Inc., and it also provide the compatible format and function calling. So It can be the alternative model for users in a special region.

However, change the base_url may encounter the following situation:

<pre>{
  "status": 400,
  "headers": {},
  "error": {
    "code": "invalid_parameter_error",
    "param": null,
    "message": "Tool names are not allowed to be [search]",
    "type": "invalid_request_error"
  },
}</pre>
image

This is intersting cause maybe the Alibaba set a filter to reserve some words. So only change the 'search' name to others can make this tool be compatible with Qwen