ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
74.84k stars 58.95k forks source link

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

Open Troray opened 1 month ago

Troray commented 1 month ago

🥰 需求描述

使用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

Issues-translate-bot commented 1 month ago

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[bot] commented 1 month ago

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

Sha1rholder commented 1 month ago

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

Issues-translate-bot commented 1 month ago

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 commented 1 month ago

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

哦吼。。好吧。

Issues-translate-bot commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

lloydzhou commented 1 month ago

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

lloydzhou commented 1 month ago

@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 commented 1 month ago

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 commented 1 month ago

@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 commented 1 month ago

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!