MCPcopy Create free account
hub / github.com/OpenBMB/AgentCPM-GUI / run_episode

Function run_episode

eval/run_predict_minicpm.py:73–77  ·  view source on GitHub ↗
(episode, msg,)

Source from the content-addressed store, hash-verified

71
72
73def run_episode(episode, msg,):
74 global _llm,_tokenizer
75 outputs = _llm.chat(image=None, msgs=msg, system_prompt=SYSTEM_PROMPT, tokenizer=_tokenizer, temperature=0.1,top_p=0.3,n=1,)
76 episode["pred"] = extract_and_validate_json(outputs)
77 return episode
78
79
80def extract_and_validate_json(input_string):

Callers

nothing calls this directly

Calls 2

chatMethod · 0.80

Tested by

no test coverage detected