package proxy import ( "openteam/server/internal/proxy/convert" ) // convertRequest translates a request body from the client protocol to the // channel provider's native format. func convertRequest(route Route, provider string, body []byte, upstreamModel string) ([]byte, error) { return convert.Request(clientProto(route), provider, body, upstreamModel) } // convertResponse translates a non-stream upstream response back to the // client protocol. func convertResponse(route Route, provider string, body []byte) ([]byte, error) { return convert.Response(clientProto(route), provider, body) }