Open wang2nd opened 1 year ago
Should be supported in 0.12.0. Just use the other constructor.
Thanks!
Should be supported in 0.12.0. Just use the other constructor.
I figured it out, the OpenAIService class you referenced here is a deprecated version, and as its comment "/**
I will switch to the Client library or just customize service library version through the OpenAIApi constructor as showed in readme. to see whether it works, but at the same time, please update the service library accordingly, below is a screenshot to prove service library is out of date
I m using the OpenAIService.java in the Service library and its source codes clearly still the old version,
Thanks,
I can change the base url by customizing, but don't think it will work without other changes for Azure, due to its actual deployment path
here is the python version to support it
import os
import openai
openai.api_type = "azure"
openai.api_base = "https://myorganization-openai-test-1.openai.azure.com/"
openai.api_version = "2023-03-15-preview"
openai.api_key = os.getenv("OPENAI_API_KEY")
response = openai.ChatCompletion.create(
engine="myorganizationDeployement",
messages = [],
temperature=0.7,
max_tokens=800,
top_p=0.95,
frequency_penalty=0,
presence_penalty=0,
stop=None)
Yeah, prob need to create a new service constructor w/ a flag as the paths are diff enough.
The python SDK support it so I assume not only the kernel, model, but also the interfaces are same.