Packages
Access the SID Memory API using OpenAI packages
Because SID Memory intentionally mirrors the OpenAI API, you can use the same packages to access it. Below are some examples of how to use the OpenAI Python and JavaScript packages to call the SID Memory API.
There are only two changes needed to use the OpenAI packages with SID Memory:
- The base URL should be set to
https://api.sid.ai/v1/memory
- Query parameters should be passed in the
extra_query
orquery
parameter, respectively
The SID Memory API also supports streaming, just like the OpenAI API.
Python
JavaScript
Was this page helpful?