mirror of https://github.com/Mai-with-u/MaiBot.git
fix
parent
e2d277fd7c
commit
4c8a1dd665
|
|
@ -598,14 +598,14 @@ class GeminiClient(BaseClient):
|
||||||
self,
|
self,
|
||||||
model_info: ModelInfo,
|
model_info: ModelInfo,
|
||||||
audio_base64: str,
|
audio_base64: str,
|
||||||
max_tokens: int = 1024,
|
max_tokens: int = 2048,
|
||||||
extra_params: dict[str, Any] | None = None,
|
extra_params: dict[str, Any] | None = None,
|
||||||
) -> APIResponse:
|
) -> APIResponse:
|
||||||
"""
|
"""
|
||||||
获取音频转录
|
获取音频转录
|
||||||
:param model_info: 模型信息
|
:param model_info: 模型信息
|
||||||
:param audio_base64: 音频文件的Base64编码字符串
|
:param audio_base64: 音频文件的Base64编码字符串
|
||||||
:param max_tokens: 最大输出token数(默认1024)
|
:param max_tokens: 最大输出token数(默认2048)
|
||||||
:param extra_params: 额外参数(可选)
|
:param extra_params: 额外参数(可选)
|
||||||
:return: 转录响应
|
:return: 转录响应
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue