Skip to content

Commit

Permalink
fix: fixed chink debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovik committed Dec 13, 2023
1 parent dae0015 commit eb45ba5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aidial_sdk/chat_completion/choice.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from asyncio import Queue
from types import TracebackType
from typing import Any, List, Optional, Type
Expand Down Expand Up @@ -54,7 +55,7 @@ def __exit__(
return False

def _enqueue(self, chunk: BaseChunk) -> None:
log_debug("added chunk:\n", chunk.to_dict())
log_debug("chunk: " + json.dumps(chunk.to_dict()))
self._queue.put_nowait(chunk)

def append_content(self, content: str) -> None:
Expand Down

0 comments on commit eb45ba5

Please sign in to comment.