Skip to content

Commit 1fd3d67

Browse files
committed
.
1 parent fd4f990 commit 1fd3d67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev-packages/node-integration-tests/suites/tracing/openai/truncation/scenario-message-truncation-embeddings.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function run() {
3737

3838
const client = instrumentOpenAiClient(mockClient);
3939

40-
// Create 1 large message that gets truncated to fit within the 20KB limit
40+
// Create 1 large input that gets truncated to fit within the 20KB limit
4141
const largeContent = 'A'.repeat(25000) + 'B'.repeat(25000); // ~50KB gets truncated to include only As
4242

4343
await client.embeddings.create({
@@ -47,9 +47,9 @@ async function run() {
4747
encoding_format: 'float',
4848
});
4949

50-
// Create 3 large messages where:
51-
// - First 2 messages are very large (will be dropped)
52-
// - Last message is large but will be truncated to fit within the 20KB limit
50+
// Create 3 large inputs where:
51+
// - First 2 inputs are very large (will be dropped)
52+
// - Last input is large but will be truncated to fit within the 20KB limit
5353
const largeContent1 = 'A'.repeat(15000); // ~15KB
5454
const largeContent2 = 'B'.repeat(15000); // ~15KB
5555
const largeContent3 = 'C'.repeat(25000); // ~25KB (will be truncated)

0 commit comments

Comments
 (0)