You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev-packages/node-integration-tests/suites/tracing/openai/truncation/scenario-message-truncation-embeddings.mjs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ async function run() {
37
37
38
38
constclient=instrumentOpenAiClient(mockClient);
39
39
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
41
41
constlargeContent='A'.repeat(25000)+'B'.repeat(25000);// ~50KB gets truncated to include only As
42
42
43
43
awaitclient.embeddings.create({
@@ -47,9 +47,9 @@ async function run() {
47
47
encoding_format: 'float',
48
48
});
49
49
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
53
53
constlargeContent1='A'.repeat(15000);// ~15KB
54
54
constlargeContent2='B'.repeat(15000);// ~15KB
55
55
constlargeContent3='C'.repeat(25000);// ~25KB (will be truncated)
0 commit comments