File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " openai-api-rs"
3- version = " 0.1.4 "
3+ version = " 0.1.5 "
44edition = " 2021"
55authors = [
" Dongri Jin <[email protected] >" ]
66license = " MIT"
Original file line number Diff line number Diff line change 44Cargo.toml
55``` toml
66[dependencies ]
7- openai-api-rs = " 0.1.4 "
7+ openai-api-rs = " 0.1.5 "
88```
99
1010## Example:
@@ -22,7 +22,7 @@ use std::env;
2222async fn main () -> Result <(), Box <dyn std :: error :: Error >> {
2323 let client = Client :: new (env :: var (" OPENAI_API_KEY" ). unwrap (). to_string ());
2424 let req = ChatCompletionRequest {
25- model : chat_completion :: GPT3_5_TURBO . to_string (),
25+ model : chat_completion :: GPT4 . to_string (),
2626 messages : vec! [chat_completion :: ChatCompletionMessage {
2727 role : chat_completion :: MessageRole :: user ,
2828 content : String :: from (" NFTとは?" ),
You can’t perform that action at this time.
0 commit comments