Hi Team,
Please excuse me if this question was previously asked, I tried searching couldn’t find it.
I have been using the below API to convert Text to Command
https://api.openai.com/v1/engines/davinci/completions
Payload Sample:
{
"prompt": "**Q:Some Text.\nA:Custom Command(it is In house laguage)**'\n",
"temperature": 0,
"max_tokens": 100,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0,
"stop": ["\n"]
}
My Question:
I have to send the same payload in every single API call, this is a kind of stateless execution.
- How can I make this stateful?
- How do I make sure that the same examples don’t need to be sent every time?
- How can I train this with more and more data so that the result is more accurate? (An API call only accepts 2048 tokens)
Thanks a lot in advance.