diff --git a/rig-core/src/streaming.rs b/rig-core/src/streaming.rs index 2d720a9..7a58498 100644 --- a/rig-core/src/streaming.rs +++ b/rig-core/src/streaming.rs @@ -71,11 +71,11 @@ impl StreamingCompletionResponse { } } -impl Into>> for StreamingCompletionResponse { - fn into(self) -> CompletionResponse> { +impl From> for CompletionResponse> { + fn from(value: StreamingCompletionResponse) -> CompletionResponse> { CompletionResponse { - choice: self.choice, - raw_response: self.response, + choice: value.choice, + raw_response: value.response, } } }