[Q&A] 请问下大佬哪里有函数调用的demo或者例子 #1063
-
🥰 需求描述需要自定义函数调用 🧐 解决方案有没有自定义函数function call调用的demo呢,谢谢 📝 补充信息No response |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments
-
🥰 Description of requirementsRequires custom function call 🧐 SolutionIs there any demo of custom function call? Thank you. 📝 Supplementary informationNo response |
Beta Was this translation helpful? Give feedback.
-
👀 @scortLi Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
具体说一下?没明白你的诉求 |
Beta Was this translation helpful? Give feedback.
-
Tell me more specifically? I don't understand your request |
Beta Was this translation helpful? Give feedback.
-
@arvinxx 就是类似于openai的函数调用呢 |
Beta Was this translation helpful? Give feedback.
-
@arvinxx It’s a function call similar to openai |
Beta Was this translation helpful? Give feedback.
-
openai 的函数调用你直接看官方文档不就好了么?还是说你希望了解我们在 LobeChat 里是怎么做的? |
Beta Was this translation helpful? Give feedback.
-
Wouldn’t it be better if you just read the official documentation for openai’s function calls? Or would you like to know how we do it in LobeChat? |
Beta Was this translation helpful? Give feedback.
-
@arvinxx 我想了解下你们在LobeChat里面是如何实现函数调用的,有说明吗 |
Beta Was this translation helpful? Give feedback.
-
@arvinxx I would like to know how you implement function calls in LobeChat. Is there any explanation? |
Beta Was this translation helpful? Give feedback.
-
目前没文档,看下 core 实现吧: https://github.com/lobehub/lobe-chat/blob/main/src/store/chat/slices/message/action.ts#L255 我自己感觉应该写的挺清晰的。 然后整个 function call 的交互流程,可以看看这篇: https://chat-plugin-sdk.lobehub.com/guides/plugin-invoke |
Beta Was this translation helpful? Give feedback.
-
@arvinxx 谢谢大佬,刚刚找到了 |
Beta Was this translation helpful? Give feedback.
-
@arvinxx Thanks man, I just found it |
Beta Was this translation helpful? Give feedback.
目前没文档,看下 core 实现吧:
https://github.com/lobehub/lobe-chat/blob/main/src/store/chat/slices/message/action.ts#L255
我自己感觉应该写的挺清晰的。
然后整个 function call 的交互流程,可以看看这篇: https://chat-plugin-sdk.lobehub.com/guides/plugin-invoke