Skip to content

Commit

Permalink
increased token range
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaBhattacharjee committed May 22, 2024
1 parent 05c828b commit 96e4d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/waifu/[waifuid]/[animename]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Page = ({ params }: { params: { waifuid: string; animename: string } }) =>
chatHistory.push({ role: "model", parts: chat.waifuResponse });
});
chatHistory.push({ role: "user", parts: prompt });
const chat = model.startChat({ history: chatHistory, generationConfig: { maxOutputTokens: 200 } });
const chat = model.startChat({ history: chatHistory, generationConfig: { maxOutputTokens: 600 } });
const result = await chat.sendMessage(prompt);
botResponse = result.response.text() || "";
} else {
Expand Down

0 comments on commit 96e4d33

Please sign in to comment.