在 C# 中,可以使用匿名对象来同时传递多个参数到 content。可以按照以下方式编写代码:

{
    role = "user",
    content = new { callback = '_callback', postWord = '_postWord' }
}

在上述代码中,我们使用了一个匿名对象,其中有两个属性'callback'和'postWord',分别赋值为'_callback'和'_postWord'。然后将这个匿名对象赋值给'content'属性。

C# 如何同时传递 _callback 和 _postWord 到 content

原文地址: https://www.cveoy.top/t/topic/l0lI 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录