Improve error and copy in params/models

This commit is contained in:
Vincent (Wen Yu) Ge committed 2023-08-22 20:11:33 +00:00
1 parent caf6bcae95
commit 07a7a710ee
17 files changed
+62 -62

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ App::post('/v1/console/assistant')
->label('sdk.response.type', Response::CONTENT_TYPE_TEXT)
->label('abuse-limit', 15)
->label('abuse-key', 'userId:{userId}')
->param('prompt', '', new Text(2000), 'Prompt')
->param('prompt', '', new Text(2000), 'Prompt. A string containing questions asked to the AI assistant.')
->inject('response')
->action(function (string $prompt, Response $response) {
$ch = curl_init('http://appwrite-assistant:3003/');