Closed TaoPeiLing closed 9 months ago
can you show your .env setting about llm ?
感谢你的回复。下面是我的环境设置。`#***#
WEB_SERVER_PORT=7860
LLM_MODEL=zhipu_proxyllm PROXY_SERVER_URL=https://open.bigmodel.cn/api/paas/v4 ZHIPU_MODEL_VERSION=v4 ZHIPU_PROXY_API_KEY=0e843c5ff6598a4d3bcdc3baddc80a4b.qNoZbSysGuNe1L8j
MODEL_SERVER=http://127.0.0.1:8000 LIMIT_MODEL_CONCURRENCY=5 MAX_POSITION_EMBEDDINGS=4096 QUANTIZE_QLORA=True QUANTIZE_8bit=True
EMBEDDING_MODEL=text2vec
KNOWLEDGE_CHUNK_SIZE=500 KNOWLEDGE_SEARCH_TOP_SIZE=5
KNOWLEDGE_CHAT_SHOW_RELATIONS=False
KNOWLEDGE_SEARCH_REWRITE=False
LOCAL_DB_TYPE=sqlite
EXECUTE_LOCAL_COMMANDS=False
ALLOWLISTED_PLUGINS= DENYLISTED_PLUGINS=
VECTOR_STORE_TYPE=Chroma
LANGUAGE=zh
PROXY_API_KEY={your-openai-sk} PROXY_SERVER_URL=https://api.openai.com/v1/chat/completions
BARD_PROXY_API_KEY={your-bard-token}
TONGYI_PROXY_API_KEY={your-tongyi-sk}
SUMMARY_CONFIG=FAST
DBGPT_LOG_LEVEL=INFO
打扰您了,十分抱歉。关于我的模型不存在的问题,我的env文件配置如下:
WEB_SERVER_PORT=7860
LLM_MODEL=zhipu_proxyllm
LLM_MODEL_PATH=/usr/local/miniconda3/lib/python3.11/site-packages/zhipuai
MODEL_SERVER=http://127.0.0.1:8000 LIMIT_MODEL_CONCURRENCY=5 MAX_POSITION_EMBEDDINGS=4096 QUANTIZE_QLORA=True QUANTIZE_8bit=True
EMBEDDING_MODEL=text2vec
KNOWLEDGE_CHUNK_SIZE=500 KNOWLEDGE_SEARCH_TOP_SIZE=5
KNOWLEDGE_CHAT_SHOW_RELATIONS=False
KNOWLEDGE_SEARCH_REWRITE=False
LOCAL_DB_TYPE=sqlite
EXECUTE_LOCAL_COMMANDS=False
ALLOWLISTED_PLUGINS= DENYLISTED_PLUGINS=
VECTOR_STORE_TYPE=Chroma
LANGUAGE=zh
PROXY_API_KEY={your-openai-sk} PROXY_SERVER_URL=https://api.openai.com/v1/chat/completions
BARD_PROXY_API_KEY={your-bard-token}
TONGYI_PROXY_API_KEY={your-tongyi-sk}
PROXY_SERVER_URL=https://open.bigmodel.cn/api/paas/v4 ZHIPU_PROXY_API_KEY=0e843c5ff6598a4d3bcdc3baddc80a4b.qNoZbSysGuNe1L8j
SUMMARY_CONFIG=FAST
DBGPT_LOG_LEVEL=INFO
-_- @.***
其中,我也设置了语言LANGUAGE=zh,但是也没有生效。我运行起来之后,还是英文。十分期待您的帮助和解答。祝您生活愉快。 ------------------ 原始邮件 ------------------ 发件人: "eosphoros-ai/DB-GPT" @.>; 发送时间: 2024年1月20日(星期六) 上午10:18 @.>; @.**@.>; 主题: Re: [eosphoros-ai/DB-GPT] [1211][模型不存在,请检查模型代码。] (error_code: 1) (Issue #1093)
can you show your .env setting about llm ?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
你能展示一下你的 llm 的 .env 设置吗?
The issue has been resolved, but I still appreciate your reply very much.
how you resolved plz?
你能展示一下你的 llm 的 .env 设置吗?
The issue has been resolved, but I still appreciate your reply very much.
根据安装文档,通过源码部署,成功启动DB-GPT。但是开启问话时,就提示了“模型不存在,请检查模型代码”的问题。是否和我下载的pip install zhipuai的路径有关?我是在Db-gpt的主目录中执行pip install zhipuai的。不知道是否可以帮忙指导下。
[1211][模型不存在,请检查模型代码。]2024-01-19 21:24:42 DB-GPT dbgpt.model.cluster.worker.default_worker[6101] INFO is_first_generate, usage: None
full stream output: [1211][模型不存在,请检查模型代码。]
model generate_stream params: {'model': 'zhipu_proxyllm', 'messages': [ModelMessage(role='human', content='你好', round_index=1), ModelMessage(role='ai', content='[1211][模型不存在,请检查模型代码。] (error_code: 1)', round_index=1), ModelMessage(role='human', content='你好', round_index=2), ModelMessage(role='ai', content='[1211][模型不存在,请检查模型代码。] (error_code: 1)', round_index=2), ModelMessage(role='human', content='hi', round_index=3), ModelMessage(role='ai', content='[1211][模型不存在,请检查模型代码。] (error_code: 1)', round_index=3), ModelMessage(role='human', content='hi', round_index=4), ModelMessage(role='ai', content='[1211][模型不存在,请检查模型代码。] (error_code: 1)', round_index=4), ModelMessage(role='human', content='你是一个有用的 AI 助手。\nhi', round_index=0)], 'temperature': 0.6, 'max_new_tokens': 1024, 'echo': False, 'span_id': '32146930-31ba-4a01-8302-fff430878390:1d31155a-20c9-4bba-b05d-323b2cfac4d9', 'context': {'stream': True, 'cache_enable': False, 'user_name': None, 'sys_code': None, 'conv_uid': None, 'span_id': '32146930-31ba-4a01-8302-fff430878390:6d434afd-ced5-407c-a183-ff4a335ae88f', 'chat_mode': 'chat_normal', 'extra': {}, 'request_id': None}, 'convert_to_compatible_format': False, 'string_prompt': 'human: 你好\nai: [1211][模型不存在,请检查模型代码。] (error_code: 1)\nhuman: 你好\nai: [1211][模型不存在,请检查模型代码。] (error_code: 1)\nhuman: hi\nai: [1211][模型不存在,请检查模型代码。] (error_code: 1)\nhuman: hi\nai: [1211][模型不存在,请检查模型代码。] (error_code: 1)\nhuman: 你是一个有用的 AI 助手。\nhi'}