Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] add prompt prefix support for api mode. #38

Open
jiacheo opened this issue Mar 20, 2023 · 0 comments
Open

[feature] add prompt prefix support for api mode. #38

jiacheo opened this issue Mar 20, 2023 · 0 comments

Comments

@jiacheo
Copy link

jiacheo commented Mar 20, 2023

For api mode, we don't need the ai to remember the whole context, but to add a prompt prefix for the after text.

Say:
[prompt-prefix] translator all the later inputs into English:
[user-input]: 今天天气不错
[ai-ouput]: The weather is nice today

if we had a [prompt prefix], we needn't input it every time, and we needn't care about the context tokens overflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant