Я использую модель amazon.titan-text-express-v1
Вот мой код в php:
Код: Выделить всё
$request = (object) [
"inputText" => $prompt,
"textGenerationConfig" => (object) [
"maxTokenCount" => 3072,
"stopSequences" => [],
"temperature" => 0.7,
"topP" => 0.9,
]
];
$result = $this->bedrockRuntimeClient->invokeModel([
'contentType' => 'application/json',
'body' => json_encode($request),
'modelId' => $this->modelId,
]);
Подробнее здесь: https://stackoverflow.com/questions/788 ... the-result
Мобильная версия