Warning
Deprecated — This package was originally in preview, but we have decided to stop maintaining it before General Availability. We recommend using the official OpenAI Python SDK instead, which provides better long-term support for OpenAI integrations.
OpenAI model implementations for Microsoft Teams AI applications. Supports OpenAI and OpenAI-compatible APIs for chat completions and embeddings.
pip install microsoft-teams-openaiOr if using uv:
uv add microsoft-teams-openaifrom microsoft_teams.openai import OpenAICompletionsAIModel
from microsoft_teams.ai import ChatPrompt
model = OpenAICompletionsAIModel(api_key="your-api-key", model="gpt-4")
prompt = ChatPrompt(model)