Support function calling

This commit is contained in:
Dongri Jin
2023-06-19 18:24:27 +09:00
parent 7ce3efe04f
commit 6292d78507
6 changed files with 188 additions and 11 deletions

View File

@ -7,7 +7,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new(env::var("OPENAI_API_KEY").unwrap().to_string());
let req = CompletionRequest {
model: completion::GPT3_TEXT_DAVINCI_003.to_string(),
prompt: Some(String::from("NFTとは")),
prompt: Some(String::from("What is Bitcoin?")),
suffix: None,
max_tokens: Some(3000),
temperature: Some(0.9),