File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use std::env;
66async fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
77 let client = Client :: new ( env:: var ( "OPENAI_API_KEY" ) . unwrap ( ) . to_string ( ) ) ;
88 let req = ChatCompletionRequest {
9- model : chat_completion:: GPT3_5_TURBO . to_string ( ) ,
9+ model : chat_completion:: GPT4 . to_string ( ) ,
1010 messages : vec ! [ chat_completion:: ChatCompletionMessage {
1111 role: chat_completion:: MessageRole :: user,
1212 content: String :: from( "NFTとは?" ) ,
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ use crate::v1::common;
44
55pub const GPT3_5_TURBO : & str = "gpt-3.5-turbo" ;
66pub const GPT3_5_TURBO_0301 : & str = "gpt-3.5-turbo-0301" ;
7+ pub const GPT4 : & str = "gpt-4" ;
8+ pub const GPT4_0314 : & str = "gpt-4-0314" ;
9+ pub const GPT4_32K : & str = "gpt-4-32k" ;
10+ pub const GPT4_32K_0314 : & str = "gpt-4-32k-0314" ;
711
812#[ derive( Debug , Serialize ) ]
913pub struct ChatCompletionRequest {
You can’t perform that action at this time.
0 commit comments