{"_id":"@basproul/mistralai","_rev":"12-a45b86b30aaab15ed04a0935f5886bf3","time":{"created":"2023-12-20T20:57:21.616Z","0.0.5":"2023-12-20T00:20:50.637Z","modified":"2023-12-20T21:04:55.067Z","0.0.6":"2023-12-20T01:18:57.154Z","0.0.7":"2023-12-20T01:38:09.516Z","0.0.9":"2023-12-20T01:48:37.374Z","0.0.10":"2023-12-20T20:46:17.331Z","0.0.12":"2023-12-20T20:57:21.888Z","0.0.13":"2023-12-20T21:04:54.781Z"},"name":"@basproul/mistralai","dist-tags":{"latest":"0.0.12","beta":"0.0.13"},"versions":{"0.0.12":{"name":"@basproul/mistralai","version":"0.0.12","description":"MistralAI integration for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+ssh://git@github.com/langchain-ai/langchainjs.git"},"scripts":{"build":"yarn clean && yarn build:deps && yarn build:esm && yarn build:cjs && yarn build:scripts","build:deps":"yarn run turbo:command build --filter=@langchain/core","build:esm":"NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests","build:cjs":"NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rm -rf dist-cjs","build:watch":"node scripts/create-entrypoints.js && tsc --outDir dist/ --watch","build:scripts":"node scripts/create-entrypoints.js && node scripts/check-tree-shaking.js","lint":"NODE_OPTIONS=--max-old-space-size=4096 eslint src && dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint:fix":"yarn lint --fix","clean":"rm -rf dist/ && NODE_OPTIONS=--max-old-space-size=4096 node scripts/create-entrypoints.js pre","prepack":"yarn build","release":"release-it --ci --config .release-it.json","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","format":"prettier --write \"src\"","format:check":"prettier --check \"src\""},"author":{"name":"LangChain"},"license":"MIT","dependencies":{"@langchain/core":"~0.1.3","@mistralai/mistralai":"^0.0.7"},"devDependencies":{"@jest/globals":"^29.5.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","@tsconfig/recommended":"^1.0.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","dotenv":"^16.3.1","dpdm":"^3.12.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.27.5","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^15.10.1","rollup":"^4.5.2","ts-jest":"^29.1.0","typescript":"<5.2.0"},"publishConfig":{"access":"public"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"_id":"@basproul/mistralai@0.0.12","bugs":{"url":"https://github.com/langchain-ai/langchainjs/issues"},"homepage":"https://github.com/langchain-ai/langchainjs#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-G8ZnZc2bFyzw2lmDclrPMQBrROq02uHgmlTB4+4Uz4crjZ69OgIUEh/fw0aPjX9Zb1m4/p23LOSL/AsaMzeBCA==","shasum":"b9cf14b9a4edac61d1151fcc58e85781c25e7ea1","tarball":"https://registry.npmjs.org/@basproul/mistralai/-/mistralai-0.0.12.tgz","fileCount":15,"unpackedSize":44286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDypiNV3/3YOiTePJ9XpwdUJOKQWIJjFe7nnZRhMQxtqAiEApDXSpsYa7UyTJ3TAXsE2H4huPgFuy1Qva0HfqXcRy1A="}]},"_npmUser":{"name":"basproul","email":"braceasproul@gmail.com"},"directories":{},"maintainers":[{"name":"basproul","email":"braceasproul@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mistralai_0.0.12_1703105841730_0.3705770387770446"},"_hasShrinkwrap":false},"0.0.13":{"name":"@basproul/mistralai","version":"0.0.13","description":"MistralAI integration for LangChain.js","type":"module","engines":{"node":">=18"},"main":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+ssh://git@github.com/langchain-ai/langchainjs.git"},"scripts":{"build":"yarn clean && yarn build:deps && yarn build:esm && yarn build:cjs && yarn build:scripts","build:deps":"yarn run turbo:command build --filter=@langchain/core","build:esm":"NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests","build:cjs":"NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rm -rf dist-cjs","build:watch":"node scripts/create-entrypoints.js && tsc --outDir dist/ --watch","build:scripts":"node scripts/create-entrypoints.js && node scripts/check-tree-shaking.js","lint":"NODE_OPTIONS=--max-old-space-size=4096 eslint src && dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts","lint:fix":"yarn lint --fix","clean":"rm -rf dist/ && NODE_OPTIONS=--max-old-space-size=4096 node scripts/create-entrypoints.js pre","prepack":"yarn build","release":"release-it --ci --config .release-it.json","test":"NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts","test:single":"NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000","test:int":"NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%","format":"prettier --write \"src\"","format:check":"prettier --check \"src\""},"author":{"name":"LangChain"},"license":"MIT","dependencies":{"@langchain/core":"~0.1.3","@mistralai/mistralai":"^0.0.7"},"devDependencies":{"@jest/globals":"^29.5.0","@swc/core":"^1.3.90","@swc/jest":"^0.2.29","@tsconfig/recommended":"^1.0.3","@typescript-eslint/eslint-plugin":"^6.12.0","@typescript-eslint/parser":"^6.12.0","dotenv":"^16.3.1","dpdm":"^3.12.0","eslint":"^8.33.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-prettier":"^8.6.0","eslint-plugin-import":"^2.27.5","eslint-plugin-no-instanceof":"^1.0.1","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-environment-node":"^29.6.4","prettier":"^2.8.3","release-it":"^15.10.1","rollup":"^4.5.2","ts-jest":"^29.1.0","typescript":"<5.2.0"},"publishConfig":{"access":"public"},"exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"_id":"@basproul/mistralai@0.0.13","readme":"# @langchain/mistralai\n\nThis package contains the LangChain.js integrations for Mistral through their SDK.\n\n## Installation\n\n```bash npm2yarn\nnpm install @langchain/mistralai\n```\n\nThis package, along with the main LangChain package, depends on [`@langchain/core`](https://npmjs.com/package/@langchain/core/).\nIf you are using this package with other LangChain packages, you should make sure that all of the packages depend on the same instance of @langchain/core.\nYou can do so by adding appropriate field to your project's `package.json` like this:\n\n```json\n{\n  \"name\": \"your-project\",\n  \"version\": \"0.0.0\",\n  \"dependencies\": {\n    \"@langchain/mistralai\": \"^0.0.0\",\n    \"langchain\": \"0.0.207\"\n  },\n  \"resolutions\": {\n    \"@langchain/core\": \"0.1.2\"\n  },\n  \"overrides\": {\n    \"@langchain/core\": \"0.1.2\"\n  },\n  \"pnpm\": {\n    \"overrides\": {\n      \"@langchain/core\": \"0.1.2\"\n    }\n  }\n}\n```\n\nThe field you need depends on the package manager you're using, but we recommend adding a field for the common `yarn`, `npm`, and `pnpm` to maximize compatibility.\n\n## Chat Models\n\nThis package contains the `ChatMistralAI` class, which is the recommended way to interface with the Mistral series of models.\n\nTo use, install the requirements, and configure your environment.\n\n```bash\nexport MISTRAL_API_KEY=your-api-key\n```\n\nThen initialize\n\n```typescript\nimport { ChatMistralAI } from \"@langchain/mistralai\";\n\nconst model = new ChatMistralAI({\n  apiKey: process.env.MISTRAL_API_KEY,\n  modelName: \"mistral-small\",\n});\nconst response = await model.invoke(new HumanMessage(\"Hello world!\"));\n```\n\n### Streaming\n\n```typescript\nimport { ChatMistralAI } from \"@langchain/mistralai\";\n\nconst model = new ChatMistralAI({\n  apiKey: process.env.MISTRAL_API_KEY,\n  modelName: \"mistral-small\",\n});\nconst response = await model.stream(new HumanMessage(\"Hello world!\"));\n```\n\n## Embeddings\n\nThis package also adds support for Mistral's embeddings model.\n\n```typescript\nimport { MistralAIEmbeddings } from \"@langchain/mistralai\";\n\nconst embeddings = new MistralAIEmbeddings({\n  apiKey: process.env.MISTRAL_API_KEY,\n});\nconst res = await embeddings.embedQuery(\"Hello world\");\n```\n\n## Development\n\nTo develop the Mistral package, you'll need to follow these instructions:\n\n### Install dependencies\n\n```bash\nyarn install\n```\n\n### Build the package\n\n```bash\nyarn build\n```\n\nOr from the repo root:\n\n```bash\nyarn build --filter=@langchain/mistralai\n```\n\n### Run tests\n\nTest files should live within a `tests/` file in the `src/` folder. Unit tests should end in `.test.ts` and integration tests should\nend in `.int.test.ts`:\n\n```bash\n$ yarn test\n$ yarn test:int\n```\n\n### Lint & Format\n\nRun the linter & formatter to ensure your code is up to standard:\n\n```bash\nyarn lint && yarn format\n```\n\n### Adding new entrypoints\n\nIf you add a new file to be exported, either import & re-export from `src/index.ts`, or add it to `scripts/create-entrypoints.js` and run `yarn build` to generate the new entrypoint.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/langchain-ai/langchainjs/issues"},"homepage":"https://github.com/langchain-ai/langchainjs#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-1nnQEfBjAkUka1hrMVCRPP2hWit4AUHbyTotYujwefyK4bhqxUc4hOFMkD4LlXF2c8Vur3h66fJA0Ky2jrqNaA==","shasum":"c7f99619e458e322178561ca5c872552afd00a61","tarball":"https://registry.npmjs.org/@basproul/mistralai/-/mistralai-0.0.13.tgz","fileCount":15,"unpackedSize":44286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDB+PcLN7ZP1jt5hha3GFhAszGOxmhg90snB8HZjppB2AiEA1x71ot8s9tqm99PVa42heWGfz3MN+9nXdjRTnHriB40="}]},"_npmUser":{"name":"basproul","email":"braceasproul@gmail.com"},"directories":{},"maintainers":[{"name":"basproul","email":"braceasproul@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mistralai_0.0.13_1703106294628_0.7065793931246132"},"_hasShrinkwrap":false}},"maintainers":[{"name":"basproul","email":"braceasproul@gmail.com"}],"description":"MistralAI integration for LangChain.js","homepage":"https://github.com/langchain-ai/langchainjs#readme","repository":{"type":"git","url":"git+ssh://git@github.com/langchain-ai/langchainjs.git"},"author":{"name":"LangChain"},"bugs":{"url":"https://github.com/langchain-ai/langchainjs/issues"},"license":"MIT","readme":"","readmeFilename":""}