feat: claude api support (#572)
This commit is contained in:
parent
510389909c
commit
7599f79a17
52 changed files with 637 additions and 349 deletions
|
|
@ -27,8 +27,8 @@ class IntroductionGenerateApi(Resource):
|
|||
account.current_tenant_id,
|
||||
args['prompt_template']
|
||||
)
|
||||
except ProviderTokenNotInitError:
|
||||
raise ProviderNotInitializeError()
|
||||
except ProviderTokenNotInitError as ex:
|
||||
raise ProviderNotInitializeError(ex.description)
|
||||
except QuotaExceededError:
|
||||
raise ProviderQuotaExceededError()
|
||||
except ModelCurrentlyNotSupportError:
|
||||
|
|
@ -58,8 +58,8 @@ class RuleGenerateApi(Resource):
|
|||
args['audiences'],
|
||||
args['hoping_to_solve']
|
||||
)
|
||||
except ProviderTokenNotInitError:
|
||||
raise ProviderNotInitializeError()
|
||||
except ProviderTokenNotInitError as ex:
|
||||
raise ProviderNotInitializeError(ex.description)
|
||||
except QuotaExceededError:
|
||||
raise ProviderQuotaExceededError()
|
||||
except ModelCurrentlyNotSupportError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue