how to force openai to save the context of the whole chat? [closed] - openai-api

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 25 days ago.
This post was edited and submitted for review 24 days ago.
Improve this question
How do you maintain historical context in repeat API calls?
i was searching that question but has found 0 answers
so i found this demo chat: https://next-openai-chatgpt.vercel.app/
and its source code: https://github.com/koalamango/next-openai-chatgpt/blob/main/pages/api/chat.ts
it can save context of conversation for real, but can anyboy tell me how?

the only one solution is the send to api all conversation history that must be under 3500 symbols, cuz u need around 500 points to make answer
as example in json format:
{"messages":["user:hello","bot:Hello there!","user:whats your name","bot:My name is Bot. What's yours?","user:now spell your name backwards pls","bot:tob","user:and now capitalise letters","bot:TOB"]}
but in the end you must add "bot:" to suggest AI that he must answer by his role now.
example works very well

Related

How to get data from Loop components with Power Query? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 days ago.
Improve this question
I am interested in exploring the possibilities of collaboration and easy data gathering through loop components plus being able to visualize all of that easily. So I would like to be able to import for example a data table into Power Bi or Excel.
Honestly, I have no idea on how to even start with this, so any help would be greatly appreciated.

I want to render JavaScript function in every 100-millisecond using node node-corn. can it possible, then give me solution [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 days ago.
Improve this question
I want to render JavaScript function in every 100-millisecond using node node-corn
I try many way but unable to convert cron pattern into milli seconds.
any one help me, I am using nodejs.

Node JS req.body rendering undifined [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 9 months ago.
Improve this question
For some reason, while inserting the req.body. Data isn't post method wasn't complete
Your content-type is incorrect.
You'll need to make it application/json instead of application.json
You can read a bit more about Content-Types in the MDN docs as well as MIME formats for headers or anything else that accepts things in this format. Basically you'll rarely use a period. If ever.
If you're still getting an error after that when trying to insert your data you'll need to expand your question to include what information about how the endpoint you're trying to submit data to expect that input to be handled.

Why is the examples link for nodejs examples returning a 404: https://github.com/api-ai/apiai-nodejs-client/blob/master/examples [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
This link is not working: https://github.com/api-ai/apiai-nodejs-client/blob/master/examples
Any other links for this purpose?
Yes, try this link. It appears they renamed it to samples. :)
In future it's better to bookmark a link to the whole repo, not to a separate folder as it may change and GitHub doesn't do redirecting for that unlike for changing username or repo name.

What is the best way to create user help documentation for an Excel VBA solution? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
VBA solutions can vary widely in size.
I would like to add user help documentation to all solutions but the level of effort to create and deploy the help needs to match the size of the solution.
You should check the VBA version of MZ-Tools. It is an add-in for VBA that can automatically generate documentation from your code (function name, parameters, comments, subject, etc.). You can also use it to automatically generate line numbers, onError labels, etc. More on the automatic documenting feature can be found here.
It is free, easy, and very efficient. Once you notice how much you save time by using it, please do like me: donate.
You may wish to consider HTML Help. It allows you to produce help files that are similar to standard Microsoft help. It is not particularly difficult to use, for the most part.

Resources