openai/openai-java

Public

mirrored from https://github.com/openai/openai-javaAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity

Commit

feat(client): support new unified Azure URL scheme (#554)

* Drafting proposal to allow for flexible base URL

# Conflicts:
#	openai-java-core/src/main/kotlin/com/openai/azure/HttpRequestBuilderExtensions.kt
#	openai-java-core/src/main/kotlin/com/openai/core/ClientOptions.kt

* Added utility functions for the unified v1 and legacy azure endpoints

* Renamed tests

* Aligned impl with spec, fixed tests, added docs

* Simplified unified endpoint check

* PR feedback and sample cleanup

* Fixed some final renamings

* Update HttpRequestBuilderExtensions.kt comments

* Update Azure service version clause in ClientOptions.kt

* Added AzureUrlCategory enum to centralize Azure endpoint identification, PR comments

* Adjusting toggle and related methods sorting

* Adjusted weird comment.

* Made new enum and method internal

* Update openai-java-core/src/main/kotlin/com/openai/azure/AzureUrlCategory.kt

Co-authored-by: Tomer Aberbach <tomer@aberba.ch>

* Changed azureLegacyPaths toggle to AzureUrlPathMode enum

* chore: refactor

---------

Co-authored-by: Tomer Aberbach <tomer@aberba.ch>
Co-authored-by: Tomer Aberbach <tomer@stainless.com>
Changed files1010 shown on this page
Branches0Containing branches
Tags0Containing tags