Merge branch 'main' into hosted
This commit is contained in:
commit
50d1288693
@ -95,6 +95,19 @@ async def stream_code(websocket: WebSocket):
|
|||||||
except:
|
except:
|
||||||
await throw_error(f"Invalid model: {code_generation_model_str}")
|
await throw_error(f"Invalid model: {code_generation_model_str}")
|
||||||
raise Exception(f"Invalid model: {code_generation_model_str}")
|
raise Exception(f"Invalid model: {code_generation_model_str}")
|
||||||
|
|
||||||
|
# Auto-upgrade usage of older models
|
||||||
|
if code_generation_model in {Llm.GPT_4_VISION, Llm.GPT_4_TURBO_2024_04_09}:
|
||||||
|
print(
|
||||||
|
f"Initial deprecated model: {code_generation_model}. Auto-updating code generation model to GPT-4O-2024-05-13"
|
||||||
|
)
|
||||||
|
code_generation_model = Llm.GPT_4O_2024_05_13
|
||||||
|
elif code_generation_model == Llm.CLAUDE_3_SONNET:
|
||||||
|
print(
|
||||||
|
f"Initial deprecated model: {code_generation_model}. Auto-updating code generation model to CLAUDE-3.5-SONNET-2024-06-20"
|
||||||
|
)
|
||||||
|
code_generation_model = Llm.CLAUDE_3_5_SONNET_2024_06_20
|
||||||
|
|
||||||
exact_llm_version = None
|
exact_llm_version = None
|
||||||
|
|
||||||
print(
|
print(
|
||||||
|
|||||||
@ -533,8 +533,8 @@ function App({ navbarComponent }: Props) {
|
|||||||
{showBetterModelMessage && (
|
{showBetterModelMessage && (
|
||||||
<div className="rounded-lg p-2 bg-fuchsia-200">
|
<div className="rounded-lg p-2 bg-fuchsia-200">
|
||||||
<p className="text-gray-800 text-sm">
|
<p className="text-gray-800 text-sm">
|
||||||
Now supporting GPT-4o and Claude Sonnet 3.5. Higher quality and
|
We no longer support this model. Instead, code generation will
|
||||||
2x faster. Give it a try!
|
use GPT-4o or Claude Sonnet 3.5, the 2 state-of-the-art models.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -16,21 +16,25 @@ export const CODE_GENERATION_MODEL_DESCRIPTIONS: {
|
|||||||
isPaid: boolean;
|
isPaid: boolean;
|
||||||
};
|
};
|
||||||
} = {
|
} = {
|
||||||
"gpt-4o-2024-05-13": { name: "GPT-4o 🌟", inBeta: false, isPaid: false },
|
"gpt-4o-2024-05-13": { name: "GPT-4o", inBeta: false, isPaid: false },
|
||||||
"claude-3-5-sonnet-20240620": {
|
"claude-3-5-sonnet-20240620": {
|
||||||
name: "Claude 3.5 Sonnet 🌟",
|
name: "Claude 3.5 Sonnet",
|
||||||
inBeta: false,
|
inBeta: false,
|
||||||
isPaid: false,
|
isPaid: false,
|
||||||
},
|
},
|
||||||
"gpt-4-turbo-2024-04-09": {
|
"gpt-4-turbo-2024-04-09": {
|
||||||
name: "GPT-4 Turbo (Apr 2024)",
|
name: "GPT-4 Turbo (deprecated)",
|
||||||
inBeta: false,
|
inBeta: false,
|
||||||
isPaid: false,
|
isPaid: false,
|
||||||
},
|
},
|
||||||
gpt_4_vision: {
|
gpt_4_vision: {
|
||||||
name: "GPT-4 Vision (Nov 2023)",
|
name: "GPT-4 Vision (deprecated)",
|
||||||
|
inBeta: false,
|
||||||
|
isPaid: false,
|
||||||
|
},
|
||||||
|
claude_3_sonnet: {
|
||||||
|
name: "Claude 3 (deprecated)",
|
||||||
inBeta: false,
|
inBeta: false,
|
||||||
isPaid: false,
|
isPaid: false,
|
||||||
},
|
},
|
||||||
claude_3_sonnet: { name: "Claude 3 Sonnet", inBeta: false, isPaid: false },
|
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user