Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita6bca71

Browse files
restore audio inspect_history (stanfordnlp#8336)
1 parent3e1185f commita6bca71

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎dspy/utils/inspect_history.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def pretty_print_history(history, n: int = 1):
4141
else:
4242
image_str=f"<image_url:{c['image_url']['url']}>"
4343
print(_blue(image_str.strip()))
44+
elifc["type"]=="input_audio":
45+
audio_format=c["input_audio"]["format"]
46+
len_audio=len(c["input_audio"]["data"])
47+
audio_str=f"<audio format='{audio_format}' base64-encoded, length={len_audio}>"
48+
print(_blue(audio_str.strip()))
4449
print("\n")
4550

4651
ifisinstance(outputs[0],dict):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp