openai-translator / raycast-openai-translator

基于 ChatGPT API 的 Raycast 翻译插件 - Raycast extension for translation based on ChatGPT API.
MIT License
416 stars 27 forks source link

fix the Azure OpenAI Service endpoint url error. #9

Closed romainshen closed 1 year ago

romainshen commented 1 year ago

Azure OpenAI Service API Entrypoint:https://${resourceName}.openai.azure.com/openai/deployments/${deployName}/completions?api-version=${apiVersion} should be: https://${resourceName}.openai.azure.com/openai/deployments/${deployName}/chat/completions?api-version=${apiVersion}

douo commented 1 year ago

Thanks!