gproxy-transform 3.0.0-alpha.0

GPROXY v3 pairwise protocol transforms
Documentation
1
2
3
4
5
6
7
8
9
10
pub(crate) mod generate_content;
pub(crate) mod imagen;
pub(crate) mod responses;
pub(crate) mod stream;

use crate::TransformError;

pub(super) fn encode(value: &impl serde::Serialize) -> Result<bytes::Bytes, TransformError> {
    Ok(bytes::Bytes::from(serde_json::to_vec(value)?))
}