Skip to content

Add catalan support #40

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
{ value: 'finnish', label: 'Finnish' },
{ value: 'portuguese', label: 'Portuguese' },
{ value: 'polish', label: 'Polish' },
{ value: 'traditionalChinese', label: 'Traditional Chinese' }
{ value: 'traditionalChinese', label: 'Traditional Chinese' },
{ value: 'catalan', label: 'Catalan' }
];

onMount(() => {
Expand Down
3 changes: 3 additions & 0 deletions src/routes/llama/+server.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ export async function POST({ request, platform }) {
case 'traditionalChinese':
prompt = `請用正體中文及道地台灣俗語,對這個 GitHub 帳號殘酷地吐槽一番:${username}。以下是這個帳號的詳細資訊: "${JSON.stringify(datas)}"`;
break;
case 'catalan':
prompt = `Fes una curta i sarcàstica crítica del següent perfil de GitHub: ${username}. Aquí tens els detalls: "${JSON.stringify(datas)}"`;
break;
}

// answerdebug += prompt + '\n';
Expand Down