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

Got rid of useless debug output and made output token count configurable. #6

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

lukehollenback
Copy link
Owner

No description provided.

@lukehollenback lukehollenback merged commit e31563c into main-luke Apr 2, 2024
1 check passed
const res = response.choices[0].message?.content?.trim() || "{}";

console.log(`Trimmed Response Message: ${res}`);
console.log(`Trimmed Response: ${res}`);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider checking if res is a valid JSON string before calling JSON.parse to avoid potential runtime errors.

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

Successfully merging this pull request may close these issues.

1 participant