This repository was archived by the owner on Jul 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +0
-8
lines changed Expand file tree Collapse file tree 4 files changed +0
-8
lines changed Original file line number Diff line number Diff line change 44
44
45
45
$ response = $ chain ->call ($ messages );
46
46
47
- echo 'Albert API Response: ' .\PHP_EOL ;
48
- echo '=================== ' .\PHP_EOL ;
49
47
echo $ response ->getContent ().\PHP_EOL ;
Original file line number Diff line number Diff line change 58
58
59
59
$ response = $ chain ->call ($ messages );
60
60
61
- echo 'Albert API RAG Response: ' .\PHP_EOL ;
62
- echo '======================== ' .\PHP_EOL ;
63
61
echo $ response ->getContent ().\PHP_EOL ;
Original file line number Diff line number Diff line change 40
40
// Enable streaming for real-time response
41
41
$ response = $ chain ->call ($ messages , ['stream ' => true ]);
42
42
43
- echo 'Albert API Streaming Response: ' .\PHP_EOL ;
44
- echo '============================== ' .\PHP_EOL ;
45
43
46
44
// Stream the response token by token
47
45
foreach ($ response ->getContent () as $ token ) {
Original file line number Diff line number Diff line change @@ -76,6 +76,4 @@ public function __invoke(string $departmentNumber): array
76
76
77
77
$ response = $ chain ->call ($ messages );
78
78
79
- echo 'Albert API Tool Calling Response: ' .\PHP_EOL ;
80
- echo '================================= ' .\PHP_EOL ;
81
79
echo $ response ->getContent ().\PHP_EOL ;
You can’t perform that action at this time.
0 commit comments