Skip to content

Commit a7a38b9

Browse files
author
Harold James Quilang
committed
chore: update traces endpoint
1 parent 715f31e commit a7a38b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/orq-rc/src/orq_ai_sdk/langchain/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def log_event(self, event: LlmEvent):
6262
"Authorization": f"Bearer {self.api_key}"
6363
}
6464

65-
response = httpx.post(f"{self.api_url}/v2/traces-api/langchain", headers=headers, json=event.model_dump())
65+
response = httpx.post(f"{self.api_url}/v2/traces/langchain", headers=headers, json=event.model_dump())
6666

6767
class OrqLangchainCallback(BaseCallbackHandler):
6868
"""Base callback handler that can be used to handle callbacks from langchain."""

src/orq_ai_sdk/langchain/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def log_event(self, event: LlmEvent):
6262
"Authorization": f"Bearer {self.api_key}"
6363
}
6464

65-
response = httpx.post(f"{self.api_url}/v2/traces-api/langchain", headers=headers, json=event.model_dump())
65+
response = httpx.post(f"{self.api_url}/v2/traces/langchain", headers=headers, json=event.model_dump())
6666

6767
class OrqLangchainCallback(BaseCallbackHandler):
6868
"""Base callback handler that can be used to handle callbacks from langchain."""

0 commit comments

Comments
 (0)