@langchain/community
Version:
Third-party integrations for LangChain.js
23 lines (22 loc) • 780 B
JavaScript
/* eslint-disable no-process-env */
import { test, expect } from "@jest/globals";
import { ChatModelUnitTests } from "@langchain/standard-tests";
import { ChatOllama } from "../ollama.js";
class ChatOllamaStandardUnitTests extends ChatModelUnitTests {
constructor() {
super({
Cls: ChatOllama,
chatModelHasToolCalling: false,
chatModelHasStructuredOutput: false,
constructorArgs: {},
});
}
testChatModelInitApiKey() {
this.skipTestMessage("testChatModelInitApiKey", "ChatOllama", "API key not required.");
}
}
const testClass = new ChatOllamaStandardUnitTests();
test("ChatOllamaStandardUnitTests", () => {
const testResults = testClass.runTests();
expect(testResults).toBe(true);
});