Add setup instructions for Claude API integration
This commit is contained in:
@@ -58,6 +58,13 @@
|
||||
input = ''
|
||||
}
|
||||
}
|
||||
if(provider === 'claude'){
|
||||
if(input.length > 0 && input.startsWith('sk-')){
|
||||
DBState.db.claudeAPIKey = input
|
||||
step = 5
|
||||
input = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -263,6 +270,9 @@
|
||||
{#if provider === 'openrouter'}
|
||||
<Chat name="Risu" message={language.setup.setupOpenrouter} isLastMemory={false} />
|
||||
{/if}
|
||||
{#if provider === 'claude'}
|
||||
<Chat name="Risu" message={language.setup.setupClaude} isLastMemory={false} />
|
||||
{/if}
|
||||
{/if}
|
||||
{#if step >= 5}
|
||||
<Chat name={DBState.db.username} message="<HIDDEN>" isLastMemory={false} />
|
||||
|
||||
Reference in New Issue
Block a user