Add GPT4 models

This commit is contained in:
Dongri Jin
2023-03-18 06:25:30 +09:00
parent d3223befbd
commit 5db42ecf0c
2 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,7 @@ use std::env;
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new(env::var("OPENAI_API_KEY").unwrap().to_string());
let req = ChatCompletionRequest {
model: chat_completion::GPT3_5_TURBO.to_string(),
model: chat_completion::GPT4.to_string(),
messages: vec![chat_completion::ChatCompletionMessage {
role: chat_completion::MessageRole::user,
content: String::from("NFTとは"),