-
Couldn't load subscription status.
- Fork 6.5k
Description
Bug Description
Hi, probably this is not a bug, but when import OpenAI class:
from llama_index.llms.openai import OpenAI
always throws the following warning message in the console:
lib/python3.12/site-packages/pydantic/_internal/_generate_schema.py:2249: UnsupportedFieldAttributeWarning: The 'validate_default' attribute with value True was provided to the Field() function, which has no effect in the context it was used. 'validate_default' is field-specific metadata, and can only be attached to a model field using Annotated metadata or by assignment. This may have happened because an Annotated type alias using the type statement was used, or if the Field() function was attached to a single member of a union type.
warnings.warn(
Version
0.14.5
Steps to Reproduce
- Create .env file and add OPENAI_API_KEY=valid_key
- Create a script with the following lines:
from dotenv import load_dotenv
from llama_index.llms.openai import OpenAI