Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问一下main.py里的代码怎么跟api去交互的呢?只看到了模型相关的信息 #3

Open
wangchan123 opened this issue May 17, 2023 · 1 comment

Comments

@wangchan123
Copy link

我在编写一个新的插件,阅读了插件编写示例,只看懂了一些和收发消息相关的介绍。
如果我想使用API请求调用不同的模型,请求的代码和收发消息的代码是在同一个.py文件里面写的吗?
求大哥指导一下。

@lanvent
Copy link
Owner

lanvent commented May 17, 2023

示例可能有些老了,没有时间更新哈,你可以看看hello插件这些例子,不一定要在同一个.py文件,使用相对路径import就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants