File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
agent/llama-index-agent-openai-legacy
llama_index/agent/openai_legacy
llms/llama-index-llms-openai Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 20
20
from llama_index .core .tools import BaseTool
21
21
from llama_index .core .utils import print_text
22
22
from llama_index .llms .openai import OpenAI
23
- from llama_index .llms .openai .utils import is_function_calling_model
24
23
25
24
# inspired by DEFAULT_QA_PROMPT_TMPL from llama_index/prompts/default_prompts.py
26
25
DEFAULT_QA_PROMPT_TMPL = (
@@ -122,7 +121,7 @@ def from_tools_and_retriever(
122
121
123
122
memory = memory or memory_cls .from_defaults (chat_history = chat_history , llm = llm )
124
123
125
- if not is_function_calling_model ( llm .model ) :
124
+ if not llm .metadata . is_function_calling_model :
126
125
raise ValueError (
127
126
f"Model name { llm .model } does not support function calling API."
128
127
)
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ exclude = ["**/BUILD"]
28
28
license = " MIT"
29
29
name = " llama-index-agent-openai-legacy"
30
30
readme = " README.md"
31
- version = " 0.3.0 "
31
+ version = " 0.3.1 "
32
32
33
33
[tool .poetry .dependencies ]
34
34
python = " >=3.9,<4.0"
Original file line number Diff line number Diff line change 54
54
"gpt-4o" : 128000 ,
55
55
"gpt-4o-2024-05-13" : 128000 ,
56
56
"gpt-4o-2024-08-06" : 128000 ,
57
+ "gpt-4o-2024-11-20" : 128000 ,
57
58
# Intended for research and evaluation
58
59
"chatgpt-4o-latest" : 128000 ,
59
60
"gpt-4o-mini" : 128000 ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ exclude = ["**/BUILD"]
29
29
license = " MIT"
30
30
name = " llama-index-llms-openai"
31
31
readme = " README.md"
32
- version = " 0.3.0 "
32
+ version = " 0.3.1 "
33
33
34
34
[tool .poetry .dependencies ]
35
35
python = " >=3.9,<4.0"
You can’t perform that action at this time.
0 commit comments