-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
ai connectorAnything related to AI connectorsAnything related to AI connectorspythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernel
Description
According to the following API lifecycle doc, there will be support for preview features without having to roll the api-version each month:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
base_url="https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/",
default_query={"api-version": "preview"},
)
response = client.responses.create(
model="gpt-4.1-nano", # Replace with your model deployment name
input="This is a test.",
)
print(response.model_dump_json(indent=2))
Metadata
Metadata
Assignees
Labels
ai connectorAnything related to AI connectorsAnything related to AI connectorspythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernel
Type
Projects
Status
Bug