Skip to content

LangChain.js scripts import ollama.js but only ollama.ts scripts in the repo #6020

Answered by dosubot bot
smartdawg asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @smartdawg! I'm here to assist you with any bugs, questions, or contributions you have for the LangChain.js repository. I'll do my best to help while we wait for a human maintainer.

The scripts in the LangChain.js repository are importing ollama.js because the compiled JavaScript files have a .js extension, even though the source files are written in TypeScript with a .ts extension. This is a common practice in TypeScript projects where the TypeScript files are transpiled to JavaScript files for execution.

Supporting evidence from the document:

import { createOllamaGenerateStream, OllamaInput } from "../utils/ollama.js";

This import statement is referring to the compiled JavaScript f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by smartdawg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant