Replies: 2 comments
-
You cannot use the 'gpt-4o' model with the older Llamaindex version To resolve this issue, you need to upgrade to a version of LlamaIndex that includes support for the 'gpt-4o' model. The latest version that includes this support is 0.9.45 [2][3]. Keep in mind that there are backward compatibility issues when upgrading from ValueError: doc_type simple_dict not found in type_to_struct. Make sure that it was registered in the index registry. Recreating indexes in the latest version is suggested to fix these problems [4][5]. |
Beta Was this translation helpful? Give feedback.
-
its seems like there is hardcoded some model versions, this is probably not the best idea: GPT4_MODELS: Dict[str, int] = {
# stable model names:
# resolves to gpt-4-0314 before 2023-06-27,
# resolves to gpt-4-0613 after
"gpt-4": 8192,
"gpt-4-32k": 32768,
# 1106 model (Turbo, JSON mode)
"gpt-4-1106-preview": 128000,
# multimodal model
"gpt-4-vision-preview": 128000,
# 0613 models (function calling):
# https://openai.com/blog/function-calling-and-other-api-updates
"gpt-4-0613": 8192,
"gpt-4-32k-0613": 32768,
# 0314 models
"gpt-4-0314": 8192,
"gpt-4-32k-0314": 32768,
} @dosubot what do the integer values mean here? |
Beta Was this translation helpful? Give feedback.
-
I am getting
when running this
But when I rung the
llm
andembed_model
separately they work well like doing this is workingWhat is the issue here? I wanted to update my model to
gpt-4o
from Azure. I am using an older Llamaindex versionllama-index==0.9.8.post1
. Can I not usegpt-4o
with this older version?Beta Was this translation helpful? Give feedback.
All reactions