Skip to content

Commit cf5e56c

Browse files
committed
.
1 parent 6406fa1 commit cf5e56c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • dev-packages/browser-integration-tests/suites/tracing/ai-providers/langchain

dev-packages/browser-integration-tests/suites/tracing/ai-providers/langchain/mocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Mock LangChain Chat Model for browser testing
2-
export class MockChatModel {
2+
export class MockChatAnthropic {
33
constructor(params) {
44
this._model = params.model;
55
this._temperature = params.temperature;
@@ -46,7 +46,7 @@ export class MockChatModel {
4646
generations: [
4747
[
4848
{
49-
text: 'Mock response from LangChain!',
49+
text: 'Mock response from Anthropic!',
5050
generationInfo: {
5151
finish_reason: 'stop',
5252
},

dev-packages/browser-integration-tests/suites/tracing/ai-providers/langchain/subject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { createLangChainCallbackHandler } from '@sentry/browser';
2-
import { MockChatModel } from './mocks.js';
2+
import { MockChatAnthropic } from './mocks.js';
33

44
const callbackHandler = createLangChainCallbackHandler({
55
recordInputs: false,
66
recordOutputs: false,
77
});
88

9-
const chatModel = new MockChatModel({
9+
const chatModel = new MockChatAnthropic({
1010
model: 'claude-3-haiku-20240307',
1111
temperature: 0.7,
1212
maxTokens: 100,

0 commit comments

Comments
 (0)