fix bug
This commit is contained in:
@@ -78,9 +78,9 @@ function generatePromt(a::agent,
|
||||
if role == "system"
|
||||
prompt = replace(systemToken, "content" => content)
|
||||
elseif role == "user"
|
||||
prompt *= content * userToken
|
||||
prompt *= " " * content * userToken
|
||||
elseif role == "assistant"
|
||||
prompt *= content * assistantToken
|
||||
prompt *= " " * content * assistantToken
|
||||
else
|
||||
error("undefied condition role = $role")
|
||||
end
|
||||
@@ -144,7 +144,6 @@ end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
end # module
|
||||
Reference in New Issue
Block a user