Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Felixgithub2017/MMCU
/ plain_chat
Function
plain_chat
TestChatGLM.py:56–58 ·
view source on GitHub ↗
(prompt)
Source
from the content-addressed store, hash-verified
54
55
# chatglm
56
def
plain_chat(prompt):
57
response, history = model.chat(tokenizer, prompt, history=[])
58
return
response
59
60
def
read_file_lines(file):
61
with
open(file,
'r'
, errors=
'ignore'
, encoding=
'utf8'
)
as
f:
Callers
1
eval
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected