uses claude v1.2 instead of v1.1

This commit is contained in:
nai-degen
2023-05-29 12:39:45 -05:00
parent dc43183353
commit 304893e13d
@@ -111,9 +111,9 @@ function openaiToAnthropic(body: any, req: Request) {
// tokens (https://console.anthropic.com/docs/prompt-design#prompt-length)
// as the cutoff, minus a little bit for safety.
// For smaller prompts we use 1.1 because it's less cucked.
// For smaller prompts we use 1.2 because it's not as cucked as 1.3
// For big prompts (v1, auto-selects the latest model) is all we can use.
const model = prompt.length > 25000 ? "claude-v1-100k" : "claude-v1.1";
const model = prompt.length > 25000 ? "claude-v1-100k" : "claude-v1.2";
return {
...rest,