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>
This commit is contained in:
parent
57b4f9306d
commit
14c34516ba
|
|
@ -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
|
||||
)):
|
||||
|
|
|
|||
|
|
@ -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': {
|
||||
|
|
|
|||
Loading…
Reference in New Issue