File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ struct GenerativeAIService {
41
41
42
42
// Verify the status code is 200
43
43
guard response. statusCode == 200 else {
44
- Logging . default . error ( " [GoogleGenerativeAI] The server responded with an error: \( response) " )
44
+ Logging . network . error ( " [GoogleGenerativeAI] The server responded with an error: \( response) " )
45
45
if let responseString = String ( data: data, encoding: . utf8) {
46
- Logging . network . error ( " [GoogleGenerativeAI] Response payload: \( responseString) " )
46
+ Logging . default . error ( " [GoogleGenerativeAI] Response payload: \( responseString) " )
47
47
}
48
48
49
49
throw parseError ( responseData: data)
@@ -89,14 +89,14 @@ struct GenerativeAIService {
89
89
90
90
// Verify the status code is 200
91
91
guard response. statusCode == 200 else {
92
- Logging . default
92
+ Logging . network
93
93
. error ( " [GoogleGenerativeAI] The server responded with an error: \( response) " )
94
94
var responseBody = " "
95
95
for try await line in stream. lines {
96
96
responseBody += line + " \n "
97
97
}
98
98
99
- Logging . network . error ( " [GoogleGenerativeAI] Response payload: \( responseBody) " )
99
+ Logging . default . error ( " [GoogleGenerativeAI] Response payload: \( responseBody) " )
100
100
continuation. finish ( throwing: parseError ( responseBody: responseBody) )
101
101
102
102
return
You can’t perform that action at this time.
0 commit comments