We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c4ab6 commit 41abe67Copy full SHA for 41abe67
packages/sample-app/src/sample_dataset.ts
@@ -147,13 +147,13 @@ const main = async () => {
147
await dataset.addRow(interaction);
148
149
} catch (error) {
150
- console.log(` ⚠️ Error with prompt ${i + 1}: ${error.message}`);
+ console.log(` ⚠️ Error with prompt ${i + 1}: ${error instanceof Error ? error.message : String(error)}`);
151
152
// Add error interaction data
153
const errorInteraction = {
154
user_id: userId,
155
prompt: prompt,
156
- response: `Error: ${error.message}`,
+ response: `Error: ${error instanceof Error ? error.message : String(error)}`,
157
model: "gpt-3.5-turbo",
158
tokens_used: 0,
159
response_time_ms: Date.now() - startTime,
0 commit comments