Skip to content

Commit 1815f22

Browse files
committed
Don't send metadata
1 parent 04bec7d commit 1815f22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llms/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ async def chat(self, chat):
522522
chat = await process_chat(chat)
523523
_log(f"POST {self.chat_url}")
524524
_log(chat_summary(chat))
525+
# remove metadata if any (conflicts with some providers, e.g. Z.ai)
526+
chat.pop('metadata', None)
525527

526528
async with aiohttp.ClientSession() as session:
527529
started_at = time.time()

0 commit comments

Comments
 (0)