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

Word Limit #37

Open
timothynn opened this issue Mar 30, 2023 · 1 comment
Open

Word Limit #37

timothynn opened this issue Mar 30, 2023 · 1 comment

Comments

@timothynn
Copy link

The bio generator tool is so good (5 star) but Twitter has a word limit of 160 words. How can you resolve this issue?

@walter-grace
Copy link

You need to add more tokens, const payload: OpenAIStreamPayload = {
model: "gpt-3.5-turbo",
messages: [{ role: "user", content: prompt }],
temperature: 0.7,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,
max_tokens: 800,
stream: true,
n: 1,
};
change the max_tokens part

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

2 participants