Replies: 1 comment
-
请参考 https://github.com/GaiZhenbiao/ChuanhuChatGPT/wiki/使用教程#设置用户登录密码
注意一下,用户名和密码需要是字符串,也就是说,前后务必加上"引号 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我安装后面注释的写"users": [[name, passwd], [name, passwd]],
就一直会报错:
Traceback (most recent call last):
File "/home/ecs-user/ChuanhuChatGPT/myenv/lib/python3.11/site-packages/commentjson/commentjson.py", line 180, in loads
parsed = _remove_trailing_commas(parser.parse(text))
^^^^^^^^^^^^^^^^^^
File "/home/ecs-user/ChuanhuChatGPT/myenv/lib/python3.11/site-packages/lark/lark.py", line 311, in parse
return self.parser.parse(text, start=start)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecs-user/ChuanhuChatGPT/myenv/lib/python3.11/site-packages/lark/parser_frontends.py", line 89, in parse
return self._parse(token_stream, start, *[sps] if sps is not NotImplemented else [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecs-user/ChuanhuChatGPT/myenv/lib/python3.11/site-packages/lark/parser_frontends.py", line 54, in _parse
return self.parser.parse(input, start, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecs-user/ChuanhuChatGPT/myenv/lib/python3.11/site-packages/lark/parsers/lalr_parser.py", line 36, in parse
return self.parser.parse(*args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ecs-user/ChuanhuChatGPT/myenv/lib/python3.11/site-packages/lark/parsers/lalr_parser.py", line 84, in parse
for token in stream:
File "/home/ecs-user/ChuanhuChatGPT/myenv/lib/python3.11/site-packages/lark/lexer.py", line 373, in lex
for x in l.lex(stream, self.root_lexer.newline_types, self.root_lexer.ignore_types):
File "/home/ecs-user/ChuanhuChatGPT/myenv/lib/python3.11/site-packages/lark/lexer.py", line 174, in lex
raise UnexpectedCharacters(stream, line_ctr.char_pos, line_ctr.line, line_ctr.column, allowed=allowed, state=self.state, token_history=last_token and [last_token])
lark.exceptions.UnexpectedCharacters: No terminal defined for 'z' at line 23 col 16
账号密码部分省略
Expecting: {'LBRACE', 'FALSE', 'SIGNED_NUMBER', 'NULL', 'TRUE', 'LSQB', 'ESCAPED_STRING', 'RSQB', 'TRAILING_COMMA'}
Previous tokens: Token(LSQB, '[')
昨天折腾了大半天,主要就是这个问题,最后就放弃了
‘,’后面加空格,不加空格都试了,一样的报错,包括我另一个提的模型填写,也是按照模版格式,都是不对
Beta Was this translation helpful? Give feedback.
All reactions