Compare commits

...

3 Commits

Author SHA1 Message Date
github-actions[bot] bd940d1d43 Release 0.8.34 (#1630)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-07 16:02:27 +07:00
Thuc Pham 9f8ad37b79 fix: missing peer deps in llamaindex (#1631) 2025-02-07 15:06:41 +07:00
Peter Goldstein 7265f74c24 Add reasoning_effort for o1 and o3 (#1628) 2025-02-07 12:01:48 +07:00
39 changed files with 173 additions and 20 deletions
+9
View File
@@ -1,5 +1,14 @@
# @llamaindex/doc
## 0.0.38
### Patch Changes
- Updated dependencies [9f8ad37]
- Updated dependencies [7265f74]
- llamaindex@0.8.34
- @llamaindex/openai@0.1.48
## 0.0.37
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/doc",
"version": "0.0.37",
"version": "0.0.38",
"private": true,
"scripts": {
"build": "pnpm run build:docs && next build",
@@ -21,4 +21,4 @@ Check the [LlamaIndexTS Github](https://github.com/run-llama/LlamaIndexTS) for t
## API Reference
- [VectorStoreBase](/docs/api/classes/VectorStoreBase)
- [BaseVectorStore](/docs/api/classes/BaseVectorStore)
@@ -1,5 +1,12 @@
# @llamaindex/cloudflare-worker-agent-test
## 0.0.130
### Patch Changes
- Updated dependencies [9f8ad37]
- llamaindex@0.8.34
## 0.0.129
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloudflare-worker-agent-test",
"version": "0.0.129",
"version": "0.0.130",
"type": "module",
"private": true,
"scripts": {
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/next-agent-test
## 0.1.130
### Patch Changes
- Updated dependencies [9f8ad37]
- llamaindex@0.8.34
## 0.1.129
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-agent-test",
"version": "0.1.129",
"version": "0.1.130",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,12 @@
# test-edge-runtime
## 0.1.129
### Patch Changes
- Updated dependencies [9f8ad37]
- llamaindex@0.8.34
## 0.1.128
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/nextjs-edge-runtime-test",
"version": "0.1.128",
"version": "0.1.129",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,12 @@
# @llamaindex/next-node-runtime
## 0.0.111
### Patch Changes
- Updated dependencies [9f8ad37]
- llamaindex@0.8.34
## 0.0.110
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-node-runtime-test",
"version": "0.0.110",
"version": "0.0.111",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,12 @@
# @llamaindex/waku-query-engine-test
## 0.0.130
### Patch Changes
- Updated dependencies [9f8ad37]
- llamaindex@0.8.34
## 0.0.129
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/waku-query-engine-test",
"version": "0.0.129",
"version": "0.0.130",
"type": "module",
"private": true,
"scripts": {
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/autotool
## 5.0.34
### Patch Changes
- Updated dependencies [9f8ad37]
- llamaindex@0.8.34
## 5.0.33
### Patch Changes
@@ -1,5 +1,13 @@
# @llamaindex/autotool-01-node-example
## 0.0.77
### Patch Changes
- Updated dependencies [9f8ad37]
- llamaindex@0.8.34
- @llamaindex/autotool@5.0.34
## 0.0.76
### Patch Changes
@@ -13,5 +13,5 @@
"scripts": {
"start": "node --import tsx --import @llamaindex/autotool/node ./src/index.ts"
},
"version": "0.0.76"
"version": "0.0.77"
}
@@ -1,5 +1,13 @@
# @llamaindex/autotool-02-next-example
## 0.1.121
### Patch Changes
- Updated dependencies [9f8ad37]
- llamaindex@0.8.34
- @llamaindex/autotool@5.0.34
## 0.1.120
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool-02-next-example",
"private": true,
"version": "0.1.120",
"version": "0.1.121",
"scripts": {
"dev": "next dev",
"build": "next build",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool",
"type": "module",
"version": "5.0.33",
"version": "5.0.34",
"description": "auto transpile your JS function to LLM Agent compatible",
"files": [
"dist",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/experimental
## 0.0.146
### Patch Changes
- Updated dependencies [9f8ad37]
- llamaindex@0.8.34
## 0.0.145
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/experimental",
"description": "Experimental package for LlamaIndexTS",
"version": "0.0.145",
"version": "0.0.146",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+13
View File
@@ -1,5 +1,18 @@
# llamaindex
## 0.8.34
### Patch Changes
- 9f8ad37: fix: missing peer deps in llamaindex
- Updated dependencies [7265f74]
- @llamaindex/openai@0.1.48
- @llamaindex/clip@0.0.32
- @llamaindex/deepinfra@0.0.32
- @llamaindex/groq@0.0.47
- @llamaindex/huggingface@0.0.32
- @llamaindex/vllm@0.0.18
## 0.8.33
### Patch Changes
+3 -2
View File
@@ -1,6 +1,6 @@
{
"name": "llamaindex",
"version": "0.8.33",
"version": "0.8.34",
"license": "MIT",
"type": "module",
"keywords": [
@@ -53,7 +53,8 @@
"@types/node": "^22.9.0",
"ajv": "^8.17.1",
"lodash": "^4.17.21",
"magic-bytes.js": "^1.10.0"
"magic-bytes.js": "^1.10.0",
"gpt-tokenizer": "^2.6.2"
},
"devDependencies": {
"@swc/cli": "^0.5.0",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/clip
## 0.0.32
### Patch Changes
- Updated dependencies [7265f74]
- @llamaindex/openai@0.1.48
## 0.0.31
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/clip",
"description": "Clip Embedding Adapter for LlamaIndex",
"version": "0.0.31",
"version": "0.0.32",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
@@ -1,5 +1,12 @@
# @llamaindex/deepinfra
## 0.0.32
### Patch Changes
- Updated dependencies [7265f74]
- @llamaindex/openai@0.1.48
## 0.0.31
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/deepinfra",
"description": "Deepinfra Adapter for LlamaIndex",
"version": "0.0.31",
"version": "0.0.32",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/groq
## 0.0.47
### Patch Changes
- Updated dependencies [7265f74]
- @llamaindex/openai@0.1.48
## 0.0.46
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/groq",
"description": "Groq Adapter for LlamaIndex",
"version": "0.0.46",
"version": "0.0.47",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/huggingface
## 0.0.32
### Patch Changes
- Updated dependencies [7265f74]
- @llamaindex/openai@0.1.48
## 0.0.31
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/huggingface",
"description": "Huggingface Adapter for LlamaIndex",
"version": "0.0.31",
"version": "0.0.32",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
+6
View File
@@ -1,5 +1,11 @@
# @llamaindex/openai
## 0.1.48
### Patch Changes
- 7265f74: Add reasoning_effort for o1 and o3 models
## 0.1.47
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/openai",
"description": "OpenAI Adapter for LlamaIndex",
"version": "0.1.47",
"version": "0.1.48",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+12
View File
@@ -140,6 +140,12 @@ export function isFunctionCallingModel(llm: LLM): llm is OpenAI {
return isChatModel && !isOld && !isO1;
}
export function isReasoningModel(model: ChatModel | string): boolean {
const isO1 = model.startsWith("o1");
const isO3 = model.startsWith("o3");
return isO1 || isO3;
}
export function isTemperatureSupported(model: ChatModel | string): boolean {
return !model.startsWith("o3");
}
@@ -152,6 +158,7 @@ export type OpenAIAdditionalChatOptions = Omit<
| "messages"
| "model"
| "temperature"
| "reasoning_effort"
| "top_p"
| "stream"
| "tools"
@@ -166,6 +173,7 @@ export class OpenAI extends ToolCallLLM<OpenAIAdditionalChatOptions> {
// string & {} is a hack to allow any string, but still give autocomplete
| (string & {});
temperature: number;
reasoningEffort?: "low" | "medium" | "high" | undefined;
topP: number;
maxTokens?: number | undefined;
additionalChatOptions?: OpenAIAdditionalChatOptions | undefined;
@@ -197,6 +205,9 @@ export class OpenAI extends ToolCallLLM<OpenAIAdditionalChatOptions> {
super();
this.model = init?.model ?? "gpt-4o";
this.temperature = init?.temperature ?? 0.1;
this.reasoningEffort = isReasoningModel(this.model)
? init?.reasoningEffort
: undefined;
this.topP = init?.topP ?? 1;
this.maxTokens = init?.maxTokens ?? undefined;
@@ -354,6 +365,7 @@ export class OpenAI extends ToolCallLLM<OpenAIAdditionalChatOptions> {
const baseRequestParams = <OpenAILLM.Chat.ChatCompletionCreateParams>{
model: this.model,
temperature: isTemperatureSupported(this.model) ? this.temperature : null,
reasoning_effort: this.reasoningEffort,
max_tokens: this.maxTokens,
tools: tools?.map(OpenAI.toTool),
messages: OpenAI.toOpenAIMessage(messages),
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/vllm
## 0.0.18
### Patch Changes
- Updated dependencies [7265f74]
- @llamaindex/openai@0.1.48
## 0.0.17
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/vllm",
"description": "vLLM Adapter for LlamaIndex",
"version": "0.0.17",
"version": "0.0.18",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+3
View File
@@ -1034,6 +1034,9 @@ importers:
ajv:
specifier: ^8.17.1
version: 8.17.1
gpt-tokenizer:
specifier: ^2.6.2
version: 2.6.2
lodash:
specifier: ^4.17.21
version: 4.17.21
+9
View File
@@ -1,5 +1,14 @@
# @llamaindex/unit-test
## 0.0.44
### Patch Changes
- Updated dependencies [9f8ad37]
- Updated dependencies [7265f74]
- llamaindex@0.8.34
- @llamaindex/openai@0.1.48
## 0.0.43
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/unit-test",
"private": true,
"version": "0.0.43",
"version": "0.0.44",
"type": "module",
"scripts": {
"test": "vitest run"