rhohndorf / Auto-Llama-cpp

Uses Auto-GPT with Llama.cpp
MIT License
384 stars 68 forks source link

Fix #15 #17

Closed p3nj closed 1 year ago

p3nj commented 1 year ago

Background

Parameters passed to llm() only contain the first message.

Changes

Fix #15

Easy hack to combine all the messages together for llm()

Documentation

um... for loop and string join.

Test Plan

PR Quality Checklist

p3nj commented 1 year ago

I notice after this change every reply of llama will become

Assistent Reply
{
"thoughts": {...},
"command": {...}
}
json
{
"thoughts": {...},
"command": {...}
}
json loads error Expecting property name enclosed in double quotes: line 3 column 14 (char 16)
Error: Invalid JSON
 { "thoughts": {...}, "command": {...} }
json
{
"thoughts": {...},
"command": {...}
}
json loads error Expecting property name enclosed in double quotes: line 3 column 14 (char 16)
NEXT ACTION:  COMMAND = Error: ARGUMENTS = Invalid JSON

Probably need more testing.