Spaces:
Paused
Paused
Commit ·
c49c790
1
Parent(s): a527b07
test
Browse files- app/main.py +2 -0
app/main.py
CHANGED
|
@@ -644,6 +644,8 @@ async def chat_completions(request: OpenAIRequest, api_key: str = Depends(get_ap
|
|
| 644 |
# Pass the manually unquoted bytes to the UTF-8 decoder
|
| 645 |
if bytes_for_utf8_decoder:
|
| 646 |
current_unquoted_bytes = bytes(bytes_for_utf8_decoder)
|
|
|
|
|
|
|
| 647 |
try:
|
| 648 |
decoded_text = utf8_decoder.decode(current_unquoted_bytes, final=False)
|
| 649 |
print(f"Decoder yielded: {decoded_text!r}")
|
|
|
|
| 644 |
# Pass the manually unquoted bytes to the UTF-8 decoder
|
| 645 |
if bytes_for_utf8_decoder:
|
| 646 |
current_unquoted_bytes = bytes(bytes_for_utf8_decoder)
|
| 647 |
+
# *** ADDED DEBUG LOG ***
|
| 648 |
+
print(f"DEBUG: Bytes passed to UTF-8 decoder: {current_unquoted_bytes!r}")
|
| 649 |
try:
|
| 650 |
decoded_text = utf8_decoder.decode(current_unquoted_bytes, final=False)
|
| 651 |
print(f"Decoder yielded: {decoded_text!r}")
|