Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

id的作用 #121

Closed
aba666666 opened this issue May 11, 2023 · 5 comments
Closed

id的作用 #121

aba666666 opened this issue May 11, 2023 · 5 comments

Comments

@aba666666
Copy link

image
这三个id分别是什么,我如果把access_token当api需要知道这个三个id,不然无法请求

@linweiyuan
Copy link
Owner

第一个是每条消息的 UUID

第二个是 ChatGPT 回复你的那条消息的 ID

第三个是当前这整个对话的 ID

如果不这样传,系统无法进行上下文联想

@aba666666
Copy link
Author

如何获取第二个id

@aba666666
Copy link
Author

第一个是随机生成,第二和第三一直不变可以吗?

@linweiyuan
Copy link
Owner

第三个是一直不变的,第二个在响应中,每条 SSE 数据都会返回

(官网是这样处理,至于你问可不可以,没试过,就算可以,也会有奇怪的问题)

@aba666666
Copy link
Author

返回的message键里的id的值是第二个id呀,谢谢,没注意看

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

No branches or pull requests

2 participants