feat/enhance the multi-modal support (#8818)

This commit is contained in:
-LAN- 2024-10-21 10:43:49 +08:00 committed by GitHub
commit e61752bd3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
267 changed files with 6263 additions and 3523 deletions

View file

@ -1,4 +1,4 @@
from collections.abc import Generator
from collections.abc import Generator, Mapping
from typing import Any, Union
from openai._exceptions import RateLimitError
@ -23,7 +23,7 @@ class AppGenerateService:
cls,
app_model: App,
user: Union[Account, EndUser],
args: Any,
args: Mapping[str, Any],
invoke_from: InvokeFrom,
streaming: bool = True,
):