@langchain/community
Version:
Third-party integrations for LangChain.js
20 lines (19 loc) • 715 B
JavaScript
/* eslint-disable no-process-env */
import { test, expect } from "@jest/globals";
import { ChatModelIntegrationTests } from "@langchain/standard-tests";
import { ChatTogetherAI } from "../togetherai.js";
class ChatTogetherAIStandardIntegrationTests extends ChatModelIntegrationTests {
constructor() {
super({
Cls: ChatTogetherAI,
chatModelHasToolCalling: true,
chatModelHasStructuredOutput: true,
constructorArgs: {},
});
}
}
const testClass = new ChatTogetherAIStandardIntegrationTests();
test("ChatTogetherAIStandardIntegrationTests", async () => {
const testResults = await testClass.runTests();
expect(testResults).toBe(true);
});