在http开启流式输出的情况下,我希望在sse内部向主程序传递一个列表chathistory。请问该怎么写?下面的写法,运行报错
$= _context.GetRootContext().SetVarValue("变量名", 值) 这样试试。
像列表、词典这样的数据,写“值”的时候,该怎么写呢?
我用下面这个,报错了。看上去是因为chathistory作为一个列表,自带换行符。换行符导致出错了。
$$$=_context.GetRootContext().SetVarValue("chathistory", {chathistory})
该怎么协调这个矛盾呢?需要向主程序传递的是列表。而SetVarValue的时候,会因为列表带有的换行而出错。
$$$=_context.GetRootContext().SetVarValue("chathistory", {chathistory}) ; 不能这样混写
$= _context.GetRootContext().SetVarValue("变量名", 值) ; 只能这样写
这样用此函数,先声明变量 2,3 再用此函数 1 不用输出变量 4 这样就将列表变量 t=>b
https://getquicker.net/subprogram?id=4a1ad4cf-4f46-4fa9-de65-08dda4d051bb