Update embedding.py
This commit is contained in:
parent
9ae890ed8e
commit
f78442917a
@ -26,7 +26,10 @@ class WeaviateCustomEmbeddings(Embeddings):
|
||||
|
||||
response = requests.post(
|
||||
f"{self.api_url}/embed",
|
||||
json={"inputs": query_text}
|
||||
json={"inputs": query_text},
|
||||
headers={
|
||||
"Authorization": "Bearer 01k1vwr8fs0wnwcd3y0pskcbah"
|
||||
}
|
||||
)
|
||||
if response.status_code != 200:
|
||||
raise ValueError(f"임베딩 API 호출 실패: {self.api_url}/embed, {query_text}, {response.status_code}, {response.text}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user