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

mistral.ts の削除 #715

Merged
merged 1 commit into from
Nov 15, 2024
Merged
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
6 changes: 2 additions & 4 deletions packages/web/src/prompts/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { UnrecordedMessage } from 'generative-ai-use-cases-jp';
import { RetrieveResultItem } from '@aws-sdk/client-kendra';
import { claudePrompter } from './claude';
import { mistralPrompter } from './mistral';

// 現状 prompter は Claude 用のものしか存在しない
export const getPrompter = (modelId: string) => {
if (modelId.startsWith('anthropic.claude-')) {
if (modelId.includes('claude')) {
return claudePrompter;
} else if (modelId.startsWith('mistral.mi')) {
return mistralPrompter;
} else {
// デフォルトでは Claude の prompter を返す
// modelId は初期時に空文字が入っているため
Expand Down
281 changes: 0 additions & 281 deletions packages/web/src/prompts/mistral.ts

This file was deleted.

Loading