I absolutely stand corrected
Here’s the (currently partially broken) github repo of azure assistant examples: https://github.com/Azure-Samples/azureai-samples/tree/main/scenarios/Assistants/assistants-api-in-a-box
Now I’m not sure what I’m advertising but I don’t really appreciate the insinuation
(unless it’s a compliment, considering self-advertisement would imply that I own microsoft
)
drama aside:
Anyways, the answer is somewhat stupid: they screwed up the url concatenation for assistants; there’s a double slash //
url = "{your resource}.azure.com//openai/assistants?api-version=2024-02-15-preview"
headers = {
"Content-Type": "application/json",
"api-key": f"{azure_openai_api_key}",
"OpenAI-Beta": "assistants=v1"
}
as opposed to completions:
url = "https://{your resource}.azure.com/openai/deployments/{your deployment}/chat/completions?api-version=2023-07-01-preview"
