Skip to content

Commit

Permalink
fix: chore: bump openai key
Browse files Browse the repository at this point in the history
  • Loading branch information
abuaboud committed Feb 9, 2024
1 parent e7be860 commit f572127
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/pieces/community/openai/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@activepieces/piece-openai",
"version": "0.3.18"
"version": "0.3.19"
}
5 changes: 4 additions & 1 deletion packages/pieces/community/openai/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const openaiAuth = PieceAuth.CustomAuth({
},
validate: async (auth) => {
try {

let headers;
if (auth.auth.apiVersion) {
headers = {
Expand All @@ -66,6 +66,9 @@ export const openaiAuth = PieceAuth.CustomAuth({
url: `${baseUrl}/models`,
method: HttpMethod.GET,
headers,
queryParams: auth.auth.apiVersion ? {
"api-version": auth.auth.apiVersion,
} : {},
});
return {
valid: true,
Expand Down

0 comments on commit f572127

Please sign in to comment.