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

开发大佬们,项目有没有办法获取本地时间并能与提示词提交给大模型 #1984

Closed
1 task done
qjsir opened this issue May 14, 2024 · 2 comments
Closed
1 task done

Comments

@qjsir
Copy link

qjsir commented May 14, 2024

⚠️ 搜索是否存在类似issue

  • 我已经搜索过issues和disscussions,没有发现相似issue

总结

No response

举例

No response

动机

获取本地时间并与提示词一同提交给大模型进一步丰富玩法
Screenshot_20240515_030331

@Ngwind
Copy link

Ngwind commented May 16, 2024

旧版本的好像不行。
新版本的chatgpt模型(比如chatgpt4),本身有tools功能,默认情况下会自己看情况去调用各种tools。相关资料:https://platform.openai.com/docs/guides/function-calling

例如:
image

@6vision
Copy link
Collaborator

6vision commented May 20, 2024

可以写个时间插件,获取本地时间,并加入到contex内,这个需要有编程基础。
也可以直接使用linkai的服务,直接开启时间插件即可使用,参考应用接入插件

@6vision 6vision closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants