Skip to content

Cannot use Azure OpenAI as a Chatcraft LLM provider - <redacted>-eastus2.cognitiveservices.azure.com/models is not a valid URL.  #877

Description

@yurhasko

I've configured an Azure OpenAI service deployment in Azure AI Foundry and tried hitting the following request:

curl -X POST "https://<redacted>-eastus2.cognitiveservices.azure.com/openai/deployments/gpt-4.1/chat/completions?api-version=2025-01-01-preview" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $AZURE_API_KEY" \
    -d '{
        "messages": [
            {
                "role": "user",
                "content": "Test request to see whether this works"
            }
        ],
        "max_completion_tokens": 800,
        "temperature": 1,
        "top_p": 1,
        "frequency_penalty": 0,
        "presence_penalty": 0,
        "model": "gpt-4.1"
    }' | jq .

And it returns a valid result. However, when I try adding Azure OpenAI as a custom provider in Chatcraft, it says:

Image

Looking at https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#authentication, it seems that /models isn't available, and instead a per-model deployment URL approach is being used. Does it mean that Chatcraft doesn't have Azure OpenAI service support atm, or am I doing something wrong?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions