feat: ✨ Enable amazon nova pro models
This commit is contained in:
parent
a1d830e381
commit
15a61ba8b8
3 changed files with 14 additions and 1 deletions
|
|
@ -55,7 +55,11 @@ export async function* addIndentation(
|
|||
}
|
||||
|
||||
function modelIsInept(model: string): boolean {
|
||||
return !(model.includes("gpt") || model.includes("claude"));
|
||||
return !(
|
||||
model.includes("gpt") ||
|
||||
model.includes("claude") ||
|
||||
model.includes("nova")
|
||||
);
|
||||
}
|
||||
|
||||
export async function* streamDiffLines({
|
||||
|
|
|
|||
|
|
@ -237,6 +237,11 @@ function autodetectTemplateType(model: string): TemplateType | undefined {
|
|||
return "none";
|
||||
}
|
||||
|
||||
// Nova Pro requests always sent through Converse API, so formatting not necessary
|
||||
if (lower.includes("nova")) {
|
||||
return "none";
|
||||
}
|
||||
|
||||
if (lower.includes("codestral")) {
|
||||
return "none";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,6 +96,10 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
|
|||
"claude-3.7-sonnet",
|
||||
"claude-sonnet-4",
|
||||
"claude-opus-4",
|
||||
"nova-lite",
|
||||
"nova-pro",
|
||||
"nova-micro",
|
||||
"nova-premier",
|
||||
].some((part) => model.toLowerCase().includes(part))
|
||||
) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue