From e20f4606dffe7e1a95ed3cfc08efe446dfbcc3a2 Mon Sep 17 00:00:00 2001 From: ericcccliu Date: Sat, 30 Mar 2024 01:44:25 -0500 Subject: [PATCH] add printing --- .../__pycache__/openai.cpython-311.pyc | Bin 1430 -> 1478 bytes api/utils/llm_providers/openai.py | 1 + 2 files changed, 1 insertion(+) diff --git a/api/utils/llm_providers/__pycache__/openai.cpython-311.pyc b/api/utils/llm_providers/__pycache__/openai.cpython-311.pyc index 7b29d9a3322a492b221c8b397620d5f6ec8e68a1..21509e1ae1dc966642d8ce83ed8dc14ce6a805fe 100644 GIT binary patch delta 233 zcmbQneT_SHq-MFgDHr delta 184 zcmX@cJ&l`pIWI340}y;;Voxic$a{n71H;7U4|r-=!WqICrZX}!^k{7U$XLwC$Tc~Y z*<D l2YJ~XO(%b6F=LdQtj8+Fs65$|HBm-@5ojnTQ6vD=0RU6pEiC{5 diff --git a/api/utils/llm_providers/openai.py b/api/utils/llm_providers/openai.py index b427d6f..3f8deda 100644 --- a/api/utils/llm_providers/openai.py +++ b/api/utils/llm_providers/openai.py @@ -20,4 +20,5 @@ async def openai_generate_response(conversation): content = chunk.choices[0].delta.content if content is None: content = "" + print(content) yield content \ No newline at end of file