Skip to content

Commit 58f4bd7

Browse files
64bitSevenannn
authored andcommitted
partial spec sync (64bit#312)
* updated AssistantObject * updated FileSearchRankingOptions * updated doc comment for ResponseFormatJsonSchema in types/chat.rs * updates related to CreateAssistantRequest * updted ModifyAssistantRequest * update doc comments in types/audio.rs * Updates for CreateChatCompletionRequest and Chats API group * updated doc comment in CreateChatCompletionRequest * add ChatCompletionModalities * update CreateChatCompletionRequest with prediction field * add ChatCompletinAudio type and related types * added ChatCompletionRequetDeveloperMessage and associated types * added user message type input_audio: ChatCompletionRequestMessageContentPartAudio * updated ChatCompletionRequestAssistantMessage * added ChatCompletionResponseMessageAudio * updates for chat completion streaming response * update CreateFineTuningJobRequest * update for FineTuningJobEvent * fix example compilation * fix CreateChatCompletionRequest * cleanup * fix MaxResponseOutputTokens * update model in examples/realtime * update model * update partially implemented
1 parent a8f6bb8 commit 58f4bd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/chat-store/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
use std::error::Error;
21
use async_openai::{
32
types::{
4-
ChatCompletionRequestAssistantMessageArgs, ChatCompletionRequestSystemMessageArgs,
5-
ChatCompletionRequestUserMessageArgs, CreateChatCompletionRequestArgs,
3+
ChatCompletionRequestSystemMessageArgs, ChatCompletionRequestUserMessageArgs,
4+
CreateChatCompletionRequestArgs,
65
},
76
Client,
87
};
98
use serde_json::json;
9+
use std::error::Error;
1010

1111
#[tokio::main]
1212
async fn main() -> Result<(), Box<dyn Error>> {

0 commit comments

Comments
 (0)