* 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>
This commit is contained in:
imClumsyPanda 2023-06-07 21:26:31 +08:00 committed by GitHub
parent 57b4f9306d
commit 14c34516ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class ChatGLM(BaseAnswer, LLM, ABC):
for inum, (stream_resp, _) in enumerate(self.checkPoint.model.stream_chat(
self.checkPoint.tokenizer,
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,
temperature=self.temperature
)):

View File

@ -33,7 +33,7 @@ export default defineConfig((env) => {
plugins: setupPlugins(viteEnv),
server: {
host: '0.0.0.0',
port: 1002,
port: 8090,
open: false,
proxy: {
'/api': {