add abuse labels
This commit is contained in:
parent
64321cfb0b
commit
cd18853fed
|
@ -51,6 +51,8 @@ App::post('/v1/console/assistant')
|
||||||
->label('sdk.description', '/docs/references/assistant/chat.md')
|
->label('sdk.description', '/docs/references/assistant/chat.md')
|
||||||
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
->label('sdk.response.code', Response::STATUS_CODE_OK)
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_TEXT)
|
->label('sdk.response.type', Response::CONTENT_TYPE_TEXT)
|
||||||
|
->label('abuse-limit', 15)
|
||||||
|
->label('abuse-key', 'userId:{userId}')
|
||||||
->param('query', '', new Text(2000), 'Query')
|
->param('query', '', new Text(2000), 'Query')
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->inject('user')
|
->inject('user')
|
||||||
|
|
Loading…
Reference in a new issue