File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ let mut client = client::Client::new(config);
5555let request = chat :: CreateChatCompletionRequestArgs :: default ()
5656 . messages ([
5757 chat :: ChatCompletionRequestSystemMessage :: from (" You are a helpful assistant." ). into (),
58- chat :: ChatCompletionRequestUserMessage :: from (" Who won the world series in 2020 ?" ). into (),
58+ chat :: ChatCompletionRequestUserMessage :: from (" How is the weather today ?" ). into (),
5959 ])
6060 . build ()
6161 . unwrap ();
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ fn main() {
3232 chat:: ChatCompletionRequestSystemMessage :: from ( "You are a helpful assistant." ) . into ( ) ,
3333 chat:: ChatCompletionRequestUserMessage :: from ( "Who won the world series in 2020?" )
3434 . into ( ) ,
35- // chat::ChatCompletionRequestAssistantMessage::from(
36- // "The Los Angeles Dodgers won the World Series in 2020.",
37- // )
38- // .into(),
39- // chat::ChatCompletionRequestUserMessage::from("Where was it played?").into(),
35+ chat:: ChatCompletionRequestAssistantMessage :: from (
36+ "The Los Angeles Dodgers won the World Series in 2020." ,
37+ )
38+ . into ( ) ,
39+ chat:: ChatCompletionRequestUserMessage :: from ( "Where was it played?" ) . into ( ) ,
4040 ] )
4141 . build ( )
4242 . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments