Compare commits

..

5 Commits

Author SHA1 Message Date
github-actions[bot] eaf2cb11a5 Release 0.11.3 (#1966)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-22 16:58:59 +07:00
Marcus Schiesser 3ae01a227e chore: remove repin (#1967) 2025-05-22 16:53:44 +07:00
Marcus Schiesser 76ff23dc48 fix: pRetry not working with CommonJS 2025-05-22 15:14:00 +07:00
github-actions[bot] ed497727b1 Release 0.11.2 (#1964)
Co-authored-by: marcusschiesser <17126+marcusschiesser@users.noreply.github.com>
2025-05-22 14:34:37 +07:00
Marcus Schiesser 59601dd3ab feat: Add support for builtin image generation tool 2025-05-22 13:12:23 +07:00
132 changed files with 908 additions and 211 deletions
+21
View File
@@ -1,5 +1,26 @@
# @llamaindex/doc
## 0.2.22
### Patch Changes
- Updated dependencies [76ff23d]
- @llamaindex/cloud@4.0.11
- llamaindex@0.11.3
## 0.2.21
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
- @llamaindex/core@0.6.7
- @llamaindex/cloud@4.0.10
- llamaindex@0.11.2
- @llamaindex/node-parser@2.0.7
- @llamaindex/readers@3.1.5
- @llamaindex/workflow@1.1.4
## 0.2.20
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/doc",
"version": "0.2.20",
"version": "0.2.22",
"private": true,
"scripts": {
"postinstall": "fumadocs-mdx",
@@ -1,5 +1,17 @@
# @llamaindex/cloudflare-worker-agent-test
## 0.0.164
### Patch Changes
- llamaindex@0.11.3
## 0.0.163
### Patch Changes
- llamaindex@0.11.2
## 0.0.162
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloudflare-worker-agent-test",
"version": "0.0.162",
"version": "0.0.164",
"type": "module",
"private": true,
"scripts": {
@@ -1,5 +1,18 @@
# @llamaindex/llama-parse-browser-test
## 0.0.66
### Patch Changes
- Updated dependencies [76ff23d]
- @llamaindex/cloud@4.0.11
## 0.0.65
### Patch Changes
- @llamaindex/cloud@4.0.10
## 0.0.64
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/llama-parse-browser-test",
"private": true,
"version": "0.0.64",
"version": "0.0.66",
"type": "module",
"scripts": {
"dev": "vite",
+12
View File
@@ -1,5 +1,17 @@
# @llamaindex/next-agent-test
## 0.1.164
### Patch Changes
- llamaindex@0.11.3
## 0.1.163
### Patch Changes
- llamaindex@0.11.2
## 0.1.162
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-agent-test",
"version": "0.1.162",
"version": "0.1.164",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,17 @@
# test-edge-runtime
## 0.1.163
### Patch Changes
- llamaindex@0.11.3
## 0.1.162
### Patch Changes
- llamaindex@0.11.2
## 0.1.161
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/nextjs-edge-runtime-test",
"version": "0.1.161",
"version": "0.1.163",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,19 @@
# @llamaindex/next-node-runtime
## 0.1.31
### Patch Changes
- llamaindex@0.11.3
## 0.1.30
### Patch Changes
- @llamaindex/huggingface@0.1.11
- llamaindex@0.11.2
- @llamaindex/readers@3.1.5
## 0.1.29
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-node-runtime-test",
"version": "0.1.29",
"version": "0.1.31",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,17 @@
# vite-import-llamaindex
## 0.0.30
### Patch Changes
- llamaindex@0.11.3
## 0.0.29
### Patch Changes
- llamaindex@0.11.2
## 0.0.28
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "vite-import-llamaindex",
"private": true,
"version": "0.0.28",
"version": "0.0.30",
"type": "module",
"scripts": {
"build": "vite build",
@@ -1,5 +1,17 @@
# @llamaindex/waku-query-engine-test
## 0.0.164
### Patch Changes
- llamaindex@0.11.3
## 0.0.163
### Patch Changes
- llamaindex@0.11.2
## 0.0.162
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/waku-query-engine-test",
"version": "0.0.162",
"version": "0.0.164",
"type": "module",
"private": true,
"scripts": {
+51
View File
@@ -1,5 +1,56 @@
# examples
## 0.3.17
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
- @llamaindex/core@0.6.7
- @llamaindex/clip@0.0.57
- @llamaindex/deepinfra@0.0.57
- @llamaindex/deepseek@0.0.17
- @llamaindex/fireworks@0.0.17
- @llamaindex/groq@0.0.72
- @llamaindex/huggingface@0.1.11
- @llamaindex/jinaai@0.0.17
- @llamaindex/perplexity@0.0.14
- @llamaindex/azure@0.1.17
- @llamaindex/elastic-search@0.1.7
- @llamaindex/milvus@0.1.16
- @llamaindex/qdrant@0.1.16
- @llamaindex/supabase@0.1.6
- @llamaindex/together@0.0.17
- @llamaindex/vllm@0.0.43
- @llamaindex/xai@0.0.4
- @llamaindex/cloud@4.0.10
- llamaindex@0.11.2
- @llamaindex/node-parser@2.0.7
- @llamaindex/anthropic@0.3.8
- @llamaindex/assemblyai@0.1.6
- @llamaindex/cohere@0.0.21
- @llamaindex/discord@0.1.6
- @llamaindex/google@0.3.3
- @llamaindex/mistral@0.1.7
- @llamaindex/mixedbread@0.0.21
- @llamaindex/notion@0.1.6
- @llamaindex/ollama@0.1.7
- @llamaindex/portkey-ai@0.0.49
- @llamaindex/replicate@0.0.49
- @llamaindex/astra@0.0.21
- @llamaindex/chroma@0.0.21
- @llamaindex/firestore@1.0.14
- @llamaindex/mongodb@0.0.22
- @llamaindex/pinecone@0.1.7
- @llamaindex/postgres@0.0.50
- @llamaindex/upstash@0.0.21
- @llamaindex/weaviate@0.0.21
- @llamaindex/vercel@0.1.7
- @llamaindex/voyage-ai@1.0.13
- @llamaindex/readers@3.1.5
- @llamaindex/tools@0.0.12
- @llamaindex/workflow@1.1.4
## 0.3.16
### Patch Changes
@@ -0,0 +1,35 @@
import { openaiResponses } from "@llamaindex/openai";
import fs from "fs";
import { MessageContentDetail } from "llamaindex";
async function main() {
const llm = openaiResponses({
model: "gpt-4.1-mini",
builtInTools: [{ type: "image_generation" }],
});
const response = await llm.chat({
messages: [
{
role: "user",
content:
"Generate an image of a cute tiny llama wearing a hat playing with a cat on a meadow",
},
],
});
const content = response.message.content as MessageContentDetail[];
// This call returns a message with two parts, an image and a text part, get both parts
const imagePart = content.find((part) => part.type === "image");
const textPart = content.find((part) => part.type === "text");
// write the image to a file
fs.writeFileSync(
"llama.png",
Buffer.from(imagePart?.data as string, "base64"),
);
// and print out the text part
console.log(textPart?.text);
}
main().catch(console.error);
@@ -0,0 +1,31 @@
import { openaiResponses } from "@llamaindex/openai";
async function main() {
const llm = openaiResponses({
model: "gpt-4.1",
builtInTools: [
{
type: "code_interpreter",
container: { type: "auto" },
},
],
});
const response = await llm.chat({
messages: [
{
role: "system",
content:
"You are a personal math tutor. When asked a math question, write and run code to answer the question.",
},
{
role: "user",
content: "I need to solve the equation 3x + 11 = 14. Can you help me?",
},
],
});
console.log(response.message.content);
}
main().catch(console.error);
@@ -7,7 +7,6 @@ async function main() {
builtInTools: [{ type: "web_search_preview" }],
});
// Streaming chat example
const response = await llm.chat({
messages: [
{
+46 -46
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/examples",
"version": "0.3.16",
"version": "0.3.17",
"private": true,
"scripts": {
"lint": "eslint .",
@@ -11,51 +11,51 @@
"@azure/cosmos": "^4.1.1",
"@azure/identity": "^4.4.1",
"@azure/search-documents": "^12.1.0",
"@llamaindex/anthropic": "^0.3.7",
"@llamaindex/assemblyai": "^0.1.5",
"@llamaindex/astra": "^0.0.20",
"@llamaindex/azure": "^0.1.16",
"@llamaindex/chroma": "^0.0.20",
"@llamaindex/clip": "^0.0.56",
"@llamaindex/cloud": "^4.0.8",
"@llamaindex/cohere": "^0.0.20",
"@llamaindex/core": "^0.6.6",
"@llamaindex/deepinfra": "^0.0.56",
"@llamaindex/deepseek": "^0.0.16",
"@llamaindex/discord": "^0.1.5",
"@llamaindex/elastic-search": "^0.1.6",
"@llamaindex/anthropic": "^0.3.8",
"@llamaindex/assemblyai": "^0.1.6",
"@llamaindex/astra": "^0.0.21",
"@llamaindex/azure": "^0.1.17",
"@llamaindex/chroma": "^0.0.21",
"@llamaindex/clip": "^0.0.57",
"@llamaindex/cloud": "^4.0.10",
"@llamaindex/cohere": "^0.0.21",
"@llamaindex/core": "^0.6.7",
"@llamaindex/deepinfra": "^0.0.57",
"@llamaindex/deepseek": "^0.0.17",
"@llamaindex/discord": "^0.1.6",
"@llamaindex/elastic-search": "^0.1.7",
"@llamaindex/env": "^0.1.30",
"@llamaindex/firestore": "^1.0.13",
"@llamaindex/fireworks": "^0.0.16",
"@llamaindex/google": "^0.3.2",
"@llamaindex/groq": "^0.0.71",
"@llamaindex/huggingface": "^0.1.10",
"@llamaindex/jinaai": "^0.0.16",
"@llamaindex/milvus": "^0.1.15",
"@llamaindex/mistral": "^0.1.6",
"@llamaindex/mixedbread": "^0.0.20",
"@llamaindex/mongodb": "^0.0.21",
"@llamaindex/node-parser": "^2.0.6",
"@llamaindex/notion": "^0.1.5",
"@llamaindex/ollama": "^0.1.6",
"@llamaindex/openai": "^0.4.0",
"@llamaindex/perplexity": "^0.0.13",
"@llamaindex/pinecone": "^0.1.6",
"@llamaindex/portkey-ai": "^0.0.48",
"@llamaindex/postgres": "^0.0.49",
"@llamaindex/qdrant": "^0.1.15",
"@llamaindex/readers": "^3.1.4",
"@llamaindex/replicate": "^0.0.48",
"@llamaindex/supabase": "^0.1.5",
"@llamaindex/together": "^0.0.16",
"@llamaindex/tools": "^0.0.11",
"@llamaindex/upstash": "^0.0.20",
"@llamaindex/vercel": "^0.1.6",
"@llamaindex/vllm": "^0.0.42",
"@llamaindex/voyage-ai": "^1.0.12",
"@llamaindex/weaviate": "^0.0.20",
"@llamaindex/workflow": "^1.1.3",
"@llamaindex/xai": "workspace:^0.0.3",
"@llamaindex/firestore": "^1.0.14",
"@llamaindex/fireworks": "^0.0.17",
"@llamaindex/google": "^0.3.3",
"@llamaindex/groq": "^0.0.72",
"@llamaindex/huggingface": "^0.1.11",
"@llamaindex/jinaai": "^0.0.17",
"@llamaindex/milvus": "^0.1.16",
"@llamaindex/mistral": "^0.1.7",
"@llamaindex/mixedbread": "^0.0.21",
"@llamaindex/mongodb": "^0.0.22",
"@llamaindex/node-parser": "^2.0.7",
"@llamaindex/notion": "^0.1.6",
"@llamaindex/ollama": "^0.1.7",
"@llamaindex/openai": "^0.4.1",
"@llamaindex/perplexity": "^0.0.14",
"@llamaindex/pinecone": "^0.1.7",
"@llamaindex/portkey-ai": "^0.0.49",
"@llamaindex/postgres": "^0.0.50",
"@llamaindex/qdrant": "^0.1.16",
"@llamaindex/readers": "^3.1.5",
"@llamaindex/replicate": "^0.0.49",
"@llamaindex/supabase": "^0.1.6",
"@llamaindex/together": "^0.0.17",
"@llamaindex/tools": "^0.0.12",
"@llamaindex/upstash": "^0.0.21",
"@llamaindex/vercel": "^0.1.7",
"@llamaindex/vllm": "^0.0.43",
"@llamaindex/voyage-ai": "^1.0.13",
"@llamaindex/weaviate": "^0.0.21",
"@llamaindex/workflow": "^1.1.4",
"@llamaindex/xai": "workspace:^0.0.4",
"@notionhq/client": "^2.2.15",
"@pinecone-database/pinecone": "^4.0.0",
"@vercel/postgres": "^0.10.0",
@@ -64,7 +64,7 @@
"commander": "^12.1.0",
"dotenv": "^16.4.5",
"js-tiktoken": "^1.0.14",
"llamaindex": "^0.11.0",
"llamaindex": "^0.11.2",
"mongodb": "6.7.0",
"postgres": "^3.4.4",
"wikipedia": "^2.1.2",
+9 -1
View File
@@ -1,5 +1,13 @@
import { LlamaParseReader } from "@llamaindex/cloud";
import { VectorStoreIndex } from "llamaindex";
import { openai, OpenAIEmbedding } from "@llamaindex/openai";
import { Settings, VectorStoreIndex } from "llamaindex";
Settings.llm = openai({
model: "gpt-4.1",
});
Settings.embedModel = new OpenAIEmbedding({
model: "text-embedding-3-small",
});
async function main() {
// Load PDF using LlamaParse
+2 -3
View File
@@ -15,10 +15,9 @@
"circular-check": "madge --circular ./packages/**/**/dist/index.js",
"release": "pnpm run build && changeset publish",
"release-snapshot": "pnpm run build && changeset publish --tag snapshot",
"new-version": "changeset version && pnpm postversion && pnpm format:write && pnpm run build",
"new-version": "changeset version && pnpm format:write && pnpm run build",
"new-snapshot": "pnpm run build && changeset version --snapshot",
"lint-staged": "lint-staged",
"postversion": "node scripts/repin-workflow.mjs"
"lint-staged": "lint-staged"
},
"devDependencies": {
"@changesets/cli": "^2.27.5",
+12
View File
@@ -1,5 +1,17 @@
# @llamaindex/autotool
## 8.0.3
### Patch Changes
- llamaindex@0.11.3
## 8.0.2
### Patch Changes
- llamaindex@0.11.2
## 8.0.1
### Patch Changes
@@ -1,5 +1,19 @@
# @llamaindex/autotool-01-node-example
## 0.0.111
### Patch Changes
- llamaindex@0.11.3
- @llamaindex/autotool@8.0.3
## 0.0.110
### Patch Changes
- llamaindex@0.11.2
- @llamaindex/autotool@8.0.2
## 0.0.109
### Patch Changes
@@ -13,5 +13,5 @@
"scripts": {
"start": "node --import tsx --import @llamaindex/autotool/node ./src/index.ts"
},
"version": "0.0.109"
"version": "0.0.111"
}
+1 -1
View File
@@ -6,7 +6,7 @@
"url": "git+https://github.com/run-llama/LlamaIndexTS.git",
"directory": "packages/autotool"
},
"version": "8.0.1",
"version": "8.0.3",
"description": "auto transpile your JS function to LLM Agent compatible",
"files": [
"dist",
+13
View File
@@ -1,5 +1,18 @@
# @llamaindex/cloud
## 4.0.11
### Patch Changes
- 76ff23d: Fix pRetry not working with CommonJS
## 4.0.10
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 4.0.9
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloud",
"version": "4.0.9",
"version": "4.0.11",
"type": "module",
"license": "MIT",
"scripts": {
+1 -1
View File
@@ -2,7 +2,6 @@
import { type Client, createClient, createConfig } from "@hey-api/client-fetch";
import { Document, FileReader } from "@llamaindex/core/schema";
import { fs, getEnv, path } from "@llamaindex/env";
import pRetry from "p-retry";
import {
type BodyUploadFileApiParsingUploadPost,
type FailPageMode,
@@ -391,6 +390,7 @@ export class LlamaParseReader extends FileReader {
): Promise<any> {
let tries = 0;
let currentInterval = this.checkInterval;
const { default: pRetry } = await import("p-retry");
while (true) {
await sleep(currentInterval * 1000);
+6
View File
@@ -1,5 +1,11 @@
# @llamaindex/core
## 0.6.7
### Patch Changes
- 59601dd: Add support for builtin image generation tool
## 0.6.6
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/core",
"type": "module",
"version": "0.6.6",
"version": "0.6.7",
"description": "LlamaIndex Core Module",
"exports": {
"./agent": {
+1
View File
@@ -36,3 +36,4 @@ export type {
ToolResult,
ToolResultOptions,
} from "./type";
export { addContentPart } from "./utils";
+28
View File
@@ -0,0 +1,28 @@
import type {
ChatMessage,
MessageContentImageDataDetail,
MessageContentTextDetail,
} from "./type";
export function addContentPart<AdditionalMessageOptions extends object>(
message: ChatMessage<AdditionalMessageOptions>,
part: MessageContentTextDetail | MessageContentImageDataDetail,
): void {
if (part.type === "text") {
if (typeof message.content === "string") {
message.content += part.text;
} else {
message.content.push(part);
}
} else {
if (typeof message.content === "string") {
if (message.content === "") {
message.content = [part];
} else {
message.content = [{ type: "text", text: message.content }, part];
}
} else {
message.content.push(part);
}
}
}
+12
View File
@@ -1,5 +1,17 @@
# @llamaindex/experimental
## 0.0.180
### Patch Changes
- llamaindex@0.11.3
## 0.0.179
### Patch Changes
- llamaindex@0.11.2
## 0.0.178
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/experimental",
"description": "Experimental package for LlamaIndexTS",
"version": "0.0.178",
"version": "0.0.180",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+17
View File
@@ -1,5 +1,22 @@
# llamaindex
## 0.11.3
### Patch Changes
- Updated dependencies [76ff23d]
- @llamaindex/cloud@4.0.11
## 0.11.2
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
- @llamaindex/cloud@4.0.10
- @llamaindex/node-parser@2.0.7
- @llamaindex/workflow@1.1.4
## 0.11.1
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "llamaindex",
"version": "0.11.1",
"version": "0.11.3",
"license": "MIT",
"type": "module",
"keywords": [
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/core-test
## 0.1.2
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
## 0.1.1
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/llamaindex-test",
"private": true,
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"scripts": {
"test": "vitest run"
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/node-parser
## 2.0.7
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 2.0.6
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/node-parser",
"version": "2.0.6",
"version": "2.0.7",
"description": "Node parser for LlamaIndex",
"type": "module",
"exports": {
@@ -1,5 +1,12 @@
# @llamaindex/anthropic
## 0.3.8
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.3.7
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/anthropic",
"description": "Anthropic Adapter for LlamaIndex",
"version": "0.3.7",
"version": "0.3.8",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/assemblyai
## 0.1.6
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.1.5
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/assemblyai",
"description": "AssemblyAI Reader for LlamaIndex",
"version": "0.1.5",
"version": "0.1.6",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/community
## 0.0.101
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.0.100
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/aws",
"description": "AWS package for LlamaIndexTS",
"version": "0.0.100",
"version": "0.0.101",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+8
View File
@@ -1,5 +1,13 @@
# @llamaindex/clip
## 0.0.57
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
- @llamaindex/core@0.6.7
## 0.0.56
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/clip",
"description": "Clip Embedding Adapter for LlamaIndex",
"version": "0.0.56",
"version": "0.0.57",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/cohere
## 0.0.21
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.0.20
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/cohere",
"description": "Cohere Adapter for LlamaIndex",
"version": "0.0.20",
"version": "0.0.21",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,13 @@
# @llamaindex/deepinfra
## 0.0.57
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
- @llamaindex/core@0.6.7
## 0.0.56
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/deepinfra",
"description": "Deepinfra Adapter for LlamaIndex",
"version": "0.0.56",
"version": "0.0.57",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/deepseek
## 0.0.17
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
## 0.0.16
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/deepseek",
"description": "DeepSeek Adapter for LlamaIndex",
"version": "0.0.16",
"version": "0.0.17",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/discord
## 0.1.6
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.1.5
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/discord",
"description": "Discord Reader for LlamaIndex",
"version": "0.1.5",
"version": "0.1.6",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
@@ -1,5 +1,12 @@
# @llamaindex/fireworks
## 0.0.17
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
## 0.0.16
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/fireworks",
"description": "Fireworks Adapter for LlamaIndex",
"version": "0.0.16",
"version": "0.0.17",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/google
## 0.3.3
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.3.2
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/google",
"description": "Google Adapter for LlamaIndex",
"version": "0.3.2",
"version": "0.3.3",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/groq
## 0.0.72
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
## 0.0.71
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/groq",
"description": "Groq Adapter for LlamaIndex",
"version": "0.0.71",
"version": "0.0.72",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,13 @@
# @llamaindex/huggingface
## 0.1.11
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
- @llamaindex/core@0.6.7
## 0.1.10
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/huggingface",
"description": "Huggingface Adapter for LlamaIndex",
"version": "0.1.10",
"version": "0.1.11",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
+8
View File
@@ -1,5 +1,13 @@
# @llamaindex/jinaai
## 0.0.17
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
- @llamaindex/core@0.6.7
## 0.0.16
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/jinaai",
"description": "JinaAI Adapter for LlamaIndex",
"version": "0.0.16",
"version": "0.0.17",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/mistral
## 0.1.7
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.1.6
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/mistral",
"description": "Mistral Adapter for LlamaIndex",
"version": "0.1.6",
"version": "0.1.7",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/mixedbread
## 0.0.21
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.0.20
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/mixedbread",
"description": "Mixedbread Adapter for LlamaIndex",
"version": "0.0.20",
"version": "0.0.21",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/notion
## 0.1.6
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.1.5
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/notion",
"description": "Notion Reader for LlamaIndex",
"version": "0.1.5",
"version": "0.1.6",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/ollama
## 0.1.7
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.1.6
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/ollama",
"description": "Ollama Adapter for LlamaIndex",
"version": "0.1.6",
"version": "0.1.7",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+8
View File
@@ -1,5 +1,13 @@
# @llamaindex/openai
## 0.4.1
### Patch Changes
- 59601dd: Add support for builtin image generation tool
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.4.0
### Minor Changes
+4 -4
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/openai",
"description": "OpenAI Adapter for LlamaIndex",
"version": "0.4.0",
"version": "0.4.1",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -31,15 +31,15 @@
"test": "vitest"
},
"devDependencies": {
"zod": "^3.24.2",
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*"
"@llamaindex/env": "workspace:*",
"zod": "^3.24.2"
},
"peerDependencies": {
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*"
},
"dependencies": {
"openai": "^4.90.0"
"openai": "^4.102.0"
}
}
+21 -1
View File
@@ -1,4 +1,5 @@
import {
addContentPart,
ToolCallLLM,
type BaseTool,
type ChatMessage,
@@ -8,6 +9,7 @@ import {
type LLMChatParamsStreaming,
type LLMMetadata,
type MessageContent,
type MessageContentImageDataDetail,
type MessageType,
type PartialToolCall,
type ToolCallLLMMessageOptions,
@@ -182,6 +184,15 @@ export class OpenAIResponses extends ToolCallLLM<OpenAIResponsesChatOptions> {
return item.type === "function_call";
}
private isImageGenerationCall(
item: OpenAILLM.Responses.ResponseOutputItem,
): item is OpenAILLM.Responses.ResponseOutputItem.ImageGenerationCall {
return (
item.type === "image_generation_call" &&
typeof (item as { result?: unknown }).result === "string"
);
}
private isResponseCreatedEvent(
event: OpenAILLM.Responses.ResponseStreamEvent,
): event is OpenAILLM.Responses.ResponseCreatedEvent {
@@ -313,7 +324,16 @@ export class OpenAIResponses extends ToolCallLLM<OpenAIResponsesChatOptions> {
for (const item of response) {
if (this.isMessageBlock(item)) {
const outputContent = this.handleResponseOutputMessage(item, options);
message.content = outputContent;
if (outputContent) {
addContentPart(message, { type: "text", text: outputContent });
}
} else if (this.isImageGenerationCall(item) && item.result) {
const imagePart: MessageContentImageDataDetail = {
type: "image",
data: item.result,
mimeType: "image/png",
};
addContentPart(message, imagePart);
} else if (this.isBuiltInToolCall(item)) {
options.built_in_tool_calls.push(item);
} else if (this.isReasoning(item)) {
+1
View File
@@ -129,6 +129,7 @@ export const ALL_AVAILABLE_OPENAI_MODELS = {
...O1_MODELS,
...O3_MODELS,
...O4_MODELS,
"codex-mini-latest": { contextWindow: 200000 },
} satisfies Record<ChatModel, { contextWindow: number }>;
export function isFunctionCallingModel(llm: LLM): llm is OpenAI {
@@ -1,5 +1,13 @@
# @llamaindex/perplexity
## 0.0.14
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
- @llamaindex/core@0.6.7
## 0.0.13
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/perplexity",
"description": "Perplexity Adapter for LlamaIndex",
"version": "0.0.13",
"version": "0.0.14",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/portkey-ai
## 0.0.49
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.0.48
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/portkey-ai",
"description": "Portkey Adapter for LlamaIndex",
"version": "0.0.48",
"version": "0.0.49",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/replicate
## 0.0.49
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.0.48
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/replicate",
"description": "Replicate Adapter for LlamaIndex",
"version": "0.0.48",
"version": "0.0.49",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/astra
## 0.0.21
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.0.20
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/astra",
"description": "Astra Storage for LlamaIndex",
"version": "0.0.20",
"version": "0.0.21",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,13 @@
# @llamaindex/azure
## 0.1.17
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/openai@0.4.1
- @llamaindex/core@0.6.7
## 0.1.16
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/azure",
"description": "Azure Storage for LlamaIndex",
"version": "0.1.16",
"version": "0.1.17",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/chroma
## 0.0.21
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.0.20
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/chroma",
"description": "Chroma Storage for LlamaIndex",
"version": "0.0.20",
"version": "0.0.21",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/elastic-search
## 0.1.7
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.1.6
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/elastic-search",
"description": "Elastic Search Storage for LlamaIndex",
"version": "0.1.6",
"version": "0.1.7",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/firestore
## 1.0.14
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 1.0.13
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/firestore",
"description": "Firestore Storage for LlamaIndex",
"version": "1.0.13",
"version": "1.0.14",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/milvus
## 0.1.16
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.1.15
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/milvus",
"description": "Milvus Storage for LlamaIndex",
"version": "0.1.15",
"version": "0.1.16",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/mongodb
## 0.0.22
### Patch Changes
- Updated dependencies [59601dd]
- @llamaindex/core@0.6.7
## 0.0.21
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/mongodb",
"description": "MongoDB Storage for LlamaIndex",
"version": "0.0.21",
"version": "0.0.22",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",

Some files were not shown because too many files have changed in this diff Show More