Add support for GPT-4o in Copilot Chat (#16446)

Release Notes:
- Added support for GPT-4o for Copilot Chat.
This commit is contained in:
Ryan Hawkins 2024-08-19 01:03:06 -06:00 committed by GitHub
parent 86efde4b76
commit 8a320668ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -180,6 +180,7 @@ impl LanguageModel for CopilotChatLanguageModel {
cx: &AppContext,
) -> BoxFuture<'static, Result<usize>> {
let model = match self.model {
CopilotChatModel::Gpt4o => open_ai::Model::FourOmni,
CopilotChatModel::Gpt4 => open_ai::Model::Four,
CopilotChatModel::Gpt3_5Turbo => open_ai::Model::ThreePointFiveTurbo,
};