06-一个简易的functioncalling #83

Open
opened 2024-09-13 18:48:12 +08:00 by 12535224197cs · 0 comments

step1: 使用https://openweathermap.org/ 自定义一个天气查询函数

x.png

step2: 描述函数调用策略

x.png

step3: 创建chat

x.png

step4: 二次对话

x.png
x.png

- [x] OpenWeatherMap天气API申请:https://openweathermap.org/ ![x.png](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726221654443-61726606-46a4-4a82-bd38-543fb802a50f.png?x-oss-process=image%2Fresize%2Cw_1500%2Climit_0) ![x.png](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726221653067-ab0d7c82-7fa6-4382-8d67-c8739bed1470.png?x-oss-process=image%2Fresize%2Cw_1500%2Climit_0) 通过https://api.openweathermap.org/data/2.5/weather?q=Beijing,cn&APPID='自己的Key' 测试 ![x.png](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726224056139-2bf81349-5cdf-4eaa-aa13-f8b4ec2e0267.png?x-oss-process=image%2Fresize%2Cw_1500%2Climit_0) - [x] 百度API Key和Secret Key获取 ![x.png](https://cdn.nlark.com/yuque/0/2024/jpeg/44993204/1726046456905-40ee1b59-87e1-4575-80e3-67a505f40777.jpeg?x-oss-process=image%2Fresize%2Cw_1500%2Climit_0%2Finterlace%2C1) ### step1: 使用https://openweathermap.org/ 自定义一个天气查询函数 ![x.png](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726221652594-c189b933-fa28-462a-a257-af618bddc5d0.png?x-oss-process=image%2Fresize%2Cw_1500%2Climit_0) ### step2: 描述函数调用策略 ![x.png](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726221652347-a5ded8f0-1e30-461f-86e5-2e2ecd359997.png) ### step3: 创建chat ![x.png](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726221653532-fc61d997-4b77-499b-897e-934c78c11dc2.png?x-oss-process=image%2Fresize%2Cw_1500%2Climit_0) ### step4: 二次对话 ![x.png](https://cdn.nlark.com/yuque/0/2024/png/44993204/1726221653955-d98be09d-4d7e-4afe-bac9-3162edb16d12.png?x-oss-process=image%2Fresize%2Cw_1500%2Climit_0) ![x.png](https://cdn.nlark.com/yuque/0/2024/jpeg/44993204/1726221913037-4c2411d9-5d29-4b6f-97c4-1fea731379bd.jpeg?x-oss-process=image%2Fresize%2Cw_1290%2Climit_0%2Finterlace%2C1)
12535224197cs changed title from 一个简易的functioncalling to 06-一个简易的functioncalling 2024-09-28 17:07:45 +08:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HswOAuth/llm_course#83
No description provided.