Endpoint URL Mismatch in Astra DB Chat Memory Component #7075
Replies: 1 comment 2 replies
-
|
Hey @aieventist! I'm here to help you with any bugs, questions, or contributions you have. Let's squash those bugs together! To fix the endpoint URL mismatch in the Astra DB Chat Memory component, you need to adjust the SecretStrInput(
name="api_endpoint",
display_name="API Endpoint",
info="API endpoint URL for the Astra DB service.",
value="ASTRA_DB_API_ENDPOINT", # Ensure this environment variable is set to the correct endpoint
required=True,
)Make sure that the environment variable To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the Astra DB Chat Memory component, which automatically generates the following endpoint for my requests:
https://<database_id>-<region>.apps.astra.datastax.com/api/json/v1/namespaces/<namespace_id>/collections/<collection_id>However, when checking the Astra DB Database documentation, the correct endpoint is:
https://<database_id>-<region>.apps.astra.datastax.com/rest/v2/namespaces/<namespace_id>/collections/<collection_id>The difference lies in the URL path—/api/json/v1 vs /rest/v2.
I tried editing the component code to change api/json/v1 to rest/v2, but the issue persists. Does anyone know how to fix this and properly adjust the endpoint in the component code?
Beta Was this translation helpful? Give feedback.
All reactions