azure-sdk-for-go/sdk/ai/azopenaiextensions
Wes Haggard ac22295fff
Switch to TME test subscription (#23570)
2024-10-14 16:54:41 -07:00
..
internal [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
testdata [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
CHANGELOG.md Increment package version after release of ai/azopenaiextensions (#23583) 2024-10-14 20:05:33 +00:00
CONTRIBUTING.md
LICENSE.txt
MIGRATIONGUIDE.md
README.md
autorest.md [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
build.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
ci.yml Switch to TME test subscription (#23570) 2024-10-14 16:54:41 -07:00
client_assistants_test.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
client_audio_test.go
client_chat_completions_extensions_test.go [azopenaiextensions] Of course, the streaming version can throttle as well. (#23544) 2024-10-04 15:16:20 -07:00
client_chat_completions_test.go
client_completions_test.go
client_embeddings_test.go
client_functions_test.go
client_rai_test.go
client_shared_test.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
constants.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
custom_client_image_test.go
custom_errors.go
custom_errors_test.go
custom_models.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
example_azure_on_your_data_test.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
go.mod [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
go.sum [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
helpers_requests.go
helpers_responses.go
interfaces.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
main_test.go
models.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
models_serde.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
polymorphic_helpers.go [azopenaiextensions] Prepping for release tomorrow (#23551) 2024-10-09 19:17:41 -07:00
test-resources.bicep
time_unix.go
version.go Increment package version after release of ai/azopenaiextensions (#23583) 2024-10-14 20:05:33 +00:00

README.md

Azure OpenAI extensions module for Go

This module provides models and convenience functions to make it simpler to use Azure OpenAI features, such as Azure OpenAI On Your Data, with the OpenAI Go client (https://pkg.go.dev/github.com/openai/openai-go).

Source code | Package (pkg.go.dev) | REST API documentation | Product documentation

Getting started

Prerequisites

Install the packages

Install the azopenaiextensions and azidentity modules with go get:

go get github.com/Azure/azure-sdk-for-go/sdk/ai/azopenaiextensions

# optional
go get github.com/Azure/azure-sdk-for-go/sdk/azidentity

The azidentity module is used for Azure Active Directory authentication with Azure OpenAI.

Key concepts

See Key concepts in the product documentation for more details about general concepts.

Examples

Examples for scenarios specific to Azure can be found on pkg.go.dev or in the example*_test.go files in our GitHub repo for azopenaiextensions.

For examples on using the openai-go client, see the examples in the openai-go repository.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.