Azure OpenAI in Foundry Models
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
i am using Gpt-35-turbo 0301 and 2023-09-15-preview in azure open ai ,When I try to connect using this code, I get a message that the API isn't supported
import openai
# Set your Azure OpenAI credentials
client = OpenAI(api_key = "", base_url="h/")
# Now you can make calls to the OpenAI API using these credentials
response = client.chat.completions.create(
model="gpt-35-turbo",
messages=[
{
"role": "system",
"content": "Given the following SQL tables, your job is to write queries given a user’s request."
},
{
"role": "user",
"content": "Write a SQL query which computes the average total order value for all orders on 2023-04-01."
}
],
temperature=0.7,
max_tokens=64,
top_p=1
)
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
3 deleted commentsComments have been turned off. Learn more