NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

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

Open Troray opened this issue 1 year ago • 15 comments

🥰 需求描述

使用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 avatar Jul 17 '24 19:07 Troray

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.

Issues-translate-bot avatar Jul 17 '24 19:07 Issues-translate-bot

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

nextchat-manager[bot] avatar Jul 17 '24 19:07 nextchat-manager[bot]

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

Sha1rholder avatar Jul 17 '24 19:07 Sha1rholder

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.

Issues-translate-bot avatar Jul 17 '24 19:07 Issues-translate-bot

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

哦吼。。好吧。

Troray avatar Jul 17 '24 19:07 Troray

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.

Issues-translate-bot avatar Jul 17 '24 19:07 Issues-translate-bot

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

ice-lemon avatar Jul 18 '24 01:07 ice-lemon

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

Issues-translate-bot avatar Jul 18 '24 01:07 Issues-translate-bot

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.

zoomhgtk avatar Jul 18 '24 03:07 zoomhgtk

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

Sekiro1233 avatar Jul 18 '24 03:07 Sekiro1233

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/pull/5033/files

lloydzhou avatar Jul 19 '24 00:07 lloydzhou

@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

lloydzhou avatar Jul 19 '24 01:07 lloydzhou

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

Issues-translate-bot avatar Jul 19 '24 01:07 Issues-translate-bot

@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 !

BaIGaO avatar Jul 26 '24 06:07 BaIGaO

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!

Issues-translate-bot avatar Jul 26 '24 06:07 Issues-translate-bot