From e21ba31e0456887c2448568965456b13d98ab0ab Mon Sep 17 00:00:00 2001 From: zipped <100anonyo@gmail.com> Date: Mon, 22 Apr 2024 00:37:35 +0000 Subject: [PATCH] message history --- tests/main.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/main.py b/tests/main.py index 60485cf..ad8ee95 100644 --- a/tests/main.py +++ b/tests/main.py @@ -6,5 +6,17 @@ from src import cria -ai = cria.Cria(capture_output=True) -output = ai. +ai = cria.Cria() + + +context = "Our AI system employed a hybrid approach combining reinforcement learning and generative adversarial networks (GANs) to optimize the decision-making..." +messages = [ + {"role": "system", "content": "You are a technical documentation writer"}, + {"role": "user", "content": context}, +] + +prompt = "Write some documentation using the text I gave you." +for chunk in ai.chat(messages=messages, prompt=prompt): + print( + chunk, end="" + ) # AI System Optimization: Hybrid Approach Combining Reinforcement Learning and...