Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure申请的openai找不到比较完善的教程 #5048

Open
Troray opened this issue Jul 17, 2024 · 15 comments
Open

azure申请的openai找不到比较完善的教程 #5048

Troray opened this issue Jul 17, 2024 · 15 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@Troray
Copy link

Troray commented Jul 17, 2024

🥰 需求描述

使用vercel.com云容器,azure申请的openai找不到比较完善的教程。
假如我的终结点是:https://verabc-openai.openai.azure.com/ (AZ左上角显示verabc-openai)
密钥1:abbd
密钥2:defg
部署的模型名称为:az-gpt
模型选择的是:gpt-4o

此时我在部署好的后台尝试过N多种组合,都是404错误:

{
  "error": {
    "code": "404",
    "message": "Resource not found"
  }
}

也通过搜索引擎找了不少教程但是都失败了。。。

那么我该如何填写才是正确的呢?

🧐 解决方案

期望更详细的教程。

📝 补充信息

No response

@Troray Troray added the enhancement New feature or request label Jul 17, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Azure applied for openai and could not find a relatively complete tutorial.

@nextchat-manager
Copy link

Please follow the issue template to update title and description of your issue.

@Sha1rholder
Copy link

在写azure openai使用教程之前,得先等修复相关的bug。目前azure openai有几个可能导致不可使用的bug

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Before writing azure openai usage tutorial, you have to wait for the relevant bugs to be fixed. Currently, Azure OpenAI has several bugs that may cause it to be unusable.

@Troray
Copy link
Author

Troray commented Jul 17, 2024

在写azure openai使用教程之前,得先等修复相关的bug。目前azure openai有几个可能导致不可使用的bug

哦吼。。好吧。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Before writing azure openai usage tutorial, you must first wait for the relevant bugs to be fixed. Currently, Azure OpenAI has several bugs that may cause it to be unusable.

Oh ho. . All right.

@ice-lemon
Copy link

ice-lemon commented Jul 18, 2024

AZURE_URL https://verabc-openai.openai.azure.com/openai/deployments
AZURE_API_VERSION 2024-02-15-preview
AZURE_API_KEY defg
CUSTOM_MODELS +gpt-4o@azure=az-gpt
在Vercel对应项目的环境变量中按照以上配置,另外密钥可以在这个网址查看https://ai.azure.com/resource,选择对应资源的密钥,不是密钥1、或密钥2
image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


AZURE_URL https://verabc-openai.openai.azure.com/openai/deployments
AZURE_API_VERSION 2024-02-15-preview
AZURE_API_KEY defg
CUSTOM_MODELS +gpt-4o@azure=az-gpt
Follow the above configuration in the environment variables of the corresponding project of Vercel

@zoomhgtk
Copy link

Per my experience, one of the most common reason for 404, is that you might be using model version instead of API version. I have been blocked by this one for a long period of time. Hopefully your API version is correct.

@Sekiro1233
Copy link

rollback to an earlier version, such as two weeks ago, that would work.
AZURE_URL https://verabc-openai.openai.azure.com/openai/deployments/az-gpt
AZURE_API_VERSION whatever
AZURE_APIKEY abbd/defg
CUSTOM_MODELS just fill in nothing

@Dogtiti Dogtiti added the documentation Improvements or additions to documentation label Jul 18, 2024
@lloydzhou
Copy link
Contributor

@lloydzhou
Copy link
Contributor

@Troray

假如我的终结点是:https://verabc-openai.openai.azure.com/ (AZ左上角显示verabc-openai)
密钥1:abbd
部署的模型名称为:az-gpt
模型选择的是:gpt-4o

  1. AZURE_URL=https://verabc-openai.openai.azure.com/openai
  2. CUSTOM_MODELS=-all,gpt-4o@azure=az-gpt

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@Troray

Suppose my endpoint is: https://verabc-openai.openai.azure.com/ (verabc-openai is displayed in the upper left corner of AZ)
Key 1: abbd
The deployed model name is: az-gpt
The model selected is: gpt-4o

  1. AZURE_URL=https://verabc-openai.openai.azure.com/openai
  2. CUSTOM_MODELS=-all,gpt-4o@azure=az-gpt

@BaIGaO
Copy link

BaIGaO commented Jul 26, 2024

@Troray

假如我的终结点是:https://verabc-openai.openai.azure.com/ (AZ左上角显示verabc-openai)
密钥1:abbd
部署的模型名称为:az-gpt
模型选择的是:gpt-4o

  1. AZURE_URL=https://verabc-openai.openai.azure.com/openai
  2. CUSTOM_MODELS=-all,gpt-4o@azure=az-gpt
    it's work in v2.13.1 windows app !

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@Troray

Suppose my endpoint is: https://verabc-openai.openai.azure.com/ (verabc-openai is displayed in the upper left corner of AZ)
Key 1: abbd
The deployed model name is: az-gpt
The model selected is: gpt-4o

  1. AZURE_URL=https://verabc-openai.openai.azure.com/openai
  2. CUSTOM_MODELS=-all,gpt-4o@azure=az-gpt
    it's work in v2.13.1 windows app!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants