From 74df7c011626613df05b02b7e96d6b09c7ccdc2c Mon Sep 17 00:00:00 2001
From: 0xNeoPunk <neoscript@gmail.com>
Date: Fri, 8 Mar 2024 23:55:55 +0800
Subject: [PATCH] The PrivateAttr should be imported from
 llama_index.core.bridge.pydantic instead of pydantic (#11765)

---
 .../llama_index/embeddings/dashscope/base.py                   | 3 +--
 .../embeddings/llama-index-embeddings-dashscope/pyproject.toml | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/llama_index/embeddings/dashscope/base.py b/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/llama_index/embeddings/dashscope/base.py
index 8fa2356f4..27710ddfd 100644
--- a/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/llama_index/embeddings/dashscope/base.py
+++ b/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/llama_index/embeddings/dashscope/base.py
@@ -5,8 +5,7 @@ from enum import Enum
 from http import HTTPStatus
 from typing import Any, Dict, List, Optional, Union
 
-from pydantic import PrivateAttr
-
+from llama_index.core.bridge.pydantic import PrivateAttr
 from llama_index.core.embeddings.multi_modal_base import MultiModalEmbedding
 from llama_index.core.schema import ImageType
 
diff --git a/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/pyproject.toml b/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/pyproject.toml
index 2bf4637f4..5a0057fb5 100644
--- a/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/pyproject.toml
+++ b/llama-index-integrations/embeddings/llama-index-embeddings-dashscope/pyproject.toml
@@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
 license = "MIT"
 name = "llama-index-embeddings-dashscope"
 readme = "README.md"
-version = "0.1.1"
+version = "0.1.2"
 
 [tool.poetry.dependencies]
 python = ">=3.8.1,<4.0"
-- 
GitLab