Skip to content

Commit

Permalink
add conversation to gemni
Browse files Browse the repository at this point in the history
  • Loading branch information
acer-king committed Oct 17, 2024
1 parent 27a04a1 commit c990997
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miner/providers/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ def __init__(self, synapse):

async def _prompt(self, synapse: StreamPrompting, send: Send):
stream = []
prompt = " ".join([m['content'] for m in synapse.messages if m['content']])
try:
stream = self.genai_model.generate_content(
str(self.messages),
prompt,
stream=True,
generation_config=genai.types.GenerationConfig(
temperature=self.temperature,
Expand Down

0 comments on commit c990997

Please sign in to comment.