Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
keepingitneil committed Sep 18, 2024
1 parent 874e470 commit 87e1320
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ def chat(
if not self._sync_openai_task:
self._sync_openai_task = asyncio.create_task(self._sync_openai())

print("NEIL chatting with", chat_ctx)
return AssistantLLMStream(
temperature=temperature,
assistant_llm=self,
Expand Down Expand Up @@ -409,18 +408,14 @@ async def _create_stream(self) -> None:
"event_handler": eh,
"temperature": self._temperature,
}
print("NEIL kwargs", kwargs)
if self._fnc_ctx:
kwargs["tools"] = [
llm._oai_api.build_oai_function_description(f)
for f in self._fnc_ctx.ai_functions.values()
]

try:
async with self._client.beta.threads.runs.stream(**kwargs) as stream:
await stream.until_done()
except Exception as e:
print("NEIL error", e)
async with self._client.beta.threads.runs.stream(**kwargs) as stream:
await stream.until_done()

await self._output_queue.put(None)

Expand Down

0 comments on commit 87e1320

Please sign in to comment.