mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-11-19 03:23:50 +00:00
Fix jina embedding
This commit is contained in:
parent
91843267e9
commit
ffa95e0461
@ -603,7 +603,7 @@ async def jina_embedding(
|
|||||||
url = "https://api.jina.ai/v1/embeddings" if not base_url else base_url
|
url = "https://api.jina.ai/v1/embeddings" if not base_url else base_url
|
||||||
headers = {
|
headers = {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": f"Bearer {os.environ["JINA_API_KEY"]}",
|
"Authorization": f"Bearer {os.environ['JINA_API_KEY']}",
|
||||||
}
|
}
|
||||||
data = {
|
data = {
|
||||||
"model": "jina-embeddings-v3",
|
"model": "jina-embeddings-v3",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user