feat: [backend] vision support (#1510)
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
This commit is contained in:
parent
d0e1ea8f06
commit
41d0a8b295
61 changed files with 1563 additions and 300 deletions
|
|
@ -25,6 +25,7 @@ class UniversalChatApi(UniversalChatResource):
|
|||
|
||||
parser = reqparse.RequestParser()
|
||||
parser.add_argument('query', type=str, required=True, location='json')
|
||||
parser.add_argument('files', type=list, required=False, location='json')
|
||||
parser.add_argument('conversation_id', type=uuid_value, location='json')
|
||||
parser.add_argument('provider', type=str, required=True, location='json')
|
||||
parser.add_argument('model', type=str, required=True, location='json')
|
||||
|
|
@ -60,6 +61,8 @@ class UniversalChatApi(UniversalChatResource):
|
|||
del args['model']
|
||||
del args['tools']
|
||||
|
||||
args['auto_generate_name'] = False
|
||||
|
||||
try:
|
||||
response = CompletionService.completion(
|
||||
app_model=app_model,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue