Thanks you community for your contribution! We have outgrown ourselves! We decided to move to another location to better reflect our purpose.
Here is our new home:
This is a code repository initially for Azure OpenAI In a Day workshop. We wanted to share this code with everyone in order to build better AI solutions using Azure OpenAI services. This repository is maintained by community volunteers. If you would like to contribute, please feel free to create a pull request. Thank you all for your contribution.
Thanks you community for your contribution! We have outgrown ourselves! We decided to move to another location to better reflect our purpose.
Here is our new home:
Restructure repo according to audiences, generally by:
Include a table listing all the samples, with descriptions in README.md for easy navigation.
There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
Microsoft teams can learn more about this effort and share feedback within the open source guidance available internally.
This repository is currently missing a LICENSE.MD file outlining its license. A license helps users understand how to use your project in a compliant manner. You can find the standard MIT license text at the Microsoft repo templates LICENSE file: https://github.com/microsoft/repo-templates/blob/main/shared/LICENSE.
If you would like to learn more about open source licenses, please visit the document at https://aka.ms/license.
Assuming that users may be running experiments against both OpenAI and Azure OpenAI endpoints, let's distinguish between the two distinct sets of API credentials and endpoints (ref: https://github.com/Azure-Samples/Azure-OpenAI-Docs-Samples):
Current:
openai.api_base = os.getenv("OPENAI_API_ENDPOINT")
openai.api_key = os.getenv("OPENAI_API_KEY")
New:
API_KEY = os.getenv("AZURE_OPENAI_API_KEY","").strip()
RESOURCE_ENDPOINT = os.getenv("AZURE_OPENAI_ENDPOINT","").strip()
openai.api_key = API_KEY
openai.api_base = RESOURCE_ENDPOINT
And add error checking.
if not openai.api_base:
raise(Exception("ERROR: Azure OpenAI Endpoint is missing"))
if not "openai.azure.com" in openai.api_base.lower():
raise(Exception("ERROR: Azure OpenAI Endpoint should be in the form: \n\n\t<your unique endpoint identifier>.openai.azure.com"))
if not openai.api_key:
raise(Exception("ERROR: Azure OpenAI Key is missing"))
Pull request to follow. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.