Skip to content

Commit

Permalink
message history
Browse files Browse the repository at this point in the history
  • Loading branch information
leftmove committed Apr 22, 2024
1 parent 1de0ebb commit e21ba31
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...

0 comments on commit e21ba31

Please sign in to comment.