Fix syntaxError

Double quote error
This commit is contained in:
guyue 2024-12-09 14:07:36 +08:00 committed by GitHub
parent d8edc915e7
commit f223527e24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -603,7 +603,7 @@ async def jina_embedding(
url = "https://api.jina.ai/v1/embeddings" if not base_url else base_url
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {os.environ["JINA_API_KEY"]}",
"Authorization": f"Bearer {os.environ['JINA_API_KEY']}",
}
data = {
"model": "jina-embeddings-v3",