你用抓包工具,抓一下就看到请求了。自己套个壳子就行。
POST
https://copilot-proxy.githubusercontent.com/v1/chat/completionsauthorization:
Bearer tid=e4****;exp=1692772718;sku=monthly_subscriber;st=dotcom;chat=1;rt=1;8kp=1:5893**********
{
"messages": [
{
"role": "system",
"content": "You are an AI programming assistant....."
},
{
"role": "user",
"content": "是什么用法 @
Lazy 呢?"
},
{
"role": "assistant",
"content": "`@Lazy` 是一个注解,用于延迟初始化一个属性..."
}
],
"model": "copilot-chat",
"temperature": 0.1,
"top_p": 1,
"n": 1,
"stream": true,
"intent": true
}