The Azure AI Inference client library (currently in preview) allows you to interact with AI models across multiple services including GitHub Models, Azure AI Foundry (Serverless/Managed Compute), and Azure OpenAI.
Key capabilities include:
- Authentication: Authenticate against various AI services.
- Model Information: Retrieve metadata about the deployed AI model.
- Chat Completions: Perform conversational AI tasks.
- Text Embeddings: Generate vector representations of text.
- Image Embeddings: Generate vector representations of images.
Note: While you can use this library for Azure OpenAI to compare performance with other models, it is recommended to use the official openai Python library for production Azure OpenAI implementations.