Skip to content

Commit

Permalink
chore(OpenAI): updated auth url
Browse files Browse the repository at this point in the history
  • Loading branch information
Vigneshkna committed Nov 20, 2024
1 parent 34376cf commit cb4bb78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/how2validate/validators/openai/openai_api_key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function validateOpenAIApiKey(
): Promise<ValidationResult> {
const validation_response = {} as SecretStatusMessage;

const url = "https://api.openai.com/v1/organizations";
const url = "https://api.openai.com/v1/me";
const headers = { Authorization: `Bearer ${secret}` };

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def validate_openai_api_key(provider: str, service: str, secret: str, response_f
)

# OpenAI API endpoint for getting the organization details
url = "https://api.openai.com/v1/organizations"
url = "https://api.openai.com/v1/me"

# Headers to ensure no caching and to authorize the request using the provided API key (token)
nocache_headers = {'Cache-Control': 'no-cache'}
Expand Down

0 comments on commit cb4bb78

Please sign in to comment.