-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I can connect to my model using curl like this:
curl -X POST "https://stefa-censored-swedencentral.cognitiveservices.azure.com/openai/responses?api-version=2025-03-01-preview" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $AZURE_API_KEY" \
-d '{
"model": "o4-mini",
"input": "This is a test"
}'
Can we also add this URL to the isAzureEndpoint Util?
openai-java/openai-java-core/src/main/kotlin/com/openai/core/Utils.kt
Lines 92 to 99 in e80129f
@JvmSynthetic | |
internal fun isAzureEndpoint(baseUrl: String): Boolean { | |
// Azure Endpoint should be in the format of `https://<region>.openai.azure.com`. | |
// Or `https://<region>.azure-api.net` for Azure OpenAI Management URL. | |
val trimmedBaseUrl = baseUrl.trim().trimEnd('/') | |
return trimmedBaseUrl.endsWith(".openai.azure.com", true) || | |
trimmedBaseUrl.endsWith(".azure-api.net", true) | |
} |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working