ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] Azure api 配置不生效

Open
#4,796 10 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### Bug Description

使用了通用配置https://XXXX/openai/deployments/{deploy-name}不生效。不会自动替换{deploy-name}字段。请帮忙看看是什么地方配置错误。
docker run -d -p 4000:3000 -e "AZURE_URL=https://XXXXX.openai.azure.com/openai/deployments/{deploy-name}" -e AZURE_API_KEY=XXXXX -e AZURE_API_VERSION=2024-02-15-preview -e AZURE_OPENAI_MODEL_MAPPER="gpt-3.5-turbo=gpt-35-turbo" -e CUSTOM_MODELS=-all,+gpt-4o,+gpt-35-turbo yidadaa/chatgpt-next-web

### Steps to Reproduce

更新了app到最新版,将部署名改成和模型名字一致,也加入过AZURE_OPENAI_MODEL_MAPPER,都无法生效。

### Expected Behavior

请帮忙查看问题所在,谢谢

### Screenshots

![24f1c1d9ac688dd1f521df2d4341e4d](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/164491750/eda054d4-cc2e-42dd-a87f-001bb93654b4)
![image](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/164491750/8b54dbbc-f9ea-413f-849c-e91c3fe62b8d)
![image](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/164491750/4e7d891f-97fe-4e7d-94b6-f6910bdf2649)

### Deployment Method

- [X] Docker
- [ ] Vercel
- [ ] Server

### Desktop OS

window11

### Desktop Browser

chrome

### Desktop Browser Version

_No response_

### Smartphone Device

_No response_

### Smartphone OS

_No response_

### Smartphone Browser

_No response_

### Smartphone Browser Version

_No response_

### Additional Logs

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.