こんにちは、久富俊介
O1、O3-miniで『Hosted tool “code_interpreter”はサポートされていません』を再現できました(不一致を報告する必要があります)。 しかし、ドイツ西中央リージョンではo4-miniの結果が表示されています
import os
from openai import OpenAI
client = OpenAI(
api_key="<apikey>",
base_url="https://<openainame>.openai.azure.com//openai/v1/",
)
instructions = "You are a personal math tutor. When asked a math question, write and run code using the python tool to answer the question."
response = client.responses.create(
model="o4-mini",
tools=[
{
"type": "code_interpreter",
"container": {"type": "auto"}
}
],
instructions=instructions,
input="I need to solve the equation 3x + 11 = 14. Can you help me?",
)
print(response.output)
O4-mini/gpt-5 のデプロイメントタイプと、リソースのリージョンを共有してください。 同じ認識を持つためです。
ありがとうございます。