mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 19:39:58 +00:00
community: Bump ruff version to 0.9 (#29206)
Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
30f6c9f5c8
commit
723031d548
@@ -69,7 +69,11 @@ class NeMoEmbeddings(BaseModel, Embeddings):
|
||||
# Optional: A minimal test payload and headers required by the endpoint
|
||||
headers = {"Content-Type": "application/json"}
|
||||
payload = json.dumps(
|
||||
{"input": "Hello World", "model": model, "input_type": "query"}
|
||||
{
|
||||
"input": "Hello World",
|
||||
"model": model,
|
||||
"input_type": "query",
|
||||
}
|
||||
)
|
||||
|
||||
is_endpoint_live(url, headers, payload)
|
||||
@@ -111,7 +115,11 @@ class NeMoEmbeddings(BaseModel, Embeddings):
|
||||
"""
|
||||
|
||||
payload = json.dumps(
|
||||
{"input": text, "model": self.model, "input_type": input_type}
|
||||
{
|
||||
"input": text,
|
||||
"model": self.model,
|
||||
"input_type": input_type,
|
||||
}
|
||||
)
|
||||
headers = {"Content-Type": "application/json"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user