Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 76a02d2

Browse files
committed
refactor: simplify Albert examples output
- Remove headers from example outputs - Keep only the response content output - Make examples consistent with other examples in the project
1 parent 1a9bd2b commit 76a02d2

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

examples/albert/chat.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,4 @@
4444

4545
$response = $chain->call($messages);
4646

47-
echo 'Albert API Response:'.\PHP_EOL;
48-
echo '==================='.\PHP_EOL;
4947
echo $response->getContent().\PHP_EOL;

examples/albert/rag.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,4 @@
5858

5959
$response = $chain->call($messages);
6060

61-
echo 'Albert API RAG Response:'.\PHP_EOL;
62-
echo '========================'.\PHP_EOL;
6361
echo $response->getContent().\PHP_EOL;

examples/albert/stream.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
// Enable streaming for real-time response
4141
$response = $chain->call($messages, ['stream' => true]);
4242

43-
echo 'Albert API Streaming Response:'.\PHP_EOL;
44-
echo '=============================='.\PHP_EOL;
4543

4644
// Stream the response token by token
4745
foreach ($response->getContent() as $token) {

examples/albert/toolcall.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,4 @@ public function __invoke(string $departmentNumber): array
7676

7777
$response = $chain->call($messages);
7878

79-
echo 'Albert API Tool Calling Response:'.\PHP_EOL;
80-
echo '================================='.\PHP_EOL;
8179
echo $response->getContent().\PHP_EOL;

0 commit comments

Comments
 (0)