File tree Expand file tree Collapse file tree 4 files changed +3
-6
lines changed
providers/google-vertex-ai Expand file tree Collapse file tree 4 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ export const handler: PluginHandler = async (
106
106
webhookUrl : url ,
107
107
responseData : response . data ,
108
108
requestContext : {
109
- headers,
110
109
timeout : parameters . timeout || 3000 ,
111
110
} ,
112
111
} ;
@@ -123,7 +122,6 @@ export const handler: PluginHandler = async (
123
122
explanation : `Webhook error: ${ e . message } ` ,
124
123
webhookUrl : parameters . webhookURL || 'No URL provided' ,
125
124
requestContext : {
126
- headers : parameters . headers || { } ,
127
125
timeout : parameters . timeout || 3000 ,
128
126
} ,
129
127
// return response body if it's not a ok response and not a timeout error
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ export const NSCALE: string = 'nscale';
97
97
export const HYPERBOLIC : string = 'hyperbolic' ;
98
98
export const FEATHERLESS_AI : string = 'featherless-ai' ;
99
99
export const KRUTRIM : string = 'krutrim' ;
100
+ export const QDRANT : string = 'qdrant' ;
100
101
101
102
export const VALID_PROVIDERS = [
102
103
ANTHROPIC ,
@@ -159,6 +160,7 @@ export const VALID_PROVIDERS = [
159
160
HYPERBOLIC ,
160
161
FEATHERLESS_AI ,
161
162
KRUTRIM ,
163
+ QDRANT ,
162
164
] ;
163
165
164
166
export const CONTENT_TYPES = {
Original file line number Diff line number Diff line change @@ -112,9 +112,6 @@ function constructRequestHeaders(
112
112
}
113
113
const baseHeaders : any = {
114
114
'content-type' : 'application/json' ,
115
- ...( requestHeaders [ 'accept-encoding' ] && {
116
- 'accept-encoding' : requestHeaders [ 'accept-encoding' ] ,
117
- } ) ,
118
115
} ;
119
116
120
117
let headers : Record < string , string > = { } ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const getProjectRoute = (
17
17
vertexServiceAccountJson,
18
18
} = providerOptions ;
19
19
let projectId = inputProjectId ;
20
- if ( vertexServiceAccountJson ) {
20
+ if ( vertexServiceAccountJson && vertexServiceAccountJson . project_id ) {
21
21
projectId = vertexServiceAccountJson . project_id ;
22
22
}
23
23
You can’t perform that action at this time.
0 commit comments