AI-Ollama-Client
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/AI/Ollama/Client/Impl.pm view on Meta::CPAN
}
);
return $tx
}
sub checkBlob( $self, %options ) {
my $tx = $self->_build_checkBlob_request(%options);
# validate our request while developing
my $results = $self->openapi->validate_request($tx->req);
if( $results->{error}) {
say $results;
say $tx->req->to_string;
};
my $r1 = Future::Mojo->new();
my $res = $r1->then( sub( $tx ) {
my $resp = $tx->res;
# Should we validate using OpenAPI::Modern here?!
if( $resp->code == 200 ) {
# Blob exists on the server
return Future::Mojo->done($resp);
} elsif( $resp->code == 404 ) {
# Blob was not found
return Future::Mojo->done($resp);
} else {
# An unknown/unhandled response, likely an error
return Future::Mojo->fail($resp);
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.078 second using v1.00-cache-2.02-grep-82fe00e-cpan-20ab987cc5d )