You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove defaulting value of candidates in unary api. remove unused variables and imports. remove throwing GoogleAIError when candidates undefined or empty.
'[VertexAI.GoogleGenerativeAIError]: got status: 500 Internal Server Error. {"code":500,"message":"service is having downtime","status":"INTERNAL_SERVER_ERROR"}';
it('returns a GenerateContentResponse when passed multi-part content',async()=>{
1580
1547
constreq=TEST_MULTIPART_MESSAGE[0]['parts'];
1581
1548
constexpectedResult: GenerateContentResult={
@@ -2035,8 +2002,6 @@ describe('GenerativeModelPreview when response is undefined', () => {
2035
2002
});
2036
2003
2037
2004
describe('GeneratvieModel when response is 4XX',()=>{
2038
-
constexpectedErrorMessage=
2039
-
'[VertexAI.ClientError]: got status: 400 Bad Request. {"code":400,"message":"request is invalid","status":"INVALID_ARGUMENT"}';
2040
2005
constreq: GenerateContentRequest={
2041
2006
contents: TEST_USER_CHAT_MESSAGE,
2042
2007
};
@@ -2100,8 +2065,6 @@ describe('GeneratvieModel when response is 4XX', () => {
2100
2065
});
2101
2066
2102
2067
describe('GeneratvieModelPreview when response is 4XX',()=>{
2103
-
constexpectedErrorMessage=
2104
-
'[VertexAI.ClientError]: got status: 400 Bad Request. {"code":400,"message":"request is invalid","status":"INVALID_ARGUMENT"}';
2105
2068
constreq: GenerateContentRequest={
2106
2069
contents: TEST_USER_CHAT_MESSAGE,
2107
2070
};
@@ -2165,8 +2128,6 @@ describe('GeneratvieModelPreview when response is 4XX', () => {
2165
2128
});
2166
2129
2167
2130
describe('GenerativeModel when response is not OK and not 4XX',()=>{
2168
-
constexpectedErrorMessage=
2169
-
'[VertexAI.GoogleGenerativeAIError]: got status: 500 Internal Server Error. {"code":500,"message":"service is having downtime","status":"INTERNAL_SERVER_ERROR"}';
2170
2131
constreq: GenerateContentRequest={
2171
2132
contents: TEST_USER_CHAT_MESSAGE,
2172
2133
};
@@ -2230,8 +2191,6 @@ describe('GenerativeModel when response is not OK and not 4XX', () => {
2230
2191
});
2231
2192
2232
2193
describe('GenerativeModelPreview when response is not OK and not 4XX',()=>{
2233
-
constexpectedErrorMessage=
2234
-
'[VertexAI.GoogleGenerativeAIError]: got status: 500 Internal Server Error. {"code":500,"message":"service is having downtime","status":"INTERNAL_SERVER_ERROR"}';
0 commit comments