AI-Ollama-Client

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

0.05 2025-03-01
    * Add File::ShareDir::Install to CONFIGURE_REQUIRES
      This fixes GH #3

0.04 2025-02-28
    * Regenerate with better OpenAPI converter
    * Distribute our OpenAPI spec
    * Request builders are now public
    * HTTP events are emitted for easier tracing
      - request
      - response

0.03 2024-04-08
    * Fix prerequisites

0.02 2024-04-07
    * Regenerated documentation
    * Fixed code for uploading a model

lib/AI/Ollama/Client/Impl.pm  view on Meta::CPAN

=head2 C<< build_pushModel_request >>

Build an HTTP request as L<Mojo::Request> object. For the parameters see below.

=head2 C<< pushModel >>

  my $res = $client->pushModel()->get;

Upload a model to a model library.

Requires registering for ollama.ai and adding a public key first.


=head3 Options

=over 4

=item C<< insecure >>

Allow insecure connections to the library.

ollama/ollama-curated.json  view on Meta::CPAN

{"openapi":"3.0.3","components":{"schemas":{"PushModelResponse":{"properties":{"total":{"type":"integer","description":"total size of the model","example":"2142590208"},"status":{"$ref":"#/components/schemas/PushModelStatus"},"digest":{"example":"sha...

ollama/ollama-curated.yaml  view on Meta::CPAN

          content:
            application/x-ndjson:
              schema:
                $ref: '#/components/schemas/PullModelResponse'
  /push:
    post:
      operationId: pushModel
      tags:
        - Models
      summary: Upload a model to a model library.
      description: Requires registering for ollama.ai and adding a public key first.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushModelRequest'
      responses:
        '200':
          description: Successful operation.
          content:
            application/json:



( run in 0.927 second using v1.01-cache-2.11-cpan-64827b87656 )