This repository is for active development of the Azure SDK for Go. For consumers of the SDK we recommend visiting our public developer docs at:
Перейти к файлу
Richard Park a0f9b026ec
[azopenai] A rather large, but needed, cleanup of the tests. (#22707)
It was getting difficult to tell what was and wasn't covered and also correlate tests to models, which can sometimes come with differing behavior.

So in this PR I:
- Moved things that don't need to be env vars (ie: non-secrets) to just be constants in the code - this includes model names and generic server identifiers for regions that we use to coordinate new feature development.
- Consolidated all of the setting of endpoint and models into one spot to make it simpler to double-check.
- Consolidated tests that tested the same thing into sub-tests with OpenAI or AzureOpenAI names.
  - If a function was only called by one test moved it into the test as an anonymous func

Also, I added in a test for logit_probs and logprobs/toplogprobs.
2024-04-17 15:19:32 -07:00
.github Update CODEOWNERS (#22608) 2024-03-18 09:26:05 -07:00
.vscode Azure App Configuration SDK (#17093) 2022-03-04 19:00:47 -08:00
documentation Add version naming and deprecation link (#21679) 2023-12-13 16:07:56 +08:00
eng Sync eng/common directory with azure-sdk-tools for PR 8110 (#22754) 2024-04-16 20:22:52 -07:00
profile/p20200901 * update ci.yml for azcosmos to _pass_ the injected stage rather than calling it directly 2024-03-15 11:17:06 -07:00
sdk [azopenai] A rather large, but needed, cleanup of the tests. (#22707) 2024-04-17 15:19:32 -07:00
.gitattributes
.gitignore Auto-install and run standalone test proxy server per test package (#21168) 2023-07-27 15:58:32 -04:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT (#15391) 2021-08-30 17:28:55 +00:00
CONTRIBUTING.md 3rd Party Libs in Samples (#20343) 2023-03-14 17:04:00 -07:00
LICENSE.txt
NOTICE.txt
README.md Add notice for version 1 deprecation (#21680) 2023-12-15 08:58:59 +00:00
SECURITY.md
SUPPORT.md Update SUPPORT.md (#22626) 2024-03-21 15:11:23 -07:00

README.md

Azure SDK for Go

godoc

This repository is for active development of the Azure SDK for Go. For consumers of the SDK you can follow the links below to visit the documentation you are interested in

Getting Started

To get started with a module, see the README.md file located in the module's project folder. You can find these module folders grouped by service in the /sdk directory.

NOTE: Go 1.18 or later is required. You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.

NOTE: The root azure-sdk-for-go Go module which contains subpaths of /services/**/mgmt/** (also known as track 1) is deprecated and no longer recieving support. See the migration guide to learn how to migrate to the current version.

Packages available

Each service can have both 'client' and 'management' modules. 'Client' modules are used to consume the service, whereas 'management' modules are used to configure and manage the service.

Client modules

Our client modules follow the Azure Go SDK guidelines. These modules allow you to use, consume, and interact with existing resources, for example, uploading a blob. They also share a number of core functionalities including retries, logging, transport protocols, authentication protocols, etc. that can be found in the azcore module.

You can find the most up-to-date list of new modules on our latest page.

NOTE: If you need to ensure your code is ready for production use one of the stable, non-beta modules.

Management modules

Similar to our client modules, the management modules follow the Azure Go SDK guidelines. All management modules are available at sdk/resourcemanager. These modules provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity module, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more.

To get started, please follow the quickstart guide here. To see the benefits of migrating and how to migrate to the new modules, please visit the migration guide.

You can find the most up to date list of all of the new packages on our page

NOTE: If you need to ensure your code is ready for production use one of the stable, non-beta modules. Also, if you are experiencing authentication issues with the management modules after upgrading certain packages, it's possible that you upgraded to the new versions of SDK without changing the authentication code. Please refer to the migration guide for proper instructions.

Samples

More code samples for using the management modules for Go SDK can be found in the following locations

Historical releases

Note that the latest modules from Microsoft are grouped by service in the /sdk directory. If you're using packages with prefix github.com/Azure/azure-sdk-for-go/services, github.com/Azure/azure-sdk-for-go/storage, github.com/Azure/azure-sdk-for-go/profiles, please consider migrating to the latest modules. You can find a mapping table from these historical releases to their equivalent here.

Reporting security issues and security bugs

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

Need help?

Community

Contribute

See CONTRIBUTING.md.

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.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.