Skip to content

Commit ef049a5

Browse files
authored
Merge branch 'main' into fix/assumed-role-setup-bedrock-inference-profiles
2 parents 925ab5f + a47a52d commit ef049a5

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

plugins/default/webhook.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export const handler: PluginHandler = async (
106106
webhookUrl: url,
107107
responseData: response.data,
108108
requestContext: {
109-
headers,
110109
timeout: parameters.timeout || 3000,
111110
},
112111
};
@@ -123,7 +122,6 @@ export const handler: PluginHandler = async (
123122
explanation: `Webhook error: ${e.message}`,
124123
webhookUrl: parameters.webhookURL || 'No URL provided',
125124
requestContext: {
126-
headers: parameters.headers || {},
127125
timeout: parameters.timeout || 3000,
128126
},
129127
// return response body if it's not a ok response and not a timeout error

src/globals.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export const NSCALE: string = 'nscale';
9797
export const HYPERBOLIC: string = 'hyperbolic';
9898
export const FEATHERLESS_AI: string = 'featherless-ai';
9999
export const KRUTRIM: string = 'krutrim';
100+
export const QDRANT: string = 'qdrant';
100101

101102
export const VALID_PROVIDERS = [
102103
ANTHROPIC,
@@ -159,6 +160,7 @@ export const VALID_PROVIDERS = [
159160
HYPERBOLIC,
160161
FEATHERLESS_AI,
161162
KRUTRIM,
163+
QDRANT,
162164
];
163165

164166
export const CONTENT_TYPES = {

src/handlers/handlerUtils.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,6 @@ function constructRequestHeaders(
112112
}
113113
const baseHeaders: any = {
114114
'content-type': 'application/json',
115-
...(requestHeaders['accept-encoding'] && {
116-
'accept-encoding': requestHeaders['accept-encoding'],
117-
}),
118115
};
119116

120117
let headers: Record<string, string> = {};

src/providers/google-vertex-ai/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const getProjectRoute = (
1717
vertexServiceAccountJson,
1818
} = providerOptions;
1919
let projectId = inputProjectId;
20-
if (vertexServiceAccountJson) {
20+
if (vertexServiceAccountJson && vertexServiceAccountJson.project_id) {
2121
projectId = vertexServiceAccountJson.project_id;
2222
}
2323

0 commit comments

Comments
 (0)