Skip to content

Using Azure shouldn't be hard. easyaz makes it easier.

License

Notifications You must be signed in to change notification settings

johanste/easyaz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easyaz

Using Azure shouldn't be hard. easyaz makes it easier.

Example

import azure.identity
import easyaz.openai

my_azure_openai_endpoint = 'https://someinstance.openai.azure.com'

creds = azure.identity.DefaultAzureCredential()
easyaz.openai.login(my_azure_openai_endpoint, credential=creds)

import openai

embeddings = openai.Embedding.create(deployment_id = '<some deployment id>', input="Simple, no?")
print(embeddings)

About

Using Azure shouldn't be hard. easyaz makes it easier.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%