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

Prompt terminates with newline #186

Closed
soulofmischief opened this issue Jan 27, 2023 · 1 comment
Closed

Prompt terminates with newline #186

soulofmischief opened this issue Jan 27, 2023 · 1 comment
Assignees
Milestone

Comments

@soulofmischief
Copy link
Contributor

The prompt currently terminates with a newline:

const prompt = `Name: ${name}
Bio: ${bio}
Speaker: Hey ${name}
${name}: ${greeting}
Speaker: ${question1}
${name}: ${response1}
Speaker: ${question2}
${name}: ${response2}
Speaker: ${question3}
${name}: ${response3}
`

This leads to worse output. Best practice is to terminate the prompt without a newline or whitespace.

@soulofmischief
Copy link
Contributor Author

Fixed with 56f50e9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant