diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b341b08..0770f92 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,10 +4,7 @@
-
-
-
-
+
@@ -80,7 +77,7 @@
-
+
@@ -226,7 +223,15 @@
1704760514718
-
+
+
+ 1704760592118
+
+
+
+ 1704760592118
+
+
@@ -252,6 +257,7 @@
-
+
+
\ No newline at end of file
diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py
index 7a10a80..5695478 100644
--- a/src/cogs/ollama.py
+++ b/src/cogs/ollama.py
@@ -226,7 +226,7 @@ class Ollama(commands.Cog):
json={
"model": model,
"prompt": query,
- "format": "json",
+ # "format": "json",
"system": system_prompt,
"stream": True
}
@@ -244,7 +244,9 @@ class Ollama(commands.Cog):
last_update = time.time()
async for line in self.ollama_stream(response.content):
- embed.description += line["response"].strip()
+ if not line["response"].strip("\n\r"):
+ continue
+ embed.description += line["response"]
embed.timestamp = discord.utils.utcnow()
if len(embed.description) >= 4096:
embed.description = embed.description[:4093] + "..."