Skip to content

Commit 78908ab

Browse files
committed
wip: test/versioned/google-genai
1 parent 36914db commit 78908ab

File tree

9 files changed

+1192
-2
lines changed

9 files changed

+1192
-2
lines changed

lib/instrumentation/@google/genai.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function recordChatCompletionMessages({
9393

9494
// Only take the first response message and append to input messages
9595
// request.contents can be a string or an array of strings
96-
// response.candidates is an array of candidates (choices), we only take the first one
96+
// response.candidates is an array of candidates (choices); we only take the first one
9797
const inputMessages = Array.isArray(request.contents) ? request.contents : [request.contents]
9898
const responseMessage = response?.candidates?.[0]?.content
9999
const messages = responseMessage !== undefined ? [...inputMessages, responseMessage] : inputMessages

test/unit/instrumentation/@google/genai.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const helper = require('../../../lib/agent_helper')
1010
const GenericShim = require('../../../../lib/shim/shim')
1111
const sinon = require('sinon')
1212

13-
test('@google/genai unit.tests', async (t) => {
13+
test('@google/genai unit tests', async (t) => {
1414
t.beforeEach(function (ctx) {
1515
ctx.nr = {}
1616
const sandbox = sinon.createSandbox()

0 commit comments

Comments
 (0)