-
-
Notifications
You must be signed in to change notification settings - Fork 296
Using assistant/thread/run #147
Copy link
Copy link
Open
Description
Describe the feature or improvement you're requesting
I'm trying to use assistant with 4o. Problem is that I cannot get an answer. How to do it?
Here is my code so far:
$open_ai = new OpenAi(self::OPEN_AI_KEY);
$open_ai->setAssistantsBetaVersion("v2");
$thread = $open_ai->createThread([
'messages' => [
[
'role' => 'user',
'content' => 'miasto: tarnowskie Góry, osoby: 2 dorosłe, aktywność: zabytki',
],
],
]);
$threadResult = json_decode($thread);
$data = [
'assistant_id' => self::ASSISTANT_ID,
];
$run = $open_ai->createRun($threadResult->id, $data);
var_dump($run);Now what? How to get final anwser?
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels