gpt4 book ai didi

api - 如何在azure api管理的策略中包含 token ?

转载 作者:行者123 更新时间:2023-12-02 07:12:28 24 4
gpt4 key购买 nike

我使用的 token 在包含在发布请求的表单数据正文中时可在 postman 中使用。如何将 token 包含在策略中?

最佳答案

将 token 附加到入站标记内的请求正文解决了问题。

        string temp = context.Request.Body.As<string>(preserveContent: true); 
temp = temp + "&token={{MyTokenName}}";
return temp;

关于api - 如何在azure api管理的策略中包含 token ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37626426/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com