Comments (7)
简单看了一下 他应该用的也是官方openai库 参照教程改环境变量即可
from gpt_api_free.
gpt-academic应该也是用的openai官方库,参照教程改环境变量即可
from gpt_api_free.
我在 huggingface 中部署,是不是修改 config.py中的以下内容即可?
重新URL重新定向,实现更换API_URL的作用(常规情况下,不要修改!!)
| # (高危设置!通过修改此设置,您将把您的API-KEY和对话隐私完全暴露给您设定的中间人!)
| # 格式 {"https://api.openai.com/v1/chat/completions": "在这里填写重定向的api.openai.com的URL"}
| # 例如 API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://ai.open.com/api/conversation"}
| API_URL_REDIRECT = {"https://api.chatanywhere.cn/v1/chat/completions": "https://api.chatanywhere.cn"}
我试了一下还是不行,还需要修改什么吗?我是小白……搞不太明白。
from gpt_api_free.
API_URL_REDIRECT = {"https://api.openai.com/v1/chat/completions": "https://api.chatanywhere.cn/v1/chat/completions"}
应该是这样吧
from gpt_api_free.
谢谢你的帮助~
from gpt_api_free.
可否添加对开源项目ChatPaper的支持?
需要如何在源码中修改反向代理?
from gpt_api_free.
Set OPENAI_API_BASE environment variable
os.environ["OPENAI_API_BASE"] = "https://api.chatanywhere.cn/v1"
简单看了一下 他应该用的也是官方openai库 参照教程改环境变量即可
from gpt_api_free.
Related Issues (20)
- Webpilot为什么说Invalid Key HOT 1
- zotero里面GPT用不了 HOT 2
- 不可以使用Langchain连接 HOT 1
- insufficient_quota
- 本地调试是返回中文内容,放到另一个主机上就返回英文内容了
- zotero-gpt中使用出错 提示“Incorrect API key provided" HOT 1
- token计算问题.app,查询后台,计算示例网页各自的结果都不同. HOT 3
- 支持Obsidian吗? HOT 1
- [Enhancement] 什么时候计划集成gpt-4o呢? HOT 2
- [Enhancement]请问能否支持dbever HOT 4
- demo.py报错chunk.choices[0].delta.content list index out of range HOT 1
- 免费的api key不支持官方的API HOT 1
- 现在的价格还有折扣吗? HOT 1
- 使用langchain写这个免费的gpt的接口 好像一直连不上 HOT 2
- API key调用失败 HOT 2
- VIP通道响应速度会不会比普通KEY快? HOT 5
- zotero gpt的askpdf功能失效,但是换用了openai的官方api后是可以用的,所以排除了zotero gpt插件的问题 HOT 6
- 作者您好,zotero使用gpt无法翻译 HOT 1
- 免费API报错403 HOT 4
- https://chatanywhere.cn/进不去了 HOT 1
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 gpt_api_free.