Comments (2)
举例: extra_model_metadata 设置如下时
"extra_model_metadata": {
"DeepSeek V2": {
"model_name": "deepseek-chat",
"description": "This is DeepSeek's powerful open source LLM.",
"model_type": "OpenAIVision",
"multimodal": false,
"api_host": "https://api.deepseek.com",
"api_key": "sk-xxxxxxxx",
"token_limit": 4096,
"system": "You are a helpful AI assistant.",
"placeholder": {
"logo": "https://avatars.githubusercontent.com/u/148330874",
}
},
},
OpenAIVision.py 里 __init__()
, _get_response()
, _single_query_at_once()
三个函数中的变量分别为
self.api_host https://api.deepseek.com
self.chat_completion_url https://api.deepseek.com/v1/chat/completions
self.images_completion_url https://api.deepseek.com/v1/images/generations
self.openai_api_base https://api.deepseek.com/v1
self.balance_api_url https://api.deepseek.com/dashboard/billing/credit_grants
self.usage_api_url https://api.deepseek.com/dashboard/billing/usage
shared.state.chat_completion_url https://api.openai.com/v1/chat/completions
CHAT_COMPLETION_URL https://api.openai.com/v1/chat/completions
但 requests.post()
时的 url 为 shared.state.chat_completion_url
,应更正为 self.chat_completion_url
#1125 。更正后运行正常
from chuanhuchatgpt.
我看看
from chuanhuchatgpt.
Related Issues (20)
- 前台网页回答对话框显示空白,后台日志正常。
- [功能请求]: Mermaid 流程图 HOT 1
- [Bug]: 手机上访问切换模型无法显示完全,或很难选取列表最下面的模型 HOT 2
- [本地部署]: Azure OpenAI调用错误,部署报错openai_api_key为空 HOT 2
- [本地部署]: chatglm2-6b本地模型无法使用,确认是在models/文件夹下
- [Bug]: 裁剪 PDF 文件首页(使用 pdfplumber 包获取的首页) 标题存在异常
- [本地部署]: 前端进度条显示问题 HOT 2
- [Bug]: BaseLLMModel.init() got an unexpected keyword argument 'api_key'
- [功能请求]: add preset model Gemini 1.5 Pro
- [Bug]: 本地部署的模型切换时,如果不等模型A分配到显卡上就切换另外一个模型B,会导致显示B而实际上调用A
- [功能请求]: GPT4o 已经发布,希望添加模型GPT4o HOT 2
- [功能请求]: 请问可以添加对moonshot的支持吗,即kimi的API,我自己写了个简单的demo发到request了
- [本地部署]: 页面提问后,过大约一小时左右继续提问,前端显示error
- [其他]: 前端页面中关于代码运行结果的部分是不是显示的太过于暗
- [Bug]: 循环引用的问题会导致无法使用知识库功能 HOT 1
- Incorrect API key provided HOT 1
- [功能请求]: 希望支持通义千问API , 以及讯飞星火的Spark Pro以及Spark3.5 Max
- [功能请求]: 新版本gradio报错
- [功能请求]: 新版本gradio部署在服务器(docker方式)上报错 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 chuanhuchatgpt.