Skip to content

Commit 27ebf78

Browse files
committed
move conversation inside responses
1 parent f000b45 commit 27ebf78

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

async-openai/src/conversation_items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use serde::Serialize;
33
use crate::{
44
config::Config,
55
error::OpenAIError,
6-
types::{
6+
types::responses::{
77
ConversationItem, ConversationItemList, ConversationResource,
88
CreateConversationItemsRequest,
99
},

async-openai/src/conversations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::{
22
config::Config,
33
conversation_items::ConversationItems,
44
error::OpenAIError,
5-
types::{
5+
types::responses::{
66
ConversationResource, CreateConversationRequest, DeleteConversationResponse,
77
UpdateConversationRequest,
88
},

async-openai/src/types/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ mod batch;
99
mod chat;
1010
mod common;
1111
mod completion;
12-
mod conversation;
1312
mod embedding;
1413
mod file;
1514
mod fine_tuning;
@@ -43,7 +42,6 @@ pub use batch::*;
4342
pub use chat::*;
4443
pub use common::*;
4544
pub use completion::*;
46-
pub use conversation::*;
4745
pub use embedding::*;
4846
pub use file::*;
4947
pub use fine_tuning::*;

async-openai/src/types/conversation.rs renamed to async-openai/src/types/responses/conversation.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ use crate::{
66
types::responses::{
77
AnyItemReference, CodeInterpreterToolCall, ComputerToolCall, CustomToolCall,
88
CustomToolCallOutput, FileSearchToolCall, ImageGenToolCall, InputFileContent,
9-
InputImageContent, InputTextContent, LocalShellToolCall, LocalShellToolCallOutput,
10-
MCPApprovalRequest, MCPApprovalResponse, MCPListTools, MCPToolCall, OutputTextContent,
11-
ReasoningItem, ReasoningTextContent, RefusalContent, WebSearchToolCall,
9+
InputImageContent, InputItem, InputTextContent, LocalShellToolCall,
10+
LocalShellToolCallOutput, MCPApprovalRequest, MCPApprovalResponse, MCPListTools,
11+
MCPToolCall, OutputTextContent, ReasoningItem, ReasoningTextContent, RefusalContent,
12+
WebSearchToolCall,
1213
},
1314
};
1415

15-
use super::{common::Metadata, responses::InputItem};
16+
use crate::types::common::Metadata;
1617

1718
/// Represents a conversation object.
1819
#[derive(Clone, Serialize, Debug, Deserialize, PartialEq)]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
mod conversation;
12
mod response;
23
mod response_stream;
34

5+
pub use conversation::*;
46
pub use response::*;
57
pub use response_stream::*;

0 commit comments

Comments
 (0)