Skip to main content

model package for enabling chat experiences with openai

Project description

Microsoft Teams OpenAI

[!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.

Installation

pip install microsoft-teams-openai

Or if using uv:

uv add microsoft-teams-openai

Usage

from microsoft_teams.openai import OpenAICompletionsAIModel
from microsoft_teams.ai import ChatPrompt

model = OpenAICompletionsAIModel(api_key="your-api-key", model="gpt-4")
prompt = ChatPrompt(model)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microsoft_teams_openai-2.0.0a78.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microsoft_teams_openai-2.0.0a78-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file microsoft_teams_openai-2.0.0a78.tar.gz.

File metadata

File hashes

Hashes for microsoft_teams_openai-2.0.0a78.tar.gz
Algorithm Hash digest
SHA256 e052753504e6ad80ab7e503840b237d06519fa56b8f311a560274285547b8112
MD5 9d2bb8dd78738bc3a98e523309d6b340
BLAKE2b-256 81a31a68a40934bddf0c4174fcd2ca91e69d9dad7461d8be229ac94df773bb35

See more details on using hashes here.

File details

Details for the file microsoft_teams_openai-2.0.0a78-py3-none-any.whl.

File metadata

File hashes

Hashes for microsoft_teams_openai-2.0.0a78-py3-none-any.whl
Algorithm Hash digest
SHA256 8b549ec838b5283ad6bb072e248b7f347eee9cfb572365ba636c6cc9d6cccd3e
MD5 156824c6e09db52ea93666c3af8a11ac
BLAKE2b-256 ff5b64165a4be447b14d3fa477b3d07400edc0fe114574558bc75e1f2f8384ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page