Skip to content

Commit 134b5da

Browse files
authored
Merge pull request tjardoo#42 from sjud/master
update Run required_action
2 parents bac4dcf + bfe975c commit 134b5da

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/v1/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use super::resources::shared::ResponseWrapper;
1616

1717
const OPENAI_API_V1_ENDPOINT: &str = "https://api.openai.com/v1";
1818

19+
#[derive(Clone, Debug)]
1920
pub struct Client {
2021
pub http_client: reqwest::Client,
2122
pub base_url: String,

src/v1/resources/assistant/run.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct Run {
2020
pub status: RunStatus,
2121
/// Details on the action required to continue the run. Will be null if no action is required.
2222
#[serde(skip_serializing_if = "Option::is_none")]
23-
pub action: Option<RunAction>,
23+
pub required_action: Option<RunAction>,
2424
/// The last error associated with this run. Will be null if there are no errors.
2525
#[serde(skip_serializing_if = "Option::is_none")]
2626
pub last_error: Option<RunError>,
@@ -57,7 +57,7 @@ pub struct RunAction {
5757
/// For now, this is always 'submit_tool_outputs'.
5858
pub r#type: String,
5959
/// Details on the tool outputs needed for this run to continue.
60-
pub submit_tool_outputs: Vec<RunActionSubmitToolOutput>,
60+
pub submit_tool_outputs: RunActionSubmitToolOutput,
6161
}
6262

6363
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]

0 commit comments

Comments
 (0)