xusenlinzy / api-for-open-llm

Openai style api for open large language models, using LLMs just as chatgpt! Support for LLaMA, LLaMA-2, BLOOM, Falcon, Baichuan, Qwen, Xverse, SqlCoder, CodeLLaMA, ChatGLM, ChatGLM2, ChatGLM3 etc. 开源大模型的统一后端接口
Apache License 2.0
2.16k stars 252 forks source link

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

Closed leoterry-ulrica closed 5 months ago

leoterry-ulrica commented 6 months ago

起始日期 | 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

leoterry-ulrica commented 6 months ago

@xusenlinzy 这个后续会支持不?