Closed caomingpei closed 3 months ago
Hi @caomingpei Thanks for making the contribution! I suspect that we only need to rename at the following locations. Could you please check if it works?
https://github.com/lifan0127/ai-research-assistant/blob/main/src/models/chains/search.ts#L84
https://github.com/lifan0127/ai-research-assistant/blob/main/src/models/chains/search.ts#L215
Hi @caomingpei Thanks for making the contribution! I suspect that we only need to rename at the following locations. Could you please check if it works?
https://github.com/lifan0127/ai-research-assistant/blob/main/src/models/chains/search.ts#L84
https://github.com/lifan0127/ai-research-assistant/blob/main/src/models/chains/search.ts#L215
Yeah, you are right. Modifying these two places achieves compatibility. I have updated the code in the PR, and it worked. Thank you!
Thanks!
Updated
To solve: Issue https://github.com/lifan0127/ai-research-assistant/issues/111
Implementation: Just change the name realted to function call name in search.ts from "search" to "search_" to be compatible with Qwen.
Reason: qwen reserve the "search" word for other usage, which don't allow user to use a 'search' as the function call name. To be compatible with the qwen openai format, this commit change the name.
Note: