Compare commits

..

2 Commits

Author SHA1 Message Date
thucpn d751af3ba1 fix: use tsx 2024-12-20 17:15:41 +07:00
thucpn 6e0bf26566 fix: add start command for stackblitz 2024-12-20 17:11:32 +07:00
74 changed files with 654 additions and 5702 deletions
-15
View File
@@ -1,20 +1,5 @@
# @llamaindex/doc
## 0.0.35
### Patch Changes
- Updated dependencies [5dec9f9]
- Updated dependencies [fd9c829]
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- @llamaindex/cloud@2.0.21
- llamaindex@0.8.31
- @llamaindex/core@0.4.20
- @llamaindex/node-parser@0.0.21
- @llamaindex/openai@0.1.45
- @llamaindex/readers@1.0.22
## 0.0.34
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/doc",
"version": "0.0.35",
"version": "0.0.34",
"private": true,
"scripts": {
"build": "pnpm run build:docs && next build",
@@ -1,13 +1,5 @@
# @llamaindex/cloudflare-worker-agent-test
## 0.0.127
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
## 0.0.126
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloudflare-worker-agent-test",
"version": "0.0.127",
"version": "0.0.126",
"type": "module",
"private": true,
"scripts": {
@@ -1,13 +1,5 @@
# @llamaindex/llama-parse-browser-test
## 0.0.41
### Patch Changes
- Updated dependencies [5dec9f9]
- Updated dependencies [fd9c829]
- @llamaindex/cloud@2.0.21
## 0.0.40
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/llama-parse-browser-test",
"private": true,
"version": "0.0.41",
"version": "0.0.40",
"type": "module",
"scripts": {
"dev": "vite",
-8
View File
@@ -1,13 +1,5 @@
# @llamaindex/next-agent-test
## 0.1.127
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
## 0.1.126
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-agent-test",
"version": "0.1.127",
"version": "0.1.126",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,13 +1,5 @@
# test-edge-runtime
## 0.1.126
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
## 0.1.125
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/nextjs-edge-runtime-test",
"version": "0.1.126",
"version": "0.1.125",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,13 +1,5 @@
# @llamaindex/next-node-runtime
## 0.0.108
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
## 0.0.107
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-node-runtime-test",
"version": "0.0.108",
"version": "0.0.107",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,13 +1,5 @@
# @llamaindex/waku-query-engine-test
## 0.0.127
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
## 0.0.126
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/waku-query-engine-test",
"version": "0.0.127",
"version": "0.0.126",
"type": "module",
"private": true,
"scripts": {
-11
View File
@@ -1,16 +1,5 @@
# examples
## 0.0.22
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
- @llamaindex/core@0.4.20
- @llamaindex/vercel@0.0.7
- @llamaindex/readers@1.0.22
## 0.0.21
### Patch Changes
+5 -5
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/examples",
"private": true,
"version": "0.0.22",
"version": "0.0.21",
"dependencies": {
"@ai-sdk/openai": "^1.0.5",
"@aws-crypto/sha256-js": "^5.2.0",
@@ -9,9 +9,9 @@
"@azure/identity": "^4.4.1",
"@azure/search-documents": "^12.1.0",
"@datastax/astra-db-ts": "^1.4.1",
"@llamaindex/core": "^0.4.20",
"@llamaindex/readers": "^1.0.22",
"@llamaindex/vercel": "^0.0.7",
"@llamaindex/core": "^0.4.19",
"@llamaindex/readers": "^1.0.21",
"@llamaindex/vercel": "^0.0.6",
"@llamaindex/workflow": "^0.0.8",
"@notionhq/client": "^2.2.15",
"@pinecone-database/pinecone": "^4.0.0",
@@ -22,7 +22,7 @@
"commander": "^12.1.0",
"dotenv": "^16.4.5",
"js-tiktoken": "^1.0.14",
"llamaindex": "^0.8.31",
"llamaindex": "^0.8.28",
"mongodb": "^6.7.0",
"pathe": "^1.1.2",
"postgres": "^3.4.4"
-8
View File
@@ -1,13 +1,5 @@
# @llamaindex/autotool
## 5.0.31
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
## 5.0.30
### Patch Changes
@@ -1,14 +1,5 @@
# @llamaindex/autotool-01-node-example
## 0.0.74
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
- @llamaindex/autotool@5.0.31
## 0.0.73
### Patch Changes
@@ -13,5 +13,5 @@
"scripts": {
"start": "node --import tsx --import @llamaindex/autotool/node ./src/index.ts"
},
"version": "0.0.74"
"version": "0.0.73"
}
@@ -1,14 +1,5 @@
# @llamaindex/autotool-02-next-example
## 0.1.118
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
- @llamaindex/autotool@5.0.31
## 0.1.117
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool-02-next-example",
"private": true,
"version": "0.1.118",
"version": "0.1.117",
"scripts": {
"dev": "next dev",
"build": "next build",
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool",
"type": "module",
"version": "5.0.31",
"version": "5.0.30",
"description": "auto transpile your JS function to LLM Agent compatible",
"files": [
"dist",
@@ -70,7 +70,7 @@
"@swc/types": "^0.1.12",
"@types/json-schema": "^7.0.15",
"@types/node": "^22.9.0",
"bunchee": "6.2.0",
"bunchee": "6.0.3",
"llamaindex": "workspace:*",
"next": "15.0.3",
"rollup": "^4.28.1",
-9
View File
@@ -1,14 +1,5 @@
# @llamaindex/cloud
## 2.0.21
### Patch Changes
- 5dec9f9: chore: bump sdk deps version
- fd9c829: chore: bump llamacloud openapi
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 2.0.20
### Patch Changes
+3 -9
View File
@@ -10,13 +10,7 @@ export default defineConfig({
format: "prettier",
lint: "eslint",
},
plugins: [
"@hey-api/schemas",
"@hey-api/sdk",
{
enums: "javascript",
identifierCase: "preserve",
name: "@hey-api/typescript",
},
],
types: {
enums: "javascript",
},
});
+190 -4694
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloud",
"version": "2.0.21",
"version": "2.0.20",
"type": "module",
"license": "MIT",
"scripts": {
@@ -50,11 +50,11 @@
"directory": "packages/cloud"
},
"devDependencies": {
"@hey-api/client-fetch": "^0.6.0",
"@hey-api/openapi-ts": "^0.61.0",
"@hey-api/client-fetch": "^0.4.4",
"@hey-api/openapi-ts": "^0.56.0",
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*",
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"peerDependencies": {
"@llamaindex/core": "workspace:*",
-2
View File
@@ -118,7 +118,6 @@ export class LlamaParseReader extends FileReader {
structured_output?: boolean | undefined;
structured_output_json_schema?: string | undefined;
structured_output_json_schema_name?: string | undefined;
extract_layout?: boolean | undefined;
// numWorkers is implemented in SimpleDirectoryReader
stdout?: WriteStream | undefined;
@@ -249,7 +248,6 @@ export class LlamaParseReader extends FileReader {
structured_output_json_schema: this.structured_output_json_schema,
structured_output_json_schema_name:
this.structured_output_json_schema_name,
extract_layout: this.extract_layout,
} satisfies {
[Key in keyof Body_upload_file_api_v1_parsing_upload_post]-?:
| Body_upload_file_api_v1_parsing_upload_post[Key]
-7
View File
@@ -1,12 +1,5 @@
# @llamaindex/community
## 0.0.78
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 0.0.77
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/community",
"description": "Community package for LlamaIndexTS",
"version": "0.0.78",
"version": "0.0.77",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
@@ -43,7 +43,7 @@
},
"devDependencies": {
"@types/node": "^22.9.0",
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@aws-sdk/client-bedrock-agent-runtime": "^3.706.0",
-6
View File
@@ -1,11 +1,5 @@
# @llamaindex/core
## 0.4.20
### Patch Changes
- d211b7a: added support for tool calls with results in message history for athropic agent
## 0.4.19
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/core",
"type": "module",
"version": "0.4.20",
"version": "0.4.19",
"description": "LlamaIndex Core Module",
"exports": {
"./agent": {
@@ -391,7 +391,7 @@
"devDependencies": {
"@edge-runtime/vm": "^4.0.4",
"ajv": "^8.17.1",
"bunchee": "6.2.0",
"bunchee": "6.0.3",
"happy-dom": "^15.11.6",
"natural": "^8.0.1"
},
+1 -1
View File
@@ -125,7 +125,7 @@
"@huggingface/transformers": "^3.0.2",
"@types/node": "^22.9.0",
"@types/readable-stream": "^4.0.15",
"bunchee": "6.2.0",
"bunchee": "6.0.3",
"gpt-tokenizer": "^2.6.2",
"pathe": "^1.1.2",
"vitest": "^2.1.5"
-8
View File
@@ -1,13 +1,5 @@
# @llamaindex/experimental
## 0.0.143
### Patch Changes
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- llamaindex@0.8.31
## 0.0.142
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/experimental",
"description": "Experimental package for LlamaIndexTS",
"version": "0.0.143",
"version": "0.0.142",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
-24
View File
@@ -1,29 +1,5 @@
# llamaindex
## 0.8.31
### Patch Changes
- d211b7a: added support for tool calls with results in message history for athropic agent
- 0ebbfc1: fix: clean up docstore when generating embedding fail
- Updated dependencies [5dec9f9]
- Updated dependencies [fd9c829]
- Updated dependencies [d211b7a]
- @llamaindex/cloud@2.0.21
- @llamaindex/anthropic@0.0.29
- @llamaindex/core@0.4.20
- @llamaindex/node-parser@0.0.21
- @llamaindex/clip@0.0.29
- @llamaindex/deepinfra@0.0.29
- @llamaindex/huggingface@0.0.29
- @llamaindex/ollama@0.0.36
- @llamaindex/openai@0.1.45
- @llamaindex/portkey-ai@0.0.29
- @llamaindex/replicate@0.0.29
- @llamaindex/readers@1.0.22
- @llamaindex/groq@0.0.44
- @llamaindex/vllm@0.0.15
## 0.8.30
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "llamaindex",
"version": "0.8.31",
"version": "0.8.30",
"license": "MIT",
"type": "module",
"keywords": [
@@ -237,12 +237,7 @@ export class VectorStoreIndex extends BaseIndex<IndexDict> {
if (args.logProgress) {
console.log("Finished parsing documents.");
}
try {
return await this.init(args);
} catch (error) {
await docStoreStrategy.rollback(args.storageContext.docStore, args.nodes);
throw error;
}
return await this.init(args);
}
static async fromVectorStores(
@@ -1,11 +1,10 @@
import { BaseNode } from "@llamaindex/core/schema";
import { BaseNode, TransformComponent } from "@llamaindex/core/schema";
import type { BaseDocumentStore } from "@llamaindex/core/storage/doc-store";
import { RollbackableTransformComponent } from "./rollback.js";
/**
* Handle doc store duplicates by checking all hashes.
*/
export class DuplicatesStrategy extends RollbackableTransformComponent {
export class DuplicatesStrategy extends TransformComponent {
private docStore: BaseDocumentStore;
constructor(docStore: BaseDocumentStore) {
@@ -1,14 +1,13 @@
import { BaseNode } from "@llamaindex/core/schema";
import { BaseNode, TransformComponent } from "@llamaindex/core/schema";
import type { BaseDocumentStore } from "@llamaindex/core/storage/doc-store";
import type { BaseVectorStore } from "../../vector-store/types.js";
import { classify } from "./classify.js";
import { RollbackableTransformComponent } from "./rollback.js";
/**
* Handle docstore upserts by checking hashes and ids.
* Identify missing docs and delete them from docstore and vector store
*/
export class UpsertsAndDeleteStrategy extends RollbackableTransformComponent {
export class UpsertsAndDeleteStrategy extends TransformComponent {
protected docStore: BaseDocumentStore;
protected vectorStores: BaseVectorStore[] | undefined;
@@ -1,13 +1,12 @@
import { BaseNode } from "@llamaindex/core/schema";
import { BaseNode, TransformComponent } from "@llamaindex/core/schema";
import type { BaseDocumentStore } from "@llamaindex/core/storage/doc-store";
import type { BaseVectorStore } from "../../vector-store/types.js";
import { classify } from "./classify.js";
import { RollbackableTransformComponent } from "./rollback.js";
/**
* Handles doc store upserts by checking hashes and ids.
*/
export class UpsertsStrategy extends RollbackableTransformComponent {
export class UpsertsStrategy extends TransformComponent {
protected docStore: BaseDocumentStore;
protected vectorStores: BaseVectorStore[] | undefined;
@@ -1,9 +1,9 @@
import { TransformComponent } from "@llamaindex/core/schema";
import type { BaseDocumentStore } from "@llamaindex/core/storage/doc-store";
import type { BaseVectorStore } from "../../vector-store/types.js";
import { DuplicatesStrategy } from "./DuplicatesStrategy.js";
import { UpsertsAndDeleteStrategy } from "./UpsertsAndDeleteStrategy.js";
import { UpsertsStrategy } from "./UpsertsStrategy.js";
import { RollbackableTransformComponent } from "./rollback.js";
/**
* Document de-deduplication strategies work by comparing the hashes or ids stored in the document store.
@@ -19,7 +19,7 @@ export enum DocStoreStrategy {
NONE = "none", // no-op strategy
}
class NoOpStrategy extends RollbackableTransformComponent {
class NoOpStrategy extends TransformComponent {
constructor() {
super(async (nodes) => nodes);
}
@@ -29,7 +29,7 @@ export function createDocStoreStrategy(
docStoreStrategy: DocStoreStrategy,
docStore?: BaseDocumentStore,
vectorStores: BaseVectorStore[] = [],
): RollbackableTransformComponent {
): TransformComponent {
if (docStoreStrategy === DocStoreStrategy.NONE) {
return new NoOpStrategy();
}
@@ -1,19 +0,0 @@
import { BaseNode, TransformComponent } from "@llamaindex/core/schema";
import type { BaseDocumentStore } from "../../index.edge.js";
import { classify } from "./classify.js";
export class RollbackableTransformComponent extends TransformComponent {
// Remove unused docs from the doc store. It is useful in case
// generating embeddings fails and we want to remove the unused docs
// TODO: override this in UpsertsStrategy if we want to revert removed docs also
public async rollback(
docStore: BaseDocumentStore,
nodes: BaseNode[],
): Promise<void> {
const { unusedDocs } = await classify(docStore, nodes);
for (const docId of unusedDocs) {
await docStore.deleteDocument(docId, false);
}
docStore.persist();
}
}
+54 -287
View File
@@ -1,6 +1,5 @@
import type { MessageParam } from "@anthropic-ai/sdk/resources/messages";
import { setEnvs } from "@llamaindex/env";
import { Anthropic, OpenAI, type ChatMessage } from "llamaindex";
import { Anthropic } from "llamaindex";
import { beforeAll, describe, expect, test } from "vitest";
beforeAll(() => {
@@ -9,25 +8,11 @@ beforeAll(() => {
});
});
describe("Message Formatting", () => {
describe("Basic Message Formatting", () => {
test("OpenAI formats basic user and assistant messages correctly", () => {
const inputMessages: ChatMessage[] = [
{ content: "Hello", role: "user" },
{ content: "Hi there!", role: "assistant" },
{ content: "Be helpful", role: "system" },
];
const expectedOutput = [
{ role: "user", content: "Hello" },
{ role: "assistant", content: "Hi there!" },
{ role: "system", content: "Be helpful" },
];
expect(OpenAI.toOpenAIMessage(inputMessages)).toEqual(expectedOutput);
});
test("Anthropic formats basic messages correctly", () => {
const anthropic = new Anthropic();
const inputMessages: ChatMessage[] = [
describe("Anthropic llm", () => {
test("format messages", () => {
const anthropic = new Anthropic();
expect(
anthropic.formatMessages([
{
content: "You are a helpful assistant.",
role: "assistant",
@@ -36,53 +21,20 @@ describe("Message Formatting", () => {
content: "Hello?",
role: "user",
},
];
const expectedOutput: MessageParam[] = [
{
content: "You are a helpful assistant.",
role: "assistant",
},
{
content: "Hello?",
role: "user",
},
];
]),
).toEqual([
{
content: "You are a helpful assistant.",
role: "assistant",
},
{
content: "Hello?",
role: "user",
},
]);
expect(anthropic.formatMessages(inputMessages)).toEqual(expectedOutput);
});
test("OpenAI handles system messages correctly", () => {
const inputMessages: ChatMessage[] = [
{ content: "You are a coding assistant", role: "system" },
{ content: "Hello", role: "user" },
];
const expectedOutput = [
{ role: "system", content: "You are a coding assistant" },
{ role: "user", content: "Hello" },
];
expect(OpenAI.toOpenAIMessage(inputMessages)).toEqual(expectedOutput);
});
test("Anthropic handles multi-turn conversation correctly", () => {
const anthropic = new Anthropic();
const inputMessages: ChatMessage[] = [
{ content: "Hi", role: "user" },
{ content: "Hello! How can I help?", role: "assistant" },
{ content: "What's the weather?", role: "user" },
];
const expectedOutput: MessageParam[] = [
{ content: "Hi", role: "user" },
{ content: "Hello! How can I help?", role: "assistant" },
{ content: "What's the weather?", role: "user" },
];
expect(anthropic.formatMessages(inputMessages)).toEqual(expectedOutput);
});
});
describe("Advanced Message Formatting", () => {
test("Anthropic filters out system messages", () => {
const anthropic = new Anthropic();
const inputMessages: ChatMessage[] = [
expect(
anthropic.formatMessages([
{
content: "You are a helpful assistant.",
role: "assistant",
@@ -99,58 +51,24 @@ describe("Message Formatting", () => {
content: "What is your name?",
role: "user",
},
];
const expectedOutput: MessageParam[] = [
]),
).toEqual([
{
content: "You are a helpful assistant.",
role: "assistant",
},
{
content: "Hello?\nWhat is your name?",
role: "user",
},
]);
expect(
anthropic.formatMessages([
{
content: "You are a helpful assistant.",
role: "assistant",
},
{
content: "Hello?\nWhat is your name?",
role: "user",
},
];
expect(anthropic.formatMessages(inputMessages)).toEqual(expectedOutput);
});
test("Anthropic merges consecutive messages from the same role", () => {
const anthropic = new Anthropic();
const inputMessages: ChatMessage[] = [
{
content: "Hello?",
role: "user",
},
{
content: "How are you?",
role: "user",
},
{
content: "I am fine, thank you!",
role: "assistant",
},
{
content: "And you?",
role: "assistant",
},
];
const expectedOutput: MessageParam[] = [
{
content: "Hello?\nHow are you?",
role: "user",
},
{
content: "I am fine, thank you!\nAnd you?",
role: "assistant",
},
];
expect(anthropic.formatMessages(inputMessages)).toEqual(expectedOutput);
});
test("Anthropic handles image content", () => {
const anthropic = new Anthropic();
const inputMessages: ChatMessage[] = [
{
content: [
{
@@ -166,180 +84,29 @@ describe("Message Formatting", () => {
],
role: "user",
},
];
const expectedOutput: MessageParam[] = [
{
role: "user",
content: [
{
type: "text",
text: "What do you see in the image?",
},
{
type: "image",
source: {
type: "base64",
media_type: "image/jpeg",
data: "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAQDAwQDAwQEAwQFBAQFBgoHBgYGBg0JCggKDw0QEA8NDw4RExgUERIXEg4PFRwVFxkZGxsbEBQdHx0aHxgaGxr/2wBDAQQFBQYFBgwHBwwaEQ8RGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhr/wAARCAAgACADASIAAhEBAxEB/8QAGAABAAMBAAAAAAAAAAAAAAAACAQHCQb/xAAvEAABAgUCBAUDBQEAAAAAAAACAQMEBQYHERIhAAgTYSIxMkJxI2KCFBVBUVKh/8QAGAEAAwEBAAAAAAAAAAAAAAAAAwQFAQL/xAAnEQABBAECAwkAAAAAAAAAAAACAQMEEQAFMiExYRITFCJBcXKBof/aAAwDAQACEQMRAD8Aufmb5mnbWREFRdvIMZ3cWcaBh2NHUGEFwtIKQp63CX0h+S7YQgRzGSq6kgqGAS8NQRc6fmkIMWwSxJEyP+m0bwggQr5iIom6KnnxXty61jK+uJUVUxzxm/M5g5EASr6G9WGwTsIIIp2FOHJfi0kyvzS9Cv0zGwEF+2whOAUY4a6mnm2lREURLPoTggNG5tS6xpmOT4GQptwNUZc6sbexzcZRVSTKTOgudMPEL0j7E2uQNOxIqcaYcqXNaxe2HKnauBiAraDZ6n0k0tTBpPNwE9pptqDP3DtlBC1Q8qNw5K4AwLEunYkWMwcYg6fnqoH/ADPHA2/qeZWquhJJ3pODmEhmg/qGl2XAloebL5HWK/K8dOMOM7xVPfJrMhmQiq0SFXOlyPc+jIq3lwakpeYNq27K491kfvbzls07ECiSdlThhWKvj1LLx0VVLWGqSBuFJ1jc3WBEUb8K4TUieHz3xni7ea3lSZvZDhUVImxAVtBso39VdLUe0nk2a+0030n+K7YUc95/J66tRIp3SVXUpGyUI7wvPxDBoJ/UaLIuIqtuInRwiiqp4z3XbBYr3cGp9P30zJXiSjk1HLsqdIvxvzV1q8ZtB3ppa5bkwZkDz7LsF09Qxgi0Roa6UUU1LnxYH5JP74D1LUjNrkXigabc6kZM5vPFZi3NPi3dVXnFT+EQUM17IvEi1tL1xUkcEHb+lo6duvRUO644wwSDpaPWgG7sAApIKqqqm4jvxo1yvcrjdoTiqtrQ2I+u5nr19ItbUA2a5IAX3GvuP8U2ypMS5pSwFC5peTtM0lnSkMWVVUJb48a+8//Z",
},
},
],
},
];
expect(anthropic.formatMessages(inputMessages)).toEqual(expectedOutput);
});
});
describe("Tool Message Formatting", () => {
const toolCallMessages: ChatMessage[] = [
]),
).toEqual([
{
content: "You are a helpful assistant.",
role: "assistant",
},
{
content: [
{
text: "What do you see in the image?",
type: "text",
},
{
source: {
data: "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAQDAwQDAwQEAwQFBAQFBgoHBgYGBg0JCggKDw0QEA8NDw4RExgUERIXEg4PFRwVFxkZGxsbEBQdHx0aHxgaGxr/2wBDAQQFBQYFBgwHBwwaEQ8RGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhr/wAARCAAgACADASIAAhEBAxEB/8QAGAABAAMBAAAAAAAAAAAAAAAACAQHCQb/xAAvEAABAgUCBAUDBQEAAAAAAAACAQMEBQYHERIhAAgTYSIxMkJxI2KCFBVBUVKh/8QAGAEAAwEBAAAAAAAAAAAAAAAAAwQFAQL/xAAnEQABBAECAwkAAAAAAAAAAAACAQMEEQAFMiExYRITFCJBcXKBof/aAAwDAQACEQMRAD8Aufmb5mnbWREFRdvIMZ3cWcaBh2NHUGEFwtIKQp63CX0h+S7YQgRzGSq6kgqGAS8NQRc6fmkIMWwSxJEyP+m0bwggQr5iIom6KnnxXty61jK+uJUVUxzxm/M5g5EASr6G9WGwTsIIIp2FOHJfi0kyvzS9Cv0zGwEF+2whOAUY4a6mnm2lREURLPoTggNG5tS6xpmOT4GQptwNUZc6sbexzcZRVSTKTOgudMPEL0j7E2uQNOxIqcaYcqXNaxe2HKnauBiAraDZ6n0k0tTBpPNwE9pptqDP3DtlBC1Q8qNw5K4AwLEunYkWMwcYg6fnqoH/ADPHA2/qeZWquhJJ3pODmEhmg/qGl2XAloebL5HWK/K8dOMOM7xVPfJrMhmQiq0SFXOlyPc+jIq3lwakpeYNq27K491kfvbzls07ECiSdlThhWKvj1LLx0VVLWGqSBuFJ1jc3WBEUb8K4TUieHz3xni7ea3lSZvZDhUVImxAVtBso39VdLUe0nk2a+0030n+K7YUc95/J66tRIp3SVXUpGyUI7wvPxDBoJ/UaLIuIqtuInRwiiqp4z3XbBYr3cGp9P30zJXiSjk1HLsqdIvxvzV1q8ZtB3ppa5bkwZkDz7LsF09Qxgi0Roa6UUU1LnxYH5JP74D1LUjNrkXigabc6kZM5vPFZi3NPi3dVXnFT+EQUM17IvEi1tL1xUkcEHb+lo6duvRUO644wwSDpaPWgG7sAApIKqqqm4jvxo1yvcrjdoTiqtrQ2I+u5nr19ItbUA2a5IAX3GvuP8U2ypMS5pSwFC5peTtM0lnSkMWVVUJb48a+8//Z",
media_type: "image/jpeg",
type: "base64",
},
type: "image",
},
],
role: "user",
content: "What's the weather in London?",
},
{
role: "assistant",
content: "Let me check the weather.",
options: {
toolCall: [
{
id: "call_123",
name: "weather",
input: JSON.stringify({ location: "London" }),
},
],
},
},
{
role: "assistant",
content: "The weather in London is sunny, +20°C",
options: {
toolResult: {
id: "call_123",
},
},
},
];
test("OpenAI formats tool calls correctly", () => {
const expectedOutput = [
{
role: "user",
content: "What's the weather in London?",
},
{
role: "assistant",
content: "Let me check the weather.",
tool_calls: [
{
id: "call_123",
type: "function",
function: {
name: "weather",
arguments: JSON.stringify({ location: "London" }),
},
},
],
},
{
role: "tool",
content: "The weather in London is sunny, +20°C",
tool_call_id: "call_123",
},
];
expect(OpenAI.toOpenAIMessage(toolCallMessages)).toEqual(expectedOutput);
});
test("Anthropic formats tool calls correctly", () => {
const anthropic = new Anthropic();
const expectedOutput: MessageParam[] = [
{
role: "user",
content: "What's the weather in London?",
},
{
role: "assistant",
content: [
{
type: "text",
text: "Let me check the weather.",
},
{
type: "tool_use",
id: "call_123",
name: "weather",
input: {
location: "London",
},
},
],
},
{
role: "user", // anthropic considers all that comes not from their inference API is user role
content: [
{
type: "tool_result",
tool_use_id: "call_123",
content: "The weather in London is sunny, +20°C",
},
],
},
];
expect(anthropic.formatMessages(toolCallMessages)).toEqual(
expectedOutput,
);
});
test("OpenAI formats multiple tool calls correctly", () => {
const multiToolMessages: ChatMessage[] = [
{
role: "assistant",
content: "Let me check both weather and time.",
options: {
toolCall: [
{
id: "weather_123",
name: "weather",
input: JSON.stringify({ location: "London" }),
},
{
id: "time_456",
name: "time",
input: JSON.stringify({ timezone: "GMT" }),
},
],
},
},
];
const expectedOutput = [
{
role: "assistant",
content: "Let me check both weather and time.",
tool_calls: [
{
id: "weather_123",
type: "function",
function: {
name: "weather",
arguments: JSON.stringify({ location: "London" }),
},
},
{
id: "time_456",
type: "function",
function: {
name: "time",
arguments: JSON.stringify({ timezone: "GMT" }),
},
},
],
},
];
expect(OpenAI.toOpenAIMessage(multiToolMessages)).toEqual(expectedOutput);
});
]);
});
});
-7
View File
@@ -1,12 +1,5 @@
# @llamaindex/node-parser
## 0.0.21
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 0.0.20
### Patch Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/node-parser",
"version": "0.0.21",
"version": "0.0.20",
"description": "Node parser for LlamaIndex",
"type": "module",
"exports": {
@@ -43,7 +43,7 @@
"@llamaindex/env": "workspace:*",
"@types/html-to-text": "^9.0.4",
"@types/node": "^22.9.0",
"bunchee": "6.2.0",
"bunchee": "6.0.3",
"tree-sitter": "^0.22.1",
"web-tree-sitter": "^0.24.4"
},
@@ -1,13 +1,5 @@
# @llamaindex/anthropic
## 0.0.29
### Patch Changes
- d211b7a: added support for tool calls with results in message history for athropic agent
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 0.0.28
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/anthropic",
"description": "Anthropic Adapter for LlamaIndex",
"version": "0.0.29",
"version": "0.0.28",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@anthropic-ai/sdk": "0.32.1",
+202 -192
View File
@@ -4,12 +4,19 @@ import type {
BetaCacheControlEphemeral,
BetaTextBlockParam,
} from "@anthropic-ai/sdk/resources/beta/index";
import type { TextBlock } from "@anthropic-ai/sdk/resources/index";
import type {
TextBlock,
TextBlockParam,
} from "@anthropic-ai/sdk/resources/index";
import type {
ImageBlockParam,
MessageCreateParamsNonStreaming,
MessageParam,
Model,
Tool,
ToolResultBlockParam,
ToolUseBlock,
ToolUseBlockParam,
} from "@anthropic-ai/sdk/resources/messages";
import { wrapLLMEvent } from "@llamaindex/core/decorator";
import type {
@@ -186,128 +193,99 @@ export class Anthropic extends ToolCallLLM<
formatMessages(
messages: ChatMessage<ToolCallLLMMessageOptions>[],
): MessageParam[] {
const formattedMessages = messages.flatMap((message) => {
const options = message.options ?? {};
if (message.role === "system") {
// Skip system messages
return [];
}
if ("toolCall" in options) {
const formattedMessage: MessageParam = {
role: "assistant",
content: [
{
type: "text" as const,
text: extractText(message.content),
},
...options.toolCall.map((tool) => ({
type: "tool_use" as const,
id: tool.id,
name: tool.name,
input:
typeof tool.input === "string"
? JSON.parse(tool.input)
: tool.input,
})),
],
};
return formattedMessage;
}
// Handle tool results
if ("toolResult" in options) {
const formattedMessage: MessageParam = {
role: "user",
content: [
{
type: "tool_result" as const,
tool_use_id: options.toolResult.id,
content: extractText(message.content),
},
],
};
return formattedMessage;
}
// Handle regular messages
if (typeof message.content === "string") {
const role: "user" | "assistant" =
message.role === "assistant" ? "assistant" : "user";
const result: MessageParam[] = messages
.filter(
(message) => message.role === "user" || message.role === "assistant",
)
.map((message) => {
const options = message.options ?? {};
if ("toolResult" in options) {
const { id, isError } = options.toolResult;
return {
role: "user",
content: [
{
type: "tool_result",
is_error: isError,
content: [
{
type: "text",
text: extractText(message.content),
},
],
tool_use_id: id,
},
] satisfies ToolResultBlockParam[],
} satisfies MessageParam;
} else if ("toolCall" in options) {
const aiThinkingText = extractText(message.content);
return {
role: "assistant",
content: [
// this could be empty when you call two tools in one query
...(aiThinkingText.trim()
? [
{
type: "text",
text: aiThinkingText,
} satisfies TextBlockParam,
]
: []),
...options.toolCall.map(
(toolCall) =>
({
type: "tool_use",
id: toolCall.id,
name: toolCall.name,
input: toolCall.input,
}) satisfies ToolUseBlockParam,
),
],
} satisfies MessageParam;
}
return {
role,
content: message.content,
content:
typeof message.content === "string"
? message.content
: message.content.map(
(content): TextBlockParam | ImageBlockParam =>
content.type === "text"
? {
type: "text",
text: content.text,
}
: {
type: "image",
source: {
data: content.image_url.url.substring(
content.image_url.url.indexOf(",") + 1,
),
media_type:
`image/${content.image_url.url.substring("data:image/".length, content.image_url.url.indexOf(";base64"))}` as
| "image/jpeg"
| "image/png"
| "image/gif"
| "image/webp",
type: "base64",
},
},
),
role: message.role as "user" | "assistant",
} satisfies MessageParam;
}
// Handle multi-modal content
const role: "user" | "assistant" =
message.role === "assistant" ? "assistant" : "user";
return {
role,
content: message.content.map((content) => {
if (content.type === "text") {
return {
type: "text" as const,
text: content.text,
};
}
return {
type: "image" as const,
source: {
type: "base64" as const,
media_type: `image/${content.image_url.url.substring(
"data:image/".length,
content.image_url.url.indexOf(";base64"),
)}` as "image/jpeg" | "image/png" | "image/gif" | "image/webp",
data: content.image_url.url.substring(
content.image_url.url.indexOf(",") + 1,
),
},
};
}),
} satisfies MessageParam;
});
return this.mergeConsecutiveMessages(formattedMessages);
}
// Add helper method to prepare tools for API call
private prepareToolsForAPI(tools: BaseTool[]): Tool[] {
return tools.map((tool) => {
if (tool.metadata.parameters?.type !== "object") {
throw new TypeError("Tool parameters must be an object");
}
return {
input_schema: {
type: "object",
properties: tool.metadata.parameters.properties,
required: tool.metadata.parameters.required,
},
name: tool.metadata.name,
description: tool.metadata.description,
};
});
}
private mergeConsecutiveMessages(messages: MessageParam[]): MessageParam[] {
const result: MessageParam[] = [];
for (let i = 0; i < messages.length; i++) {
});
// merge messages with the same role
// in case of 'messages: roles must alternate between "user" and "assistant", but found multiple "user" roles in a row'
const realResult: MessageParam[] = [];
for (let i = 0; i < result.length; i++) {
if (i === 0) {
result.push(messages[i]!);
realResult.push(result[i]!);
continue;
}
const current = messages[i]!;
const previous = result[result.length - 1]!;
const current = result[i]!;
const previous = result[i - 1]!;
if (current.role === previous.role) {
// Merge content based on type
// merge two messages with the same role
if (Array.isArray(previous.content)) {
if (Array.isArray(current.content)) {
previous.content.push(...current.content);
@@ -320,19 +298,25 @@ export class Anthropic extends ToolCallLLM<
} else {
if (Array.isArray(current.content)) {
previous.content = [
{ type: "text", text: previous.content },
{
type: "text",
text: previous.content,
},
...current.content,
];
} else {
previous.content = `${previous.content}\n${current.content}`;
previous.content += `\n${current.content}`;
}
}
} else {
result.push(current);
// no need to push the message
}
// if the roles are different, just push the message
else {
realResult.push(current);
}
}
return result;
return realResult;
}
chat(
@@ -352,104 +336,130 @@ export class Anthropic extends ToolCallLLM<
@wrapLLMEvent
async chat(
params:
| LLMChatParamsNonStreaming<AnthropicToolCallLLMMessageOptions>
| LLMChatParamsStreaming<AnthropicToolCallLLMMessageOptions>,
| LLMChatParamsNonStreaming<
AnthropicAdditionalChatOptions,
AnthropicToolCallLLMMessageOptions
>
| LLMChatParamsStreaming<
AnthropicAdditionalChatOptions,
AnthropicToolCallLLMMessageOptions
>,
): Promise<
| ChatResponse<AnthropicToolCallLLMMessageOptions>
| AsyncIterable<ChatResponseChunk<AnthropicToolCallLLMMessageOptions>>
> {
const { messages, stream, tools } = params;
let { messages } = params;
const { stream, tools } = params;
let systemPrompt: string | Array<BetaTextBlockParam> | null = null;
// Handle system messages
let systemPrompt: string | BetaTextBlockParam[] | null = null;
const systemMessages = messages.filter(
(message) => message.role === "system",
);
if (systemMessages.length > 0) {
systemPrompt = systemMessages.map((message): BetaTextBlockParam => {
const textContent = extractText(message.content);
if (message.options && "cache_control" in message.options) {
return {
type: "text" as const,
text: textContent,
cache_control: message.options
.cache_control as BetaCacheControlEphemeral,
};
}
return {
type: "text" as const,
text: textContent,
};
});
systemPrompt = systemMessages.map((message) =>
message.options && "cache_control" in message.options
? {
type: "text",
text: extractText(message.content),
cache_control: message.options.cache_control,
}
: {
type: "text",
text: extractText(message.content),
},
);
messages = messages.filter((message) => message.role !== "system");
}
const beta =
Array.isArray(systemPrompt) &&
systemPrompt.some((message) => "cache_control" in message);
systemPrompt?.find((message) => "cache_control" in message) !== undefined;
// case: Non-streaming
let anthropic = this.session.anthropic;
if (beta) {
// @ts-expect-error type casting
anthropic = anthropic.beta.promptCaching;
}
// case: Streaming
if (stream) {
if (tools) {
console.error("Tools are not supported in streaming mode");
}
return this.streamChat(
messages.filter((m) => m.role !== "system"),
systemPrompt,
anthropic,
return this.streamChat(messages, systemPrompt, anthropic);
}
if (tools) {
const params: MessageCreateParamsNonStreaming = {
messages: this.formatMessages(messages),
tools: tools.map(Anthropic.toTool),
model: this.getModelName(this.model),
temperature: this.temperature,
max_tokens: this.maxTokens ?? 4096,
top_p: this.topP,
...(systemPrompt && { system: systemPrompt }),
};
// Remove tools if there are none, as it will cause an error
if (tools.length === 0) {
delete params.tools;
}
const response = await anthropic.messages.create(params);
const toolUseBlock = response.content.filter(
(content): content is ToolUseBlock => content.type === "tool_use",
);
}
const apiParams = {
model: this.getModelName(this.model),
messages: this.mergeConsecutiveMessages(
this.formatMessages(messages.filter((m) => m.role !== "system")),
),
max_tokens: this.maxTokens ?? 4096,
temperature: this.temperature,
top_p: this.topP,
...(systemPrompt && { system: systemPrompt }),
};
if (tools?.length) {
Object.assign(apiParams, {
tools: this.prepareToolsForAPI(tools),
return {
raw: response,
message: {
content: response.content
.filter((content): content is TextBlock => content.type === "text")
.map((content) => ({
type: "text",
text: content.text,
})),
role: "assistant",
options:
toolUseBlock.length > 0
? {
toolCall: toolUseBlock.map((block) => ({
id: block.id,
name: block.name,
input:
typeof block.input === "object"
? JSON.stringify(block.input)
: `${block.input}`,
})),
}
: {},
},
};
} else {
const response = await anthropic.messages.create({
model: this.getModelName(this.model),
messages: this.formatMessages(messages),
max_tokens: this.maxTokens ?? 4096,
temperature: this.temperature,
top_p: this.topP,
...(systemPrompt && { system: systemPrompt }),
});
return {
raw: response,
message: {
content: response.content
.filter((content): content is TextBlock => content.type === "text")
.map((content) => ({
type: "text",
text: content.text,
})),
role: "assistant",
options: {},
},
};
}
const response = await anthropic.messages.create(apiParams);
const toolUseBlock = response.content.filter(
(content): content is ToolUseBlock => content.type === "tool_use",
);
return {
raw: response,
message: {
content: response.content
.filter((content): content is TextBlock => content.type === "text")
.map((content) => ({
type: "text" as const,
text: content.text,
})),
role: "assistant",
options:
toolUseBlock.length > 0
? {
toolCall: toolUseBlock.map((block) => ({
id: block.id,
name: block.name,
input: JSON.stringify(block.input),
})),
}
: {},
},
};
}
protected async *streamChat(
-8
View File
@@ -1,13 +1,5 @@
# @llamaindex/clip
## 0.0.29
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
- @llamaindex/openai@0.1.45
## 0.0.28
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/clip",
"description": "Clip Embedding Adapter for LlamaIndex",
"version": "0.0.29",
"version": "0.0.28",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
@@ -39,7 +39,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@huggingface/transformers": "^3.0.2",
@@ -1,13 +1,5 @@
# @llamaindex/deepinfra
## 0.0.29
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
- @llamaindex/openai@0.1.45
## 0.0.28
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/deepinfra",
"description": "Deepinfra Adapter for LlamaIndex",
"version": "0.0.29",
"version": "0.0.28",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
-6
View File
@@ -1,11 +1,5 @@
# @llamaindex/groq
## 0.0.44
### Patch Changes
- @llamaindex/openai@0.1.45
## 0.0.43
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/groq",
"description": "Groq Adapter for LlamaIndex",
"version": "0.0.44",
"version": "0.0.43",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@llamaindex/env": "workspace:*",
@@ -1,13 +1,5 @@
# @llamaindex/huggingface
## 0.0.29
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
- @llamaindex/openai@0.1.45
## 0.0.28
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/huggingface",
"description": "Huggingface Adapter for LlamaIndex",
"version": "0.0.29",
"version": "0.0.28",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
@@ -39,7 +39,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@huggingface/inference": "^2.8.1",
-7
View File
@@ -1,12 +1,5 @@
# @llamaindex/ollama
## 0.0.36
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 0.0.35
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/ollama",
"description": "Ollama Adapter for LlamaIndex",
"version": "0.0.36",
"version": "0.0.35",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
-7
View File
@@ -1,12 +1,5 @@
# @llamaindex/openai
## 0.1.45
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 0.1.44
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/openai",
"description": "OpenAI Adapter for LlamaIndex",
"version": "0.1.45",
"version": "0.1.44",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
@@ -1,12 +1,5 @@
# @llamaindex/portkey-ai
## 0.0.29
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 0.0.28
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/portkey-ai",
"description": "Portkey Adapter for LlamaIndex",
"version": "0.0.29",
"version": "0.0.28",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
@@ -1,12 +1,5 @@
# @llamaindex/replicate
## 0.0.29
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 0.0.28
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/replicate",
"description": "Replicate Adapter for LlamaIndex",
"version": "0.0.29",
"version": "0.0.28",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -38,7 +38,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
-7
View File
@@ -1,12 +1,5 @@
# @llamaindex/vercel
## 0.0.7
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 0.0.6
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/vercel",
"description": "Vercel Adapter for LlamaIndex",
"version": "0.0.7",
"version": "0.0.6",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -38,7 +38,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@llamaindex/core": "workspace:*",
-6
View File
@@ -1,11 +1,5 @@
# @llamaindex/vllm
## 0.0.15
### Patch Changes
- @llamaindex/openai@0.1.45
## 0.0.14
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/vllm",
"description": "vLLM Adapter for LlamaIndex",
"version": "0.0.15",
"version": "0.0.14",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -30,7 +30,7 @@
"dev": "bunchee --watch"
},
"devDependencies": {
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"dependencies": {
"@llamaindex/openai": "workspace:*"
-7
View File
@@ -1,12 +1,5 @@
# @llamaindex/readers
## 1.0.22
### Patch Changes
- Updated dependencies [d211b7a]
- @llamaindex/core@0.4.20
## 1.0.21
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/readers",
"description": "LlamaIndex Readers",
"version": "1.0.22",
"version": "1.0.21",
"type": "module",
"exports": {
"./node/hook": "./node/dist/hook.js",
@@ -212,7 +212,7 @@
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*",
"@types/node": "^22.9.0",
"bunchee": "6.2.0",
"bunchee": "6.0.3",
"p-limit": "^6.1.0",
"string-strip-html": "^13.4.8"
},
+1 -1
View File
@@ -56,7 +56,7 @@
"devDependencies": {
"@llamaindex/env": "workspace:*",
"@types/node": "^22.9.0",
"bunchee": "6.2.0"
"bunchee": "6.0.3"
},
"peerDependencies": {
"@llamaindex/env": "workspace:*"
+140 -164
View File
@@ -554,13 +554,13 @@ importers:
specifier: ^1.4.1
version: 1.4.1
'@llamaindex/core':
specifier: ^0.4.20
specifier: ^0.4.19
version: link:../packages/core
'@llamaindex/readers':
specifier: ^1.0.22
specifier: ^1.0.21
version: link:../packages/readers
'@llamaindex/vercel':
specifier: ^0.0.7
specifier: ^0.0.6
version: link:../packages/providers/vercel
'@llamaindex/workflow':
specifier: ^0.0.8
@@ -593,7 +593,7 @@ importers:
specifier: ^1.0.14
version: 1.0.14
llamaindex:
specifier: ^0.8.31
specifier: ^0.8.28
version: link:../packages/llamaindex
mongodb:
specifier: ^6.7.0
@@ -666,8 +666,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
llamaindex:
specifier: workspace:*
version: link:../llamaindex
@@ -782,11 +782,11 @@ importers:
packages/cloud:
devDependencies:
'@hey-api/client-fetch':
specifier: ^0.6.0
version: 0.6.0
specifier: ^0.4.4
version: 0.4.4
'@hey-api/openapi-ts':
specifier: ^0.61.0
version: 0.61.0(typescript@5.7.2)
specifier: ^0.56.0
version: 0.56.0(typescript@5.7.2)
'@llamaindex/core':
specifier: workspace:*
version: link:../core
@@ -794,8 +794,8 @@ importers:
specifier: workspace:*
version: link:../env
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/community:
dependencies:
@@ -816,8 +816,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/core:
dependencies:
@@ -844,8 +844,8 @@ importers:
specifier: ^8.17.1
version: 8.17.1
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
happy-dom:
specifier: ^15.11.6
version: 15.11.6
@@ -881,8 +881,8 @@ importers:
specifier: ^4.0.15
version: 4.0.15
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
gpt-tokenizer:
specifier: ^2.6.2
version: 2.6.2
@@ -1157,8 +1157,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
tree-sitter:
specifier: ^0.22.1
version: 0.22.1
@@ -1182,8 +1182,8 @@ importers:
version: 2.17.3
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/clip:
dependencies:
@@ -1201,8 +1201,8 @@ importers:
version: link:../openai
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/deepinfra:
dependencies:
@@ -1217,8 +1217,8 @@ importers:
version: link:../openai
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/groq:
dependencies:
@@ -1233,8 +1233,8 @@ importers:
version: 0.8.0(encoding@0.1.13)
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/huggingface:
dependencies:
@@ -1255,8 +1255,8 @@ importers:
version: link:../openai
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/ollama:
dependencies:
@@ -1274,8 +1274,8 @@ importers:
version: 2.17.3
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/openai:
dependencies:
@@ -1290,8 +1290,8 @@ importers:
version: 4.73.1(encoding@0.1.13)(zod@3.24.1)
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/portkey-ai:
dependencies:
@@ -1309,8 +1309,8 @@ importers:
version: 2.17.3
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/replicate:
dependencies:
@@ -1325,8 +1325,8 @@ importers:
version: 1.0.1
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/vercel:
dependencies:
@@ -1341,8 +1341,8 @@ importers:
version: 3.23.8
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/providers/vllm:
dependencies:
@@ -1351,8 +1351,8 @@ importers:
version: link:../openai
devDependencies:
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
packages/readers:
dependencies:
@@ -1400,8 +1400,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
p-limit:
specifier: ^6.1.0
version: 6.1.0
@@ -1440,8 +1440,8 @@ importers:
specifier: ^22.9.0
version: 22.9.0
bunchee:
specifier: 6.2.0
version: 6.2.0(typescript@5.7.2)
specifier: 6.0.3
version: 6.0.3(typescript@5.7.2)
unit:
dependencies:
@@ -1635,6 +1635,10 @@ packages:
'@anthropic-ai/sdk@0.32.1':
resolution: {integrity: sha512-U9JwTrDvdQ9iWuABVsMLj8nJVwAyQz6QXvgLsVhryhCEPkLsbcP/MXxm+jYcAwLoV8ESbaTTjnD4kuAFa+Hyjg==}
'@apidevtools/json-schema-ref-parser@11.7.2':
resolution: {integrity: sha512-4gY54eEGEstClvEkGnwVkTkrx0sqwemEFG5OSRRn3tD91XH0+Q8XIkYIfo7IwEWPpJZwILb9GUXeShtplRc/eA==}
engines: {node: '>= 16'}
'@apidevtools/json-schema-ref-parser@11.7.3':
resolution: {integrity: sha512-WApSdLdXEBb/1FUPca2lteASewEfpjEYJ8oXZP+0gExK5qSfsEKBKcA+WjY6Q4wvXwyv0+W6Kvc372pSceib9w==}
engines: {node: '>= 16'}
@@ -2984,15 +2988,11 @@ packages:
engines: {node: '>=6'}
hasBin: true
'@hey-api/client-fetch@0.6.0':
resolution: {integrity: sha512-FlhFsVeH8RxJe/nq8xUzxNbiOpe+GadxlD2pfvDyOyLdCTU4o/LRv46ZVWstaW7DgF4nxhI328chy3+AulwVXw==}
'@hey-api/client-fetch@0.4.4':
resolution: {integrity: sha512-ebh1JjUdMAqes/Rg8OvbjDqGWGNhgHgmPtHlkIOUtj3y2mUXqX2g9sVoI/rSKW/FdADPng/90k5AL7bwT8W2lA==}
'@hey-api/json-schema-ref-parser@1.0.1':
resolution: {integrity: sha512-dBt0A7op9kf4BcK++x6HBYDmvCvnJUZEGe5QytghPFHnMXPyKwDKomwL/v5e9ERk6E0e1GzL/e/y6pWUso9zrQ==}
engines: {node: '>= 16'}
'@hey-api/openapi-ts@0.61.0':
resolution: {integrity: sha512-gl1lcQFmuaMmtQuY3yn9rd/dUD9wdMW59PIv4J2g2AV9+hIKhWHn1QIdYYmQDio7eCPLvtVmj79EEu21Tu9Ahw==}
'@hey-api/openapi-ts@0.56.0':
resolution: {integrity: sha512-bwqfuqJVNRVsbyC+jlAY2geJOWVQZWpVKS9z9sFeuTeRMJ5C8m+WzucMP0hurqYy67I90GaRyFSepvL1+miSXg==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
peerDependencies:
@@ -4609,8 +4609,8 @@ packages:
chokidar:
optional: true
'@swc/core-darwin-arm64@1.10.4':
resolution: {integrity: sha512-sV/eurLhkjn/197y48bxKP19oqcLydSel42Qsy2zepBltqUx+/zZ8+/IS0Bi7kaWVFxerbW1IPB09uq8Zuvm3g==}
'@swc/core-darwin-arm64@1.10.1':
resolution: {integrity: sha512-NyELPp8EsVZtxH/mEqvzSyWpfPJ1lugpTQcSlMduZLj1EASLO4sC8wt8hmL1aizRlsbjCX+r0PyL+l0xQ64/6Q==}
engines: {node: '>=10'}
cpu: [arm64]
os: [darwin]
@@ -4627,8 +4627,8 @@ packages:
cpu: [arm64]
os: [darwin]
'@swc/core-darwin-x64@1.10.4':
resolution: {integrity: sha512-gjYNU6vrAUO4+FuovEo9ofnVosTFXkF0VDuo1MKPItz6e2pxc2ale4FGzLw0Nf7JB1sX4a8h06CN16/pLJ8Q2w==}
'@swc/core-darwin-x64@1.10.1':
resolution: {integrity: sha512-L4BNt1fdQ5ZZhAk5qoDfUnXRabDOXKnXBxMDJ+PWLSxOGBbWE6aJTnu4zbGjJvtot0KM46m2LPAPY8ttknqaZA==}
engines: {node: '>=10'}
cpu: [x64]
os: [darwin]
@@ -4645,8 +4645,8 @@ packages:
cpu: [x64]
os: [darwin]
'@swc/core-linux-arm-gnueabihf@1.10.4':
resolution: {integrity: sha512-zd7fXH5w8s+Sfvn2oO464KDWl+ZX1MJiVmE4Pdk46N3PEaNwE0koTfgx2vQRqRG4vBBobzVvzICC3618WcefOA==}
'@swc/core-linux-arm-gnueabihf@1.10.1':
resolution: {integrity: sha512-Y1u9OqCHgvVp2tYQAJ7hcU9qO5brDMIrA5R31rwWQIAKDkJKtv3IlTHF0hrbWk1wPR0ZdngkQSJZple7G+Grvw==}
engines: {node: '>=10'}
cpu: [arm]
os: [linux]
@@ -4663,8 +4663,8 @@ packages:
cpu: [arm]
os: [linux]
'@swc/core-linux-arm64-gnu@1.10.4':
resolution: {integrity: sha512-+UGfoHDxsMZgFD3tABKLeEZHqLNOkxStu+qCG7atGBhS4Slri6h6zijVvf4yI5X3kbXdvc44XV/hrP/Klnui2A==}
'@swc/core-linux-arm64-gnu@1.10.1':
resolution: {integrity: sha512-tNQHO/UKdtnqjc7o04iRXng1wTUXPgVd8Y6LI4qIbHVoVPwksZydISjMcilKNLKIwOoUQAkxyJ16SlOAeADzhQ==}
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
@@ -4681,8 +4681,8 @@ packages:
cpu: [arm64]
os: [linux]
'@swc/core-linux-arm64-musl@1.10.4':
resolution: {integrity: sha512-cDDj2/uYsOH0pgAnDkovLZvKJpFmBMyXkxEG6Q4yw99HbzO6QzZ5HDGWGWVq/6dLgYKlnnmpjZCPPQIu01mXEg==}
'@swc/core-linux-arm64-musl@1.10.1':
resolution: {integrity: sha512-x0L2Pd9weQ6n8dI1z1Isq00VHFvpBClwQJvrt3NHzmR+1wCT/gcYl1tp9P5xHh3ldM8Cn4UjWCw+7PaUgg8FcQ==}
engines: {node: '>=10'}
cpu: [arm64]
os: [linux]
@@ -4699,8 +4699,8 @@ packages:
cpu: [arm64]
os: [linux]
'@swc/core-linux-x64-gnu@1.10.4':
resolution: {integrity: sha512-qJXh9D6Kf5xSdGWPINpLGixAbB5JX8JcbEJpRamhlDBoOcQC79dYfOMEIxWPhTS1DGLyFakAx2FX/b2VmQmj0g==}
'@swc/core-linux-x64-gnu@1.10.1':
resolution: {integrity: sha512-yyYEwQcObV3AUsC79rSzN9z6kiWxKAVJ6Ntwq2N9YoZqSPYph+4/Am5fM1xEQYf/kb99csj0FgOelomJSobxQA==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
@@ -4717,8 +4717,8 @@ packages:
cpu: [x64]
os: [linux]
'@swc/core-linux-x64-musl@1.10.4':
resolution: {integrity: sha512-A76lIAeyQnHCVt0RL/pG+0er8Qk9+acGJqSZOZm67Ve3B0oqMd871kPtaHBM0BW3OZAhoILgfHW3Op9Q3mx3Cw==}
'@swc/core-linux-x64-musl@1.10.1':
resolution: {integrity: sha512-tcaS43Ydd7Fk7sW5ROpaf2Kq1zR+sI5K0RM+0qYLYYurvsJruj3GhBCaiN3gkzd8m/8wkqNqtVklWaQYSDsyqA==}
engines: {node: '>=10'}
cpu: [x64]
os: [linux]
@@ -4735,8 +4735,8 @@ packages:
cpu: [x64]
os: [linux]
'@swc/core-win32-arm64-msvc@1.10.4':
resolution: {integrity: sha512-e6j5kBu4fIY7fFxFxnZI0MlEovRvp50Lg59Fw+DVbtqHk3C85dckcy5xKP+UoXeuEmFceauQDczUcGs19SRGSQ==}
'@swc/core-win32-arm64-msvc@1.10.1':
resolution: {integrity: sha512-D3Qo1voA7AkbOzQ2UGuKNHfYGKL6eejN8VWOoQYtGHHQi1p5KK/Q7V1ku55oxXBsj79Ny5FRMqiRJpVGad7bjQ==}
engines: {node: '>=10'}
cpu: [arm64]
os: [win32]
@@ -4753,8 +4753,8 @@ packages:
cpu: [arm64]
os: [win32]
'@swc/core-win32-ia32-msvc@1.10.4':
resolution: {integrity: sha512-RSYHfdKgNXV/amY5Tqk1EWVsyQnhlsM//jeqMLw5Fy9rfxP592W9UTumNikNRPdjI8wKKzNMXDb1U29tQjN0dg==}
'@swc/core-win32-ia32-msvc@1.10.1':
resolution: {integrity: sha512-WalYdFoU3454Og+sDKHM1MrjvxUGwA2oralknXkXL8S0I/8RkWZOB++p3pLaGbTvOO++T+6znFbQdR8KRaa7DA==}
engines: {node: '>=10'}
cpu: [ia32]
os: [win32]
@@ -4771,8 +4771,8 @@ packages:
cpu: [ia32]
os: [win32]
'@swc/core-win32-x64-msvc@1.10.4':
resolution: {integrity: sha512-1ujYpaqfqNPYdwKBlvJnOqcl+Syn3UrQ4XE0Txz6zMYgyh6cdU6a3pxqLqIUSJ12MtXRA9ZUhEz1ekU3LfLWXw==}
'@swc/core-win32-x64-msvc@1.10.1':
resolution: {integrity: sha512-JWobfQDbTnoqaIwPKQ3DVSywihVXlQMbDuwik/dDWlj33A8oEHcjPOGs4OqcA3RHv24i+lfCQpM3Mn4FAMfacA==}
engines: {node: '>=10'}
cpu: [x64]
os: [win32]
@@ -4789,8 +4789,8 @@ packages:
cpu: [x64]
os: [win32]
'@swc/core@1.10.4':
resolution: {integrity: sha512-ut3zfiTLORMxhr6y/GBxkHmzcGuVpwJYX4qyXWuBKkpw/0g0S5iO1/wW7RnLnZbAi8wS/n0atRZoaZlXWBkeJg==}
'@swc/core@1.10.1':
resolution: {integrity: sha512-rQ4dS6GAdmtzKiCRt3LFVxl37FaY1cgL9kSUTnhQ2xc3fmHOd7jdJK/V4pSZMG1ruGTd0bsi34O2R0Olg9Zo/w==}
engines: {node: '>=10'}
peerDependencies:
'@swc/helpers': '*'
@@ -5466,8 +5466,8 @@ packages:
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
engines: {node: '>=8'}
ansi-regex@6.1.0:
resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==}
ansi-regex@6.0.1:
resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==}
engines: {node: '>=12'}
ansi-styles@3.2.1:
@@ -5759,8 +5759,8 @@ packages:
resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==}
engines: {node: '>=6.14.2'}
bunchee@6.2.0:
resolution: {integrity: sha512-kdZrbi+JFFm5ZsOqwXoYFG/783oiJc7gYAOiHrMr1r0NQJdmcDwadX+HHoczti3+VjLKmBqf+lzyvbDruG5f/Q==}
bunchee@6.0.3:
resolution: {integrity: sha512-Yq/srd3ocXPAHv0KEdJvhFMNUOOVVqy0kNzaGVCirk/+MfnLdvZO5uf5BHugIHe/qSvWUQTJZ3SAfB/VABONeQ==}
engines: {node: '>= 18.0.0'}
hasBin: true
peerDependencies:
@@ -5864,10 +5864,6 @@ packages:
resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
chalk@5.4.1:
resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==}
engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
character-entities-html4@2.1.0:
resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==}
@@ -6070,10 +6066,6 @@ packages:
resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
engines: {node: '>=18'}
commander@13.0.0:
resolution: {integrity: sha512-oPYleIY8wmTVzkvQq10AEok6YcTC4sRUBl8F9gVuwchGVUCTbl/vhLTaQqutuuySYOsu8YTgV+OxKc/8Yvx+mQ==}
engines: {node: '>=18'}
commander@2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
@@ -6581,6 +6573,10 @@ packages:
engines: {node: '>=18'}
hasBin: true
escalade@3.1.1:
resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
engines: {node: '>=6'}
escalade@3.2.0:
resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
engines: {node: '>=6'}
@@ -6766,8 +6762,8 @@ packages:
resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==}
engines: {node: '>=0.10'}
esrap@1.3.2:
resolution: {integrity: sha512-C4PXusxYhFT98GjLSmb20k9PREuUdporer50dhzGuJu9IJXktbMddVCMLAERl5dAHyAi73GWWCE4FVHGP1794g==}
esrap@1.3.1:
resolution: {integrity: sha512-KpAH3+QsDmtOP1KOW04CbD1PgzWsIHjB8tOCk3PCb8xzNGn8XkjI8zl80i09fmXdzQyaS8tcsKCCDzHF7AcowA==}
esrecurse@4.3.0:
resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
@@ -7727,10 +7723,6 @@ packages:
resolution: {integrity: sha512-urTSINYfAYgcbLb0yDQ6egFm6h3Mo1DcF9EkyXSRjjzdHbsulg01qhwWuXdOoUBuTkbQ80KDboXa0vFJ+BDH+g==}
engines: {node: '>= 0.4'}
is-core-module@2.16.1:
resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==}
engines: {node: '>= 0.4'}
is-data-view@1.0.2:
resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==}
engines: {node: '>= 0.4'}
@@ -10152,11 +10144,6 @@ packages:
resolution: {integrity: sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==}
engines: {node: '>=10'}
resolve@1.22.10:
resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==}
engines: {node: '>= 0.4'}
hasBin: true
resolve@1.22.2:
resolution: {integrity: sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==}
hasBin: true
@@ -11975,6 +11962,12 @@ snapshots:
transitivePeerDependencies:
- encoding
'@apidevtools/json-schema-ref-parser@11.7.2':
dependencies:
'@jsdevtools/ono': 7.1.3
'@types/json-schema': 7.0.15
js-yaml: 4.1.0
'@apidevtools/json-schema-ref-parser@11.7.3':
dependencies:
'@jsdevtools/ono': 7.1.3
@@ -13441,7 +13434,7 @@ snapshots:
dependencies:
'@babel/helper-validator-identifier': 7.25.9
js-tokens: 4.0.0
picocolors: 1.1.1
picocolors: 1.0.0
'@babel/compat-data@7.26.3': {}
@@ -14228,19 +14221,13 @@ snapshots:
protobufjs: 7.4.0
yargs: 17.7.2
'@hey-api/client-fetch@0.6.0': {}
'@hey-api/client-fetch@0.4.4': {}
'@hey-api/json-schema-ref-parser@1.0.1':
'@hey-api/openapi-ts@0.56.0(typescript@5.7.2)':
dependencies:
'@jsdevtools/ono': 7.1.3
'@types/json-schema': 7.0.15
js-yaml: 4.1.0
'@hey-api/openapi-ts@0.61.0(typescript@5.7.2)':
dependencies:
'@hey-api/json-schema-ref-parser': 1.0.1
'@apidevtools/json-schema-ref-parser': 11.7.2
c12: 2.0.1
commander: 13.0.0
commander: 12.1.0
handlebars: 4.7.8
typescript: 5.7.2
transitivePeerDependencies:
@@ -14753,7 +14740,7 @@ snapshots:
fast-glob: 3.3.2
is-glob: 4.0.3
open: 9.1.0
picocolors: 1.1.1
picocolors: 1.0.0
tslib: 2.8.1
'@protobufjs/aspromise@1.1.2': {}
@@ -15441,7 +15428,7 @@ snapshots:
'@types/resolve': 1.20.2
deepmerge: 4.3.1
is-module: 1.0.0
resolve: 1.22.10
resolve: 1.22.2
optionalDependencies:
rollup: 4.28.1
@@ -15990,7 +15977,7 @@ snapshots:
optionalDependencies:
chokidar: 3.6.0
'@swc/core-darwin-arm64@1.10.4':
'@swc/core-darwin-arm64@1.10.1':
optional: true
'@swc/core-darwin-arm64@1.9.1':
@@ -15999,7 +15986,7 @@ snapshots:
'@swc/core-darwin-arm64@1.9.2':
optional: true
'@swc/core-darwin-x64@1.10.4':
'@swc/core-darwin-x64@1.10.1':
optional: true
'@swc/core-darwin-x64@1.9.1':
@@ -16008,7 +15995,7 @@ snapshots:
'@swc/core-darwin-x64@1.9.2':
optional: true
'@swc/core-linux-arm-gnueabihf@1.10.4':
'@swc/core-linux-arm-gnueabihf@1.10.1':
optional: true
'@swc/core-linux-arm-gnueabihf@1.9.1':
@@ -16017,7 +16004,7 @@ snapshots:
'@swc/core-linux-arm-gnueabihf@1.9.2':
optional: true
'@swc/core-linux-arm64-gnu@1.10.4':
'@swc/core-linux-arm64-gnu@1.10.1':
optional: true
'@swc/core-linux-arm64-gnu@1.9.1':
@@ -16026,7 +16013,7 @@ snapshots:
'@swc/core-linux-arm64-gnu@1.9.2':
optional: true
'@swc/core-linux-arm64-musl@1.10.4':
'@swc/core-linux-arm64-musl@1.10.1':
optional: true
'@swc/core-linux-arm64-musl@1.9.1':
@@ -16035,7 +16022,7 @@ snapshots:
'@swc/core-linux-arm64-musl@1.9.2':
optional: true
'@swc/core-linux-x64-gnu@1.10.4':
'@swc/core-linux-x64-gnu@1.10.1':
optional: true
'@swc/core-linux-x64-gnu@1.9.1':
@@ -16044,7 +16031,7 @@ snapshots:
'@swc/core-linux-x64-gnu@1.9.2':
optional: true
'@swc/core-linux-x64-musl@1.10.4':
'@swc/core-linux-x64-musl@1.10.1':
optional: true
'@swc/core-linux-x64-musl@1.9.1':
@@ -16053,7 +16040,7 @@ snapshots:
'@swc/core-linux-x64-musl@1.9.2':
optional: true
'@swc/core-win32-arm64-msvc@1.10.4':
'@swc/core-win32-arm64-msvc@1.10.1':
optional: true
'@swc/core-win32-arm64-msvc@1.9.1':
@@ -16062,7 +16049,7 @@ snapshots:
'@swc/core-win32-arm64-msvc@1.9.2':
optional: true
'@swc/core-win32-ia32-msvc@1.10.4':
'@swc/core-win32-ia32-msvc@1.10.1':
optional: true
'@swc/core-win32-ia32-msvc@1.9.1':
@@ -16071,7 +16058,7 @@ snapshots:
'@swc/core-win32-ia32-msvc@1.9.2':
optional: true
'@swc/core-win32-x64-msvc@1.10.4':
'@swc/core-win32-x64-msvc@1.10.1':
optional: true
'@swc/core-win32-x64-msvc@1.9.1':
@@ -16080,21 +16067,21 @@ snapshots:
'@swc/core-win32-x64-msvc@1.9.2':
optional: true
'@swc/core@1.10.4(@swc/helpers@0.5.15)':
'@swc/core@1.10.1(@swc/helpers@0.5.15)':
dependencies:
'@swc/counter': 0.1.3
'@swc/types': 0.1.17
optionalDependencies:
'@swc/core-darwin-arm64': 1.10.4
'@swc/core-darwin-x64': 1.10.4
'@swc/core-linux-arm-gnueabihf': 1.10.4
'@swc/core-linux-arm64-gnu': 1.10.4
'@swc/core-linux-arm64-musl': 1.10.4
'@swc/core-linux-x64-gnu': 1.10.4
'@swc/core-linux-x64-musl': 1.10.4
'@swc/core-win32-arm64-msvc': 1.10.4
'@swc/core-win32-ia32-msvc': 1.10.4
'@swc/core-win32-x64-msvc': 1.10.4
'@swc/core-darwin-arm64': 1.10.1
'@swc/core-darwin-x64': 1.10.1
'@swc/core-linux-arm-gnueabihf': 1.10.1
'@swc/core-linux-arm64-gnu': 1.10.1
'@swc/core-linux-arm64-musl': 1.10.1
'@swc/core-linux-x64-gnu': 1.10.1
'@swc/core-linux-x64-musl': 1.10.1
'@swc/core-win32-arm64-msvc': 1.10.1
'@swc/core-win32-ia32-msvc': 1.10.1
'@swc/core-win32-x64-msvc': 1.10.1
'@swc/helpers': 0.5.15
'@swc/core@1.9.1(@swc/helpers@0.5.15)':
@@ -16957,7 +16944,7 @@ snapshots:
ansi-regex@5.0.1: {}
ansi-regex@6.1.0: {}
ansi-regex@6.0.1: {}
ansi-styles@3.2.1:
dependencies:
@@ -17278,7 +17265,7 @@ snapshots:
dependencies:
node-gyp-build: 4.8.4
bunchee@6.2.0(typescript@5.7.2):
bunchee@6.0.3(typescript@5.7.2):
dependencies:
'@rollup/plugin-commonjs': 28.0.2(rollup@4.28.1)
'@rollup/plugin-json': 6.1.0(rollup@4.28.1)
@@ -17286,7 +17273,7 @@ snapshots:
'@rollup/plugin-replace': 6.0.2(rollup@4.28.1)
'@rollup/plugin-wasm': 6.2.2(rollup@4.28.1)
'@rollup/pluginutils': 5.1.4(rollup@4.28.1)
'@swc/core': 1.10.4(@swc/helpers@0.5.15)
'@swc/core': 1.10.1(@swc/helpers@0.5.15)
'@swc/helpers': 0.5.15
clean-css: 5.3.3
glob: 11.0.0
@@ -17296,7 +17283,7 @@ snapshots:
pretty-bytes: 5.6.0
rollup: 4.28.1
rollup-plugin-dts: 6.1.1(rollup@4.28.1)(typescript@5.7.2)
rollup-plugin-swc3: 0.11.2(@swc/core@1.10.4(@swc/helpers@0.5.15))(rollup@4.28.1)
rollup-plugin-swc3: 0.11.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(rollup@4.28.1)
rollup-preserve-directives: 1.1.3(rollup@4.28.1)
tslib: 2.8.1
yargs: 17.7.2
@@ -17420,8 +17407,6 @@ snapshots:
chalk@5.3.0: {}
chalk@5.4.1: {}
character-entities-html4@2.1.0: {}
character-entities-legacy@1.1.4: {}
@@ -17652,8 +17637,6 @@ snapshots:
commander@12.1.0: {}
commander@13.0.0: {}
commander@2.20.3: {}
commander@4.1.1: {}
@@ -18209,7 +18192,7 @@ snapshots:
esast-util-from-js@2.0.1:
dependencies:
'@types/estree-jsx': 1.0.5
acorn: 8.14.0
acorn: 8.10.0
esast-util-from-estree: 2.0.0
vfile-message: 4.0.2
@@ -18318,6 +18301,8 @@ snapshots:
'@esbuild/win32-ia32': 0.24.0
'@esbuild/win32-x64': 0.24.0
escalade@3.1.1: {}
escalade@3.2.0: {}
escape-string-regexp@1.0.5: {}
@@ -18383,7 +18368,7 @@ snapshots:
dependencies:
debug: 3.2.7
is-core-module: 2.16.0
resolve: 1.22.10
resolve: 1.22.9
transitivePeerDependencies:
- supports-color
@@ -18579,9 +18564,10 @@ snapshots:
dependencies:
estraverse: 5.3.0
esrap@1.3.2:
esrap@1.3.1:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.0
'@typescript-eslint/types': 8.18.1
esrecurse@4.3.0:
dependencies:
@@ -18808,7 +18794,7 @@ snapshots:
enhanced-resolve: 5.17.1
module-definition: 6.0.0
module-lookup-amd: 9.0.2
resolve: 1.22.10
resolve: 1.22.9
resolve-dependency-path: 4.0.0
sass-lookup: 6.0.1
stylus-lookup: 6.0.0
@@ -19804,10 +19790,6 @@ snapshots:
dependencies:
hasown: 2.0.2
is-core-module@2.16.1:
dependencies:
hasown: 2.0.2
is-data-view@1.0.2:
dependencies:
call-bound: 1.0.3
@@ -20302,7 +20284,7 @@ snapshots:
log-symbols@6.0.0:
dependencies:
chalk: 5.4.1
chalk: 5.3.0
is-unicode-supported: 1.3.0
log-update@6.1.0:
@@ -21302,7 +21284,7 @@ snapshots:
miniflare@3.20241106.1(bufferutil@4.0.8):
dependencies:
'@cspotcode/source-map-support': 0.8.1
acorn: 8.14.0
acorn: 8.10.0
acorn-walk: 8.2.0
capnp-ts: 0.7.0
exit-hook: 2.2.1
@@ -21661,7 +21643,7 @@ snapshots:
normalize-package-data@2.5.0:
dependencies:
hosted-git-info: 2.8.9
resolve: 1.22.10
resolve: 1.22.2
semver: 5.7.2
validate-npm-package-license: 3.0.4
@@ -21929,7 +21911,7 @@ snapshots:
ora@8.1.1:
dependencies:
chalk: 5.4.1
chalk: 5.3.0
cli-cursor: 5.0.0
cli-spinners: 2.9.2
is-interactive: 2.0.0
@@ -22954,12 +22936,6 @@ snapshots:
resolve.exports@2.0.2: {}
resolve@1.22.10:
dependencies:
is-core-module: 2.16.1
path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0
resolve@1.22.2:
dependencies:
is-core-module: 2.12.1
@@ -23028,11 +23004,11 @@ snapshots:
dependencies:
rollup-plugin-inject: 3.0.2
rollup-plugin-swc3@0.11.2(@swc/core@1.10.4(@swc/helpers@0.5.15))(rollup@4.28.1):
rollup-plugin-swc3@0.11.2(@swc/core@1.10.1(@swc/helpers@0.5.15))(rollup@4.28.1):
dependencies:
'@fastify/deepmerge': 1.3.0
'@rollup/pluginutils': 5.1.4(rollup@4.28.1)
'@swc/core': 1.10.4(@swc/helpers@0.5.15)
'@swc/core': 1.10.1(@swc/helpers@0.5.15)
get-tsconfig: 4.8.1
rollup: 4.28.1
rollup-preserve-directives: 1.1.3(rollup@4.28.1)
@@ -23611,7 +23587,7 @@ snapshots:
strip-ansi@7.1.0:
dependencies:
ansi-regex: 6.1.0
ansi-regex: 6.0.1
strip-bom-string@1.0.0: {}
@@ -23700,7 +23676,7 @@ snapshots:
aria-query: 5.3.2
axobject-query: 4.1.0
esm-env: 1.2.1
esrap: 1.3.2
esrap: 1.3.1
is-reference: 3.0.3
locate-character: 3.0.0
magic-string: 0.30.17
@@ -24911,7 +24887,7 @@ snapshots:
yargs@17.7.2:
dependencies:
cliui: 8.0.1
escalade: 3.2.0
escalade: 3.1.1
get-caller-file: 2.0.5
require-directory: 2.1.1
string-width: 4.2.3
-15
View File
@@ -1,20 +1,5 @@
# @llamaindex/unit-test
## 0.0.41
### Patch Changes
- Updated dependencies [5dec9f9]
- Updated dependencies [fd9c829]
- Updated dependencies [d211b7a]
- Updated dependencies [0ebbfc1]
- @llamaindex/cloud@2.0.21
- llamaindex@0.8.31
- @llamaindex/core@0.4.20
- @llamaindex/node-parser@0.0.21
- @llamaindex/openai@0.1.45
- @llamaindex/readers@1.0.22
## 0.0.40
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/unit-test",
"private": true,
"version": "0.0.41",
"version": "0.0.40",
"type": "module",
"scripts": {
"test": "vitest run"