API requests with session id? #1298
-
Good evening, Is there an option to request a session token / session id of a conversation and use it for remembering the history of questions/answers for the AI model? By default I can do: curl http://localhost:8080/v1/completions -H "Content-Type: application/json" -d '{
"model": "your-model.bin",
"prompt": "A long time ago in a galaxy far, far away",
"temperature": 0.7
}' although I can't find an info in the documentation about preserving a conversation history for the AI model till it's being deleted by the last POST request. |
Beta Was this translation helpful? Give feedback.
Answered by
lunamidori5
Nov 19, 2023
Replies: 1 comment 2 replies
-
This is a backend for apps that have that, so check with the openai v0 / openai v1 app that uses localai for memory, check out autogen / memgpt / a few others for more info <3 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, two things, 1 Completions are out of date on Openai V1, please use Chat API for that.
2 Running a model raw is not recommended see - How to set up a model - for more info on setting up a model!