Cleaning for compaction

This commit is contained in:
jif-oai
2025-12-01 11:17:09 +00:00
parent cac05eddc1
commit da534afe3d
5 changed files with 18 additions and 30 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ impl<T: HttpTransport, A: AuthProvider> CompactClient<T, A> {
}
}
pub async fn compact(
async fn compact(
&self,
body: serde_json::Value,
extra_headers: HeaderMap,
+2 -4
View File
@@ -50,10 +50,7 @@ impl<T: HttpTransport, A: AuthProvider> ResponsesClient<T, A> {
}
}
pub async fn stream_request(
&self,
request: ResponsesRequest,
) -> Result<ResponseStream, ApiError> {
async fn stream_request(&self, request: ResponsesRequest) -> Result<ResponseStream, ApiError> {
self.stream(request.body, request.headers).await
}
@@ -95,6 +92,7 @@ impl<T: HttpTransport, A: AuthProvider> ResponsesClient<T, A> {
}
}
// Pub mainly for testing purpose.
pub async fn stream(
&self,
body: Value,