private_gpt_dio 1.0.2

SDKdartflutter
Platformandroidioswindowslinuxmacosweb

OpenAPI API client for private gpt

openapi (EXPERIMENTAL)

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 0.1.0
  • Build package: org.openapitools.codegen.languages.DartDioClientCodegen

Requirements

Installation & Usage

pub.dev

To use the package from pub.dev, please include the following in pubspec.yaml

dependencies:
  openapi: 1.0.0

Github

If this Dart package is published to Github, please include the following in pubspec.yaml

dependencies:
  openapi:
    git:
      url: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
      #ref: main

Local development

To use the package from your local drive, please include the following in pubspec.yaml

dependencies:
  openapi:
    path: /path/to/openapi

Getting Started

Please follow the installation procedure and then run the following:

import 'package:private_gpt_dio/private_gpt_dio.dart';


final api = Openapi().getContextChunksApi();
final ChunksBody chunksBody = ; // ChunksBody | 

try {
    final response = await api.chunksRetrievalV1ChunksPost(chunksBody);
    print(response);
} catch on DioException (e) {
    print("Exception when calling ContextChunksApi->chunksRetrievalV1ChunksPost: $e\n");
}

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
ContextChunksApichunksRetrievalV1ChunksPostPOST /v1/chunksChunks Retrieval
ContextualCompletionsApichatCompletionV1ChatCompletionsPostPOST /v1/chat/completionsChat Completion
ContextualCompletionsApipromptCompletionV1CompletionsPostPOST /v1/completionsCompletion
EmbeddingsApiembeddingsGenerationV1EmbeddingsPostPOST /v1/embeddingsEmbeddings Generation
HealthApihealthHealthGetGET /healthHealth
IngestionApideleteIngestedV1IngestDocIdDeleteDELETE /v1/ingest/{doc_id}Delete Ingested
IngestionApiingestFileV1IngestFilePostPOST /v1/ingest/fileIngest File
IngestionApiingestTextV1IngestTextPostPOST /v1/ingest/textIngest Text
IngestionApiingestV1IngestPostPOST /v1/ingestIngest
IngestionApilistIngestedV1IngestListGetGET /v1/ingest/listList Ingested

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author