feat: claude api support (#572)
This commit is contained in:
parent
510389909c
commit
7599f79a17
52 changed files with 637 additions and 349 deletions
|
|
@ -85,8 +85,8 @@ class DocumentListApi(DatasetApiResource):
|
|||
dataset_process_rule=dataset.latest_process_rule,
|
||||
created_from='api'
|
||||
)
|
||||
except ProviderTokenNotInitError:
|
||||
raise ProviderNotInitializeError()
|
||||
except ProviderTokenNotInitError as ex:
|
||||
raise ProviderNotInitializeError(ex.description)
|
||||
document = documents[0]
|
||||
if doc_type and doc_metadata:
|
||||
metadata_schema = DocumentService.DOCUMENT_METADATA_SCHEMA[doc_type]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue