Skip to content

Commit 618b812

Browse files
committed
fix:pydantic 版本兼容问题
1 parent 9d61921 commit 618b812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nonebot_plugin_fishspeech_tts/fish_audio_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async def generate_tts(self, request: ServeTTSRequest) -> bytes:
152152
response = await client.post(
153153
self.url,
154154
headers=self.headers,
155-
json=request.model_dump(),
155+
json=request.dict(),
156156
timeout=60,
157157
)
158158
return response.content

0 commit comments

Comments
 (0)