fix : llamacpp handler problem
This commit is contained in:
1 parent
ddb533a255
commit
5862c98f3e
1 file changed
+1
-1
@@ -29,7 +29,7 @@ class LlamacppLLM(GeneratorLLM):
|
||||
messages = history
|
||||
)
|
||||
with self.state.lock:
|
||||
self.state.current_buffer = output
|
||||
self.state.current_buffer = output['choices'][0]['content']
|
||||
except Exception as e:
|
||||
self.logger.error(f"Error: {e}")
|
||||
finally:
|
||||
|
||||
Reference in new issue
Block a user