fix: correct model ID to 'shakespeare/claude-sonnet-4.6' for Shakespeare AI
Previous attempts used 'shakespeare' and 'claude-sonnet-4-5' — both invalid. The correct format matches the recentlyUsedModels in ai.json config: provider/model-name with dots not dashes. Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
parent
2aeb41afdc
commit
223b7602bf
2 changed files with 4 additions and 4 deletions
|
|
@ -204,7 +204,7 @@ export function SasquatchGuide({ message, onDismiss }: SasquatchGuideProps) {
|
|||
|
||||
const firstResponse = await shakespeare.sendChatMessage(
|
||||
historyWithContext,
|
||||
'claude-sonnet-4-5'
|
||||
'shakespeare/claude-sonnet-4.6'
|
||||
);
|
||||
|
||||
const aiText = firstResponse.choices[0]?.message?.content as string ?? '';
|
||||
|
|
@ -254,7 +254,7 @@ export function SasquatchGuide({ message, onDismiss }: SasquatchGuideProps) {
|
|||
role: 'user' as const,
|
||||
content: `${SYSTEM_PROMPT}\n\n---\n\nUser asked: ${question}\n\nTool result from ${toolName}:\n${toolResultStr}\n\nNow answer the user's question naturally based on this live data. Be concise and skater-friendly.`,
|
||||
},
|
||||
], 'claude-sonnet-4-5');
|
||||
], 'shakespeare/claude-sonnet-4.6');
|
||||
|
||||
accumulated = secondResponse.choices[0]?.message?.content as string ?? '';
|
||||
} catch (toolErr) {
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ export function useShakespeare() {
|
|||
// Chat completion function
|
||||
const sendChatMessage = useCallback(async (
|
||||
messages: ChatMessage[],
|
||||
model: string = 'claude-sonnet-4-5',
|
||||
model: string = 'shakespeare/claude-sonnet-4.6',
|
||||
options?: Partial<ChatCompletionRequest>
|
||||
): Promise<ChatCompletionResponse> => {
|
||||
if (!user) {
|
||||
|
|
@ -218,7 +218,7 @@ export function useShakespeare() {
|
|||
// Streaming chat completion function
|
||||
const sendStreamingMessage = useCallback(async (
|
||||
messages: ChatMessage[],
|
||||
model: string = 'claude-sonnet-4-5',
|
||||
model: string = 'shakespeare/claude-sonnet-4.6',
|
||||
onChunk: (chunk: string) => void,
|
||||
options?: Partial<ChatCompletionRequest>
|
||||
): Promise<void> => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue