| 1 | package Langertha::Spec::Ollama; | ||||||||||||
| 2 | # ABSTRACT: Pre-computed OpenAPI operations for Ollama | ||||||||||||
| 3 | 30 | our $VERSION = '0.505'; | |||||||||||
| 4 | |||||||||||||
| 5 | # AUTO-GENERATED by maint/generate_spec_data.pl -- do not edit manually. | ||||||||||||
| 6 | # Source: share/ollama.yaml (12 operations) | ||||||||||||
| 7 | |||||||||||||
| 8 | 30 | my $DATA; | |||||||||||
| 9 | |||||||||||||
| 10 | 88 | ▶ | sub data { | ||||||||||
|
Subroutine
data: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 11 | 88 | ▶ | $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 | 88 | return $DATA; | |||||||||||
| 29 | } | ||||||||||||
| 30 | |||||||||||||
| 31 | 30 | 1; | |||||||||||
| 32 | |||||||||||||
| 33 | __END__ | ||||||||||||