Unverified 提交 14c34516 作者: imClumsyPanda 提交者: GitHub

Dev (#572)

* feat(webui): update port number in Vite config file from 1002 to 8090

* update chatglm_llm.py

---------

Co-authored-by: NieLamu <mxmxlty@gmail.com>
Co-authored-by: fxjhello <127916299+fxjhello@users.noreply.github.com>
上级 57b4f930
...@@ -52,7 +52,7 @@ class ChatGLM(BaseAnswer, LLM, ABC): ...@@ -52,7 +52,7 @@ class ChatGLM(BaseAnswer, LLM, ABC):
for inum, (stream_resp, _) in enumerate(self.checkPoint.model.stream_chat( for inum, (stream_resp, _) in enumerate(self.checkPoint.model.stream_chat(
self.checkPoint.tokenizer, self.checkPoint.tokenizer,
prompt, prompt,
history=history[-self.history_len:] if self.history_len > 0 else [], history=history[-self.history_len:-1] if self.history_len > 1 else [],
max_length=self.max_token, max_length=self.max_token,
temperature=self.temperature temperature=self.temperature
)): )):
......
...@@ -33,7 +33,7 @@ export default defineConfig((env) => { ...@@ -33,7 +33,7 @@ export default defineConfig((env) => {
plugins: setupPlugins(viteEnv), plugins: setupPlugins(viteEnv),
server: { server: {
host: '0.0.0.0', host: '0.0.0.0',
port: 1002, port: 8090,
open: false, open: false,
proxy: { proxy: {
'/api': { '/api': {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论