Skip to content

Commit

Permalink
chore: Changed casing of OpenAI in vendor property
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Mar 7, 2024
1 parent d2faf1a commit aaf997d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/llm-events/openai/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/unit/llm-events/openai/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions test/versioned/openai/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/openai/embeddings.tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit aaf997d

Please sign in to comment.