Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
chore(anthropic): add system role support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabolus committed May 14, 2024
1 parent aa85865 commit b12ca73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/anthropic/src/claude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const claude3Opus = modelRef({
multiturn: true,
tools: false,
media: true,
systemRole: true,
output: ['text'],
},
},
Expand All @@ -50,6 +51,7 @@ export const claude3Sonnet = modelRef({
multiturn: true,
tools: false,
media: true,
systemRole: true,
output: ['text'],
},
},
Expand All @@ -65,6 +67,7 @@ export const claude3Haiku = modelRef({
multiturn: true,
tools: false,
media: true,
systemRole: true,
output: ['text'],
},
},
Expand All @@ -73,7 +76,7 @@ export const claude3Haiku = modelRef({

export const SUPPORTED_CLAUDE_MODELS: Record<
string,
ModelReference<z.ZodTypeAny>
ModelReference<typeof AnthropicConfigSchema>
> = {
'claude-3-opus': claude3Opus,
'claude-3-sonnet': claude3Sonnet,
Expand Down

0 comments on commit b12ca73

Please sign in to comment.