Update main.go
Browse files
main.go
CHANGED
@@ -199,7 +199,7 @@ func handleChat(w http.ResponseWriter, r *http.Request) {
|
|
199 |
return "", fmt.Errorf("创建请求失败: %v", err)
|
200 |
}
|
201 |
req.Header.Set("Content-Type", "application/json")
|
202 |
-
req.Header.Set("Authorization", "Bearer
|
203 |
|
204 |
client := &http.Client{}
|
205 |
resp, err := client.Do(req)
|
|
|
199 |
return "", fmt.Errorf("创建请求失败: %v", err)
|
200 |
}
|
201 |
req.Header.Set("Content-Type", "application/json")
|
202 |
+
req.Header.Set("Authorization", "Bearer sk-2b0fb98d9fcff00c26b753bfcfe2c60b")
|
203 |
|
204 |
client := &http.Client{}
|
205 |
resp, err := client.Do(req)
|