run-llama / llama_index

LlamaIndex is a data framework for your LLM applications
https://docs.llamaindex.ai
MIT License
36.74k stars 5.27k forks source link

feat: Resolving UserWarning about llama-index-llms-dashscope #16965

Closed yuzilog closed 13 hours ago

yuzilog commented 17 hours ago

In Pydantic V2, protectednamespaces is a configuration option used to prevent certain namespace keywords (such as model, etc.) from being used as field names. so we need to disable it here.

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

New Package?

Did I fill in the tool.llamahub section in the pyproject.toml and provide a detailed README.md for my new integration or package?

Version Bump?

Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

Type of Change

Please delete options that are not relevant.

How Has This Been Tested?

Your pull-request will likely not be merged unless it is covered by some form of impactful unit testing.

Suggested Checklist: