Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assistants API not working with Azure OpenAI #190

Open
surki01 opened this issue Sep 11, 2024 · 2 comments
Open

Assistants API not working with Azure OpenAI #190

surki01 opened this issue Sep 11, 2024 · 2 comments
Labels
research This needs some researching

Comments

@surki01
Copy link

surki01 commented Sep 11, 2024

Hello,

I hope this message finds you well. I am getting "Not implemented" error when trying to use Assistants API with Azure OpenAI.

When checked through the issues/PRs, I observed that this was implemented through these PR.

#73
#72

Is there anything wrong with my understanding or the code that I am trying out? Can you please help on this?

`HttpClient httpClient = HttpClient.newBuilder().build();
SimpleOpenAIAzure openAI = SimpleOpenAIAzure.builder()
.apiKey("xxxxxxxxxxxxxxxxxx")
.baseUrl("https://xxxxxxxxxxxxxx.openai.azure.com/openai/deployments/xxxxxxxxxx")
.apiVersion("xxxxxxxxxxxxxxxxx")
.httpClient(httpClient)
.build();

var assistantRequest = AssistantRequest.builder()
.model("gpt-4o-mini")
.instructions("You are a skilled tutor on geo-politic topics.")
.build();

var futureAssistant = openAI.assistants().create(assistantRequest);
var assistantResponse = futureAssistant.join();`

@sashirestela
Copy link
Owner

@surki01 Thanks for using simple-openai. You're right. Our colleague @the-gigi developed a first version for that, however, we realized that the Azure Assistant API was not well supported and incomplete at the time, so we decided to deprecate it for a while. Currently, the supported services for Azure are: Chat Completions (full) and Files.

@sashirestela sashirestela added the research This needs some researching label Sep 14, 2024
@surki01
Copy link
Author

surki01 commented Sep 14, 2024

@sashirestela Got it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research This needs some researching
Projects
None yet
Development

No branches or pull requests

2 participants