pub async fn generate_stream_endpoint( __arg0: State<AppState>, __arg1: Json<Value>, ) -> Result<Response, (StatusCode, String)>