You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An AttributeError occurs when attempting to initialize a Groq model using the llama_index.llms.groq package. The error specifically states that the LLMMetadata object does not have the attribute model_fields. This happens during an attempt to access the context_window description in the OpenAILike class.
To Reproduce
Steps to reproduce the behavior:
Import the necessary packages from llama_index.llms.groq.
AttributeError: type object 'LLMMetadata' has no attribute 'model_fields'
Expected behavior
The Groq model should initialize correctly, and the script should run without encountering an attribute error when trying to access metadata like context_window.
Screenshots
Here’s the error traceback that occurs:
The text was updated successfully, but these errors were encountered:
Describe the bug
An
AttributeError
occurs when attempting to initialize a Groq model using thellama_index.llms.groq
package. The error specifically states that theLLMMetadata
object does not have the attributemodel_fields
. This happens during an attempt to access thecontext_window
description in theOpenAILike
class.To Reproduce
Steps to reproduce the behavior:
llama_index.llms.groq
.Expected behavior
The Groq model should initialize correctly, and the script should run without encountering an attribute error when trying to access metadata like
context_window
.Screenshots
Here’s the error traceback that occurs:
The text was updated successfully, but these errors were encountered: