Skip to content

My endpoint is https://azureai.myorg.org/myorg/openai/deployments/gpt4o/chat/completions... #77

@hoclun-rigsep

Description

@hoclun-rigsep

My endpoint is https://azureai.myorg.org/myorg/openai/deployments/gpt4o/chat/completions and it works when I use it with curl. Can I use it with openai-clojure? How? I've tried different substrings of that url as the value for endpoint but there must be something I'm just not getting.

E.g. here is a curl invocation that works:

curl --location 'https://azureai.myorg.org/myorg/openai/deployments/gpt4o/chat/completions?api-version=2025-01-01-preview' \
--header 'api-key: xxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
    "temperature": 1,
    "top_p": 1,
    "stream": false,
    "stop": null,
    "max_tokens": 4096,
    "presence_penalty": 0,
    "frequency_penalty": 0,
    "logit_bias": {},
    "user": "user-1234",
    "messages": [
        {
            "role": "system",
            "content":"Hi"
        }
    ]
}

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