2
0
ParthSareen 7 сар өмнө
parent
commit
45e336502e

+ 1 - 1
examples/structured_outputs/structured-outputs-image.ts

@@ -70,7 +70,7 @@ async function run(model: string) {
         // Parse and validate the response
         try {
             const imageAnalysis = ImageDescriptionSchema.parse(JSON.parse(response.message.content));
-            console.log('\nImage Analysis:', imageAnalysis, '\n');
+            console.log('Image Analysis:', imageAnalysis);
         } catch (error) {
             console.error("Generated invalid response:", error);
         }

+ 1 - 2
examples/structured_outputs/structured-outputs.ts

@@ -60,9 +60,8 @@ async function run(model: string) {
 
     // Parse and validate the response
     try {
-        console.log('\n', response.message.content, '\n');
         const friendsResponse = FriendListSchema.parse(JSON.parse(response.message.content));
-        console.log('\n', friendsResponse, '\n');
+        console.log(friendsResponse);
     } catch (error) {
         console.error("Generated invalid response:", error);
     }