From aaf997d8d5edf21658e7488b32a57cf9334ceab7 Mon Sep 17 00:00:00 2001 From: James Sumners Date: Thu, 7 Mar 2024 13:05:10 -0500 Subject: [PATCH] chore: Changed casing of OpenAI in vendor property --- lib/llm-events/openai/event.js | 2 +- test/unit/llm-events/openai/common.js | 2 +- test/versioned/openai/common.js | 4 ++-- test/versioned/openai/embeddings.tap.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/llm-events/openai/event.js b/lib/llm-events/openai/event.js index bee79a28f..90d9ebd6b 100644 --- a/lib/llm-events/openai/event.js +++ b/lib/llm-events/openai/event.js @@ -19,7 +19,7 @@ module.exports = class LlmEvent extends BaseEvent { this.span_id = segment?.id this.transaction_id = segment?.transaction?.id this['response.model'] = response.model - this.vendor = 'openAI' + this.vendor = 'openai' this.ingest_source = 'Node' this.metadata = agent diff --git a/test/unit/llm-events/openai/common.js b/test/unit/llm-events/openai/common.js index 52ab381ec..e5c9a722a 100644 --- a/test/unit/llm-events/openai/common.js +++ b/test/unit/llm-events/openai/common.js @@ -53,7 +53,7 @@ function getExpectedResult(tx, event, type, completionId) { 'span_id': trace.children[0].id, 'transaction_id': tx.id, 'response.model': 'gpt-3.5-turbo-0613', - 'vendor': 'openAI', + 'vendor': 'openai', 'ingest_source': 'Node' } const resKeys = { diff --git a/test/versioned/openai/common.js b/test/versioned/openai/common.js index 5f1671665..1f54535c9 100644 --- a/test/versioned/openai/common.js +++ b/test/versioned/openai/common.js @@ -55,7 +55,7 @@ function assertChatCompletionMessages({ 'span_id': tx.trace.root.children[0].id, 'transaction_id': tx.id, 'response.model': model, - 'vendor': 'openAI', + 'vendor': 'openai', 'ingest_source': 'Node', 'role': 'user', 'is_response': false, @@ -103,7 +103,7 @@ function assertChatCompletionSummary({ tx, model, chatSummary, tokenUsage, error 'span_id': tx.trace.root.children[0].id, 'transaction_id': tx.id, 'response.model': model, - 'vendor': 'openAI', + 'vendor': 'openai', 'ingest_source': 'Node', 'request.model': model, 'duration': tx.trace.root.children[0].getDurationInMillis(), diff --git a/test/versioned/openai/embeddings.tap.js b/test/versioned/openai/embeddings.tap.js index 905072f7b..4d4d68e08 100644 --- a/test/versioned/openai/embeddings.tap.js +++ b/test/versioned/openai/embeddings.tap.js @@ -93,7 +93,7 @@ tap.test('OpenAI instrumentation - embedding', (t) => { 'span_id': tx.trace.root.children[0].id, 'transaction_id': tx.id, 'response.model': 'text-embedding-ada-002-v2', - 'vendor': 'openAI', + 'vendor': 'openai', 'ingest_source': 'Node', 'request.model': 'text-embedding-ada-002', 'duration': tx.trace.root.children[0].getDurationInMillis(),