xusenlinzy/api-for-open-llm

💡 [REQUEST] - 支持tools和tool_choice的适配调用

Closed this issue · 1 comments

起始日期 | Start Date

No response

实现PR | Implementation PR

No response

相关Issues | Reference Issues

No response

摘要 | Summary

希望可以支持openai规范的tools和tool_choice适配调用。如下传入参数:

tools: [
{
type: 'function',
function: agentFunction
}
],
tool_choice: { type: 'function', function: { name: agentFunName } }

基本示例 | Basic Example

缺陷 | Drawbacks

未解决问题 | Unresolved questions

No response

@xusenlinzy 这个后续会支持不?