| 1 | package Langertha::Spec::Ollama; | ||||||||||||
| 2 | # ABSTRACT: Pre-computed OpenAPI operations for Ollama | ||||||||||||
| 3 | 29 | our $VERSION = '0.503'; | |||||||||||
| 4 | |||||||||||||
| 5 | # AUTO-GENERATED by maint/generate_spec_data.pl -- do not edit manually. | ||||||||||||
| 6 | # Source: share/ollama.yaml (12 operations) | ||||||||||||
| 7 | |||||||||||||
| 8 | 29 | my $DATA; | |||||||||||
| 9 | |||||||||||||
| 10 | 82 | ▶ | sub data { | ||||||||||
|
Subroutine
data: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 11 | 82 | ▶ | $DATA //= { | ||||||||||
|
Condition100%2/2
$DATA //= {"server_url", "http://localhost:11434", "operations", {"chat", {"method", "POST", "path", "/api/chat", "content_type", "application/json"}, "copy", {"method", "POST", "path", "/api/copy", "content_type", "application/json"}, "create", {"method", "POST", "path", "/api/create", "content_type", "application/json"}, "delete", {"method", "DELETE", "path", "/api/delete", "content_type", "application/json"}, "embed", {"method", "POST", "path", "/api/embed", "content_type", "application/json"}, "generate", {"method", "POST", "path", "/api/generate", "content_type", "application/json"}, "list", {"method", "GET", "path", "/api/tags"}, "ps", {"method", "GET", "path", "/api/ps"}, "pull", {"method", "POST", "path", "/api/pull", "content_type", "application/json"}, "push", {"method", "POST", "path", "/api/push", "content_type", "application/json"}, "show", {"method", "POST", "path", "/api/show", "content_type", "application/json"}, "version", {"method", "GET", "path", "/api/version"}}}
MC/DC100%1/1
$DATA //= {"server_url", "http://localhost:11434", "operations", {"chat", {"method", "POST", "path", "/api/chat", "content_type", "application/json"}, "copy", {"method", "POST", "path", "/api/copy", "content_type", "application/json"}, "create", {"method", "POST", "path", "/api/create", "content_type", "application/json"}, "delete", {"method", "DELETE", "path", "/api/delete", "content_type", "application/json"}, "embed", {"method", "POST", "path", "/api/embed", "content_type", "application/json"}, "generate", {"method", "POST", "path", "/api/generate", "content_type", "application/json"}, "list", {"method", "GET", "path", "/api/tags"}, "ps", {"method", "GET", "path", "/api/ps"}, "pull", {"method", "POST", "path", "/api/pull", "content_type", "application/json"}, "push", {"method", "POST", "path", "/api/push", "content_type", "application/json"}, "show", {"method", "POST", "path", "/api/show", "content_type", "application/json"}, "version", {"method", "GET", "path", "/api/version"}}}
$DATA
Truth table100%2/2
A
A= $DATA
| |||||||||||||
| 12 | server_url => 'http://localhost:11434', | ||||||||||||
| 13 | operations => { | ||||||||||||
| 14 | 'chat' => { method => 'POST', path => '/api/chat', content_type => 'application/json' }, | ||||||||||||
| 15 | 'copy' => { method => 'POST', path => '/api/copy', content_type => 'application/json' }, | ||||||||||||
| 16 | 'create' => { method => 'POST', path => '/api/create', content_type => 'application/json' }, | ||||||||||||
| 17 | 'delete' => { method => 'DELETE', path => '/api/delete', content_type => 'application/json' }, | ||||||||||||
| 18 | 'embed' => { method => 'POST', path => '/api/embed', content_type => 'application/json' }, | ||||||||||||
| 19 | 'generate' => { method => 'POST', path => '/api/generate', content_type => 'application/json' }, | ||||||||||||
| 20 | 'list' => { method => 'GET', path => '/api/tags' }, | ||||||||||||
| 21 | 'ps' => { method => 'GET', path => '/api/ps' }, | ||||||||||||
| 22 | 'pull' => { method => 'POST', path => '/api/pull', content_type => 'application/json' }, | ||||||||||||
| 23 | 'push' => { method => 'POST', path => '/api/push', content_type => 'application/json' }, | ||||||||||||
| 24 | 'show' => { method => 'POST', path => '/api/show', content_type => 'application/json' }, | ||||||||||||
| 25 | 'version' => { method => 'GET', path => '/api/version' }, | ||||||||||||
| 26 | }, | ||||||||||||
| 27 | }; | ||||||||||||
| 28 | 82 | return $DATA; | |||||||||||
| 29 | } | ||||||||||||
| 30 | |||||||||||||
| 31 | 29 | 1; | |||||||||||
| 32 | |||||||||||||
| 33 | __END__ | ||||||||||||
| 34 | |||||||||||||
| 35 | =pod | ||||||||||||
| 36 | |||||||||||||
| 37 | =encoding UTF-8 | ||||||||||||
| 38 | |||||||||||||
| 39 | =head1 NAME | ||||||||||||
| 40 | |||||||||||||
| 41 | Langertha::Spec::Ollama - Pre-computed OpenAPI operations for Ollama | ||||||||||||
| 42 | |||||||||||||
| 43 | =head1 VERSION | ||||||||||||
| 44 | |||||||||||||
| 45 | version 0.503 | ||||||||||||
| 46 | |||||||||||||
| 47 | =head1 SUPPORT | ||||||||||||
| 48 | |||||||||||||
| 49 | =head2 Issues | ||||||||||||
| 50 | |||||||||||||
| 51 | Please report bugs and feature requests on GitHub at | ||||||||||||
| 52 | L<https://github.com/Getty/langertha/issues>. | ||||||||||||
| 53 | |||||||||||||
| 54 | =head2 IRC | ||||||||||||
| 55 | |||||||||||||
| 56 | Join C<#langertha> on C<irc.perl.org> or message Getty directly. | ||||||||||||
| 57 | |||||||||||||
| 58 | =head1 CONTRIBUTING | ||||||||||||
| 59 | |||||||||||||
| 60 | Contributions are welcome! Please fork the repository and submit a pull request. | ||||||||||||
| 61 | |||||||||||||
| 62 | =head1 AUTHOR | ||||||||||||
| 63 | |||||||||||||
| 64 | Torsten Raudssus <getty@cpan.org> | ||||||||||||
| 65 | |||||||||||||
| 66 | =head1 COPYRIGHT AND LICENSE | ||||||||||||
| 67 | |||||||||||||
| 68 | This software is copyright (c) 2026 by Torsten Raudssus L<https://raudssus.de/>. | ||||||||||||
| 69 | |||||||||||||
| 70 | This is free software; you can redistribute it and/or modify it under | ||||||||||||
| 71 | the same terms as the Perl 5 programming language system itself. | ||||||||||||
| 72 | |||||||||||||
| 73 | =cut | ||||||||||||