Comments (1)
It should be as simple as adding this line
openai.api_type = "azure"
To the following code block in the llm.py file
def setup_openai_env(api_base=None, api_key=None): if not openai_env['api_base']: openai_env['api_base'] = api_base if not openai_env['api_key']: openai_env['api_key'] = api_key openai.api_type = "azure" openai.api_key = openai_env['api_key'] openai.api_version = None return (openai_env['api_base'], openai_env['api_key'])
However when I add this and build my own docker image I keep getting the following error when trying to access localhost:9000 pages
chatgpt_ui-backend-web-server-1 | 2023/06/26 21:01:24 [error] 27#27: *2 connect() failed (111: Connection refused) while connecting to upstream, client: ---.--.0.1, server: localhost, request: "GET /admin/ HTTP/1.1", upstream: "http://172.25.0.2:8000/admin/", host: "localhost:9000"
from chatgpt-ui-server.
Related Issues (20)
- Isn't there any refresh token mechanism for the JWT authentication ?
- Contact details? HOT 2
- Not Found The requested resource was not found on this server. HOT 1
- 没有数据库迁移脚本,启动后找不到表
- 支持用access-token 去访问openai chatgpt吗
- http://localhost:8000/admin/ gives a black page HOT 1
- 启动邮箱验证启动报错,
- docker image的size好大,有办法瘦身吗?
- Support for LocalAI HOT 1
- 显示Empty Message。不知道是什么问题?
- 添加新功能:支持用户自己上传模型,并可选择使用自有模型还是chat模型
- 找不到管理后台的UI文件 HOT 1
- 使用 sqlite 数据库,但是连接不上
- 使用docker-compose部署,访问http://ip:9000/,后端服务报错 502 Bad Gateway
- Add gpt-4-1106-preview and gpt-4-vision-preview
- Openai lib 0.28 will soon be obsolete. Is a migration to 1.x planned?
- how How do I get the code for the admin backend? HOT 1
- Integrate with langchain
- Write a more detailed README to lists out all the features
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-ui-server.