bramses / chatgpt-md

A (nearly) seamless integration of ChatGPT into Obsidian.
MIT License
824 stars 61 forks source link

Endpoint on Azure #83

Closed xu23ai closed 1 year ago

xu23ai commented 1 year ago

Hi I hope someone is able to advise, thank you. I can use this great with a normal openai endpoint and it works.

I am using the Azure endpoint which looks like this in the front matter. And yes I did update the key.

system_commands: xxx url: https://mydomain.openai.azure.com/openai/deployments/gpt35turbo/chat/completions?api-version=2023-03-15-preview temperature: 0.0 top_p: 1 max_tokens: 512 presence_penalty: 1 frequency_penalty: 1 stream: true stop: null n: 1 model: gpt-35-turbo

I have tried hardcoding it in the main file, variations on the model as either what is above or gpt-3.5-turbo. tried enclosing url in " url ", get the same error problem with the url string.