Skip to content

Commit 71197db

Browse files
author
Dongri Jin
authored
Merge pull request #40 from dongri/add-new-models
Add new models
2 parents 1ce841c + 32cecb6 commit 71197db

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/v1/chat_completion.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,26 @@ use std::collections::HashMap;
55
use crate::impl_builder_methods;
66
use crate::v1::common;
77

8+
// https://platform.openai.com/docs/models/gpt-3-5
9+
pub const GPT3_5_TURBO_1106: &str = "gpt-3.5-turbo-1106";
810
pub const GPT3_5_TURBO: &str = "gpt-3.5-turbo";
911
pub const GPT3_5_TURBO_16K: &str = "gpt-3.5-turbo-16k";
10-
pub const GPT3_5_TURBO_0301: &str = "gpt-3.5-turbo-0301";
12+
pub const GPT3_5_TURBO_INSTRUCT: &str = "gpt-3.5-turbo-instruct";
13+
// - legacy
1114
pub const GPT3_5_TURBO_0613: &str = "gpt-3.5-turbo-0613";
15+
pub const GPT3_5_TURBO_16K_0613: &str = "gpt-3.5-turbo-16k-0613";
16+
pub const GPT3_5_TURBO_0301: &str = "gpt-3.5-turbo-0301";
1217

18+
// https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo
19+
pub const GPT4_1106_PREVIEW: &str = "gpt-4-1106-preview";
20+
pub const GPT4_VISION_PREVIEW: &str = "gpt-4-vision-preview";
1321
pub const GPT4: &str = "gpt-4";
14-
pub const GPT4_0314: &str = "gpt-4-0314";
1522
pub const GPT4_32K: &str = "gpt-4-32k";
16-
pub const GPT4_32K_0314: &str = "gpt-4-32k-0314";
1723
pub const GPT4_0613: &str = "gpt-4-0613";
24+
pub const GPT4_32K_0613: &str = "gpt-4-32k-0613";
25+
// - legacy
26+
pub const GPT4_0314: &str = "gpt-4-0314";
27+
pub const GPT4_32K_0314: &str = "gpt-4-32k-0314";
1828

1929
#[derive(Debug, Serialize)]
2030
pub enum FunctionCallType {

0 commit comments

Comments
 (0)