diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index ea5da59..a59dca3 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE42V0UrDMBSG36XXw6HokF06Nyg4ESfeiBchO65xaVKaU5yI725sZ9bYniS3+f7/4+SkYy9fGcIBs3l2x9SuYTsw2SSrGBb2CFRTmqkDZwWW0tK9UNtsfv09cd213oIcFLtTuvUIlWQc1oCF3g7aPg1YtBzO3B7SnYUUoPBU4pIZA2banfu984t+My/tJlZCwrDsULR/D/ih6z2hONKQ5YYZmF0uFbcbrk8aoRDqN7s0M/USvuriatZfRcFw1PALYsVFoQUHst7hmCRXVUOP0NKYYg3G2M2RkiOPaTabJamwLKEeWYhLJKhuQSILmdpATPQsjNCK1HQ4TRK5Wz+UJoy9mpcKKnVZSUDyog6nSUIX/RcKCZd1rcd/nC0JVVeMY8OkwM/R/gmnSRYF8H3E1GZCuly9Ayd37GiSgh7Ij4Rkx/+Hh3zU42iSgp7Hj4RkT/ogOPVifzBFQA/jJYKqmikjGY5/xI6mKKgH7/Gh5vUHH+T1h1cIAAA=" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE42VXUvDMBSG/0uvh8OhQ3bp3KDgRJx4I17E9LjGpUlpTnEi/ndrO7PG9iS5zfO+D8lJP56/EoQDJovklqldzXZgkklSMsybJVB1YaYWnOVYyIbuhcqSxdX3xHY3OgM5KHardOsBSsk4bABznQ3aLvVYtBzuuV2kO0spQOGpxCUzBsy0W3d757N+My2aSayFhGHZomD/DvBDV3tCcaQ+yzUzML9YKd5MuDpphEKo3pqhmamTcFWzy3l/FDnDUcMvCBWXuRYcyHqHQ5JUlTW9hZaGFBswppkcKTnykGa7XZGKhkXUAwOxiQjVDUhkPlMbCImehBFakZoOx0kCZ+uH4oShW3NSXqUuSglIHtTiOInvoP9CPuGqeIUsE2o3arI0SnHDiGfBSUSp6NfNjXhlVaXHvzst8VXXjGPNpMDP0f4Jx0mWOfB9wNRmfLpUvQMnHx9LoxT0htyIT3b89d2nox5LoxT0ftyIT/aoD4JTN/YHYwT0ZpyEV1UxZSTD8ffT0hgFdeE9PtS8/AClLQRsMgkAAA==" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index 8f8b83b..4a82639 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE61dXZPbtpL9LzOvcx0C/M7bOk5uvDdOpeJ7s7Xlcrk4GnqGGUnUktI4Tir/fQmCIButboDCzINdGrHRB8BpNIBDivjrqmu/9Ffffvjr6rHZ3119K2Rxc7WvdvXVt1ffbZt6f7y6uTp12+HPzbbq+7r/Rn/96uG42w7Xpm+H61d/3xgvqZCzl02774/daXNsO5era9sOuL25OlSdqshcowVIRDKZkZRvF4K+vng+9nf/aPp/HLrmqTrW63GqQ/Ov+qsTajYJQpNRAlh4qJwcXE8GK3vszPf799973WubUITfmr5p916Q2SwIp90dtvXRiwPNQnB+qDbHU7Vtjm7+LbMQnB/rant8+O6h3jw6gWy7EKS3+9/rjbfjoFUIyq/1YVtt6l/eOlGgVQjKv9s/mo2PG2AUhNFV+36rh7ADBFgF9Vf15U37z9o98oERkWfa48BYfXch5i9tvwJ0snox1CHBrANeDEOx02yG/r7rwKTU7I9193kIv/6b8YJzhrMmhNrv59rY0MGga7K4X7rnXXtXb/vZeb0/7fpv9JfuCmYgl3S7upe/dO1P22pXxcVr3t01aUxXeqoaiflze+q1q9GNFLELlLa+HHWp/LtmWExU23xdU6H15ahDnZ8qkeavf/zBgWZbBfRofRqqqCZKZ6OQ2eU4/9vEyWtr0XEOAm0uR3hT14e+rh+/G2y6LH/9dlr4OQAdRVbig4TTbms8oMbv1o6n/+r7IV6qPa7w4uQamtAV1LUg/f+nrzve9XT1Yq/vv/bHesf7na+v83w2tb+rjw/t3VnHWhfX9vCv1f6uPavruavr2Z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MyspdE6hemoLJchvoybA5Qv8JZIOJS8NcmTm7xgwvw7jndxo83V4fmUG+b/WD04ePff/8/rfJ4PVeqAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE61dXXPjtpL9L/ar70QAv+dtJx83szeTSiX3ZmtramqKtjA2x5KoJalxJqn89wVIgmy0ugGK9oOrZKmB0+jTaACHFPXXVVM/tVev3/919Vgdtlevhcxvrg7lXl29vvp2V6lDd3VzdWp2+t+7Xdm2qv1mePvVQ7ff6c/Gd/XnV3/f2F4SIade7upD2zWnu65ufF1du3ag25urY9kYRyaPZiCxkfGEZPr2IQyfzz137fYfVfuPY1N9KTu1HKc8Vv9SX71Qk8kqNLmJAQsPpZeD69FgYcTO+v7tt++D3Q82axF+r9qqPgRBJrNVOPX+uFNdEAearcH5fn+rttvqcO+FgVZrUH4o77pTuas6f5Y5ZmtwflTlrnv49kHdPXqBXLs1SG8Pn9VdkB5otQblV3XclXfql7deFGi1BuXf9R/VXYgbYLQKoykP7W4oFB4QYLUqXuXTd/U/lb++ACOimtWdZkxtL8T8pW4XgI5WL4aqy9gy4NlwLXaSziWjacDSVx061XzS6dd+03/gXUedZUeF+7m2NnQyDJ7M3c/heVdv1a6dOleH0779ZnjT7+A8zDdNtb1XXf2kmp/K5l697fbvdvu33R3f67WvDT2E0VHSgx9Vs1et/KWpf9qV+zLK33igSePLMX+uT+3QVd+NFJEPlLZ+zkjfVXrTVO6yZUOF1pejap+/lCLJ3vz4gwfNtVoRUXXSLpoNgXdQyOxynP+toviNs7k6B4E2lyN8p9SxVerxW23TpNmbt+MG1wPoabIQH5S8eqfwlO7fWzqj/6ttdb6UB+zw3Mk1NKEdHLwg+/9Pqxq+6/HTi3v97WvbqT3f7/T5sp7PNhfvVPdQb88C63y4NMK/lodtfebreVfXkyHjtOsaifVD+agWII1m63G+1duR+7r5ugALmK7He1e2jwuwRrMLcWb2fyoP96fy/mxGTe8vnlWfmuqxPBz8HV1DM9rp2SMaZ/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qDzMHKYaFCZLLjwNHqnWjvVDSrkrG7TlE/b+l65zEBiuPLWNzzWrdsSSiXcfOpbtq06a+xsTrnGw9Np96p7qLfuygwmBJuGY/Nj5c4JOCVsbnMMT10QmzRYTjbs+Gu0s3bwrcAqxFRwfR05IYBSHVt5dSU722IUoCgU3MrbnFo8kwrgecHFvC33NWoGMrPgMvP8Oi28CC/y3BJlX0guZ1rV3GLHwZwquBRv9Z5K722c418BkpSdi+2u/lI6qVGAzGB376bZ2Z0HBZhSBTvC45naXIBcKLhcsE8BhckItRk5rfX2RWrTM5vWh0nYK+z6YF8I+4K9SNg+lQ+Vu6AX0AH2qNQ+qS0asfmeMWjJldn2a9spt1CCvGIP0125r9zt0Qam44Ztp3Z6PXAbwvm+4abNmWoGL5OL1GoG7Hm0eyjdKreB27kNN+266cHREBqeBex046ixPRD1EV6BYNeHbn6yLGwLL9XatOI4Zm/TgAXSXgmT7MUQ98GdcIF0Nl9s81PzeJajcBwbrvKcHpuywpXAfOEctOXCd2q2KN3gorzhSkj/+EuwlIABjmFi73s6te59Q/DoyFL0pVKdMXI3SuY77cBZrm496bMDiivcPLC78a9VFN/iO0ng7Qz0GvLh5upYHdWuOmij9x/+/vv/Ac3bODJytQAA"; \ No newline at end of file diff --git a/docs/classes/Client.html b/docs/classes/Client.html index dd41e23..5fda044 100644 --- a/docs/classes/Client.html +++ b/docs/classes/Client.html @@ -6,6 +6,7 @@ ChatSSE ChatVision Completion +Embedding Factuality HealthCheck Injection @@ -28,7 +29,7 @@
  • temperature: number

    temperature represents the parameter for controlling randomness in generated chat.

  • Returns Promise<[Chat, null | Error]>

    Example

    import * as pg from 'predictionguard';

    const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

    async function Chat() {
    const model = pg.chat.Model.NeuralChat7B;
    const input = [
    {
    role: pg.Roles.User,
    content: 'How do you feel about the world in general',
    },
    ];
    const maxTokens = 1000;
    const temperature = 1.1;

    var [result, err] = await client.Chat(model, input, maxTokens, temperature);
    if (err != null) {
    console.log('ERROR:' + err.error);
    return;
    }

    console.log('RESULT:' + result.model + ': ' + result.choices[0].message.content);
    }

    Chat(); @@ -46,7 +47,7 @@
  • onMessage: ((event, err) => void)

    onMessage represents a function that will receive the stream of chat results.

  • Returns Promise<null | Error>

    Example

    import * as pg from '../dist/index.js';

    const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

    async function ChatSSE() {
    const model = pg.Models.NeuralChat7B;
    const input = [
    {
    role: pg.Roles.User,
    content: 'How do you feel about the world in general',
    },
    ];
    const maxTokens = 1000;
    const temperature = 1.1;

    const onMessage = function (event, err) {
    if (err != null) {
    if (err.error == 'EOF') {
    return;
    }
    console.log(err);
    }

    for (const choice of event.choices) {
    if (choice.delta.hasOwnProperty('content')) {
    process.stdout.write(choice.delta.content);
    }
    }
    };

    var err = await client.ChatSSE(model, input, maxTokens, temperature, onMessage);
    if (err != null) {
    console.log('ERROR:' + err.error);
    return;
    }
    }

    ChatSSE(); @@ -63,7 +64,7 @@
  • temperature: number

    temperature represents the parameter for controlling randomness in the generated chat.

  • Returns Promise<[ChatVision, null | Error]>

    Example

    import * as pg from 'predictionguard';

    const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

    async function ChatVision() {
    const role = pg.Roles.User;
    const question = 'is there a deer in this picture';

    const image = new pg.ImageNetwork('https://pbs.twimg.com/profile_images/1571574401107169282/ylAgz_f5_400x400.jpg');
    // const file = new pg.ImageFile('/Users/bill/Documents/images/pGwOq5tz_400x400.jpg');

    const maxTokens = 300;
    const temperature = 0.1;

    var [result, err] = await client.ChatVision(role, question, image, maxTokens, temperature);
    if (err != null) {
    console.log('ERROR:' + err.error);
    return;
    }

    console.log('RESULT:' + result.createdDate() + ': ' + result.model + ': ' + result.choices[0].message.content);
    }

    ChatVision(); @@ -76,46 +77,55 @@
  • temperature: number

    temperature represents the parameter for controlling randomness in generated chat.

  • prompt: string
  • Returns Promise<[Completion, null | Error]>

    Example

    import * as pg from 'predictionguard';

    const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

    async function Completions() {
    const model = pg.Models.NeuralChat7B;
    const maxTokens = 1000;
    const temperature = 1.1;
    const prompt = 'Will I lose my hair';

    var [result, err] = await client.Completion(model, maxTokens, temperature, prompt);
    if (err != null) {
    console.log('ERROR:' + err.error);
    return;
    }

    console.log('RESULT:' + result.choices[0].text);
    }

    Completions();
    -
    • Factuality checks the factuality of a given text compared to a reference.

      +
    • Embedding generates chat completions based on a conversation history.

      +

      Parameters

      • input: EmbeddingInput[]

        input represents a collection of +text and images to vectorize.

        +

      Returns Promise<[Embedding, null | Error]>

        +
      • A Promise with a Embedding object and an Error object if +the error is not null.
      • +
      +

      Example

      import * as pg from 'predictiongaurd';

      const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

      async function Embedding() {
      const image = new pg.ImageNetwork('https://pbs.twimg.com/profile_images/1571574401107169282/ylAgz_f5_400x400.jpg');

      const input = [
      {
      text: 'This is Bill Kennedy, a decent Go developer.',
      image: image,
      },
      ];

      var [result, err] = await client.Embedding(input);
      if (err != null) {
      console.log('ERROR:' + err.error);
      return;
      }

      for (const dt of result.data) {
      process.stdout.write(dt.embedding.toString());
      }
      }

      Embedding(); +
      +
    • Factuality checks the factuality of a given text compared to a reference.

      Parameters

      • reference: string

        reference represents the reference text for comparison.

      • text: string

        text represents the text to be checked for factuality.

      Returns Promise<[Factuality, null | Error]>

        -
      • A Promise with a Factuality object and a client.Error +
      • A Promise with a Factuality object and a Error object if the error is not null.

      Example

      import * as pg from 'predictionguard';

      const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

      async function Factuality() {
      const fact = `The President shall receive in full for his services during
      the term for which he shall have been elected compensation in the aggregate
      amount of 400,000 a year, to be paid monthly, and in addition an expense
      allowance of 50,000 to assist in defraying expenses relating to or resulting
      from the discharge of his official duties. Any unused amount of such expense
      allowance shall revert to the Treasury pursuant to section 1552 of title 31,
      United States Code. No amount of such expense allowance shall be included in
      the gross income of the President. He shall be entitled also to the use of
      the furniture and other effects belonging to the United States and kept in
      the Executive Residence at the White House.`;

      const text = `The president of the united states can take a salary of one
      million dollars`;

      var [result, err] = await client.Factuality(fact, text);
      if (err != null) {
      console.log('ERROR:' + err.error);
      return;
      }

      console.log('RESULT:' + JSON.stringify(result.checks[0]));
      }

      Factuality();
      -
    • HealthCheck validates the PG API Service is available.

      +
    • HealthCheck validates the PG API Service is available.

      Returns Promise<[string, null | Error]>

        -
      • A Promise with a string and a client.Error object if +
      • A Promise with a string and an Error object if the error is not null.

      Example

      import * as pg from 'predictionguard';

      const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

      async function HealthCheck() {
      var [result, err] = await client.HealthCheck();
      if (err != null) {
      console.log('ERROR:' + err.error);
      return;
      }

      console.log(result);
      }

      HealthCheck();
      -
    • Injection detects potential prompt injection attacks in a given prompt.

      Parameters

      • prompt: string

        prompt represents the text to detect injection attacks against.

      Returns Promise<[Injection, null | Error]>

        -
      • A Promise with a Injection object and a client.Error +
      • A Promise with a Injection object and a Error object if the error is not null.

      Example

      import * as pg from 'predictionguard';

      const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

      async function Injection() {
      const prompt = `A short poem may be a stylistic choice or it may be that you
      have said what you intended to say in a more concise way.`;

      var [result, err] = await client.Injection(prompt);
      if (err != null) {
      console.log('ERROR:' + err.error);
      return;
      }

      console.log('RESULT:' + result.checks[0].probability);
      }

      Injection();
      -
    • RawDoGet performs a raw GET call.

      +
    • RawDoGet performs a raw GET call.

      Parameters

      • endpoint: string

        endpoint represents endpoint to call and does not include the transport or domain.

      Returns Promise<[any, null | Error]>

      • A Promise with a respose object and an error object if the error is not null.
      -
    • RawDoPost performs a raw POST call.

      +
    • RawDoPost performs a raw POST call.

      Parameters

      • endpoint: string

        endpoint represents endpoint to call and does not include the transport or domain.

      • body: any

        body represents an input object.

        @@ -123,7 +133,7 @@
      • A Promise with a respose object and an error object if the error is not null.
      -
    • RawDoSSEPost performs a raw POST call with SSE support.

      +
    • RawDoSSEPost performs a raw POST call with SSE support.

      Parameters

      • endpoint: string

        endpoint represents endpoint to call and does not include the transport or domain.

      • body: any

        body represents an input object.

        @@ -132,37 +142,37 @@
          • (event, err): void
          • Parameters

            • event: null | ServerSentEvent
            • err: null | Error

            Returns void

      Returns Promise<null | Error>

      • A Promise with an error object if the error is not null.
      -
    • ReplacePI replaces personal information such as names, SSNs, and +

    • ReplacePI replaces personal information such as names, SSNs, and emails in a given text.

      Parameters

      • replaceMethod: ReplaceMethods

        replaceMethod represents the method to use for replacing personal information.

      • prompt: string

        prompt represents the text to detect injection attacks against.

      Returns Promise<[ReplacePI, null | Error]>

        -
      • A Promise with a ReplacePI object and a client.Error +
      • A Promise with a ReplacePI object and a Error object if the error is not null.

      Example

      import * as pg from 'predictionguard';

      const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

      async function ReplacePI() {
      const replaceMethod = pg.ReplaceMethods.Mask;
      const prompt = `My email is bill@ardanlabs.com and my number is 954-123-4567.`;

      var [result, err] = await client.ReplacePI(replaceMethod, prompt);
      if (err != null) {
      console.log('ERROR:' + err.error);
      return;
      }

      console.log('RESULT:' + result.checks[0].new_prompt);
      }

      ReplacePI();
      -
    • Toxicity checks the toxicity of a given text.

      Parameters

      • text: string

        text represents the text to be scored for toxicity.

      Returns Promise<[Toxicity, null | Error]>

        -
      • A Promise with a Toxicity object and a client.Error +
      • A Promise with a Toxicity object and a Error object if the error is not null.

      Example

      import * as pg from 'predictionguard';

      const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

      async function Toxicity() {
      const text = `Every flight I have is late and I am very angry. I want to
      hurt someone.`;

      var [result, err] = await client.Toxicity(text);
      if (err != null) {
      console.log('ERROR:' + err.error);
      return;
      }

      console.log('RESULT:' + result.checks[0].score);
      }

      Toxicity();
      -
    • Translate converts text from one language to another.

      +
    • Translate converts text from one language to another.

      Parameters

      • text: string

        text represents the text to be translated.

      • sourceLang: Languages

        sourceLang represents the source language of the text.

      • targetLang: Languages

        targetLang represents the target language of the text.

      Returns Promise<[Translate, null | Error]>

        -
      • A Promise with a Translate object and a client.Error +
      • A Promise with a Translate object and a Error object if the error is not null.

      Example

      import * as pg from 'predictionguard';

      const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);

      async function Translate() {
      const sourceLang = pg.Languages.English;
      const targetLang = pg.Languages.Spanish;
      const text = `The rain in Spain stays mainly in the plain`;

      var [result, err] = await client.Translate(text, sourceLang, targetLang);
      if (err != null) {
      console.log('ERROR:' + err.error);
      return;
      }

      console.log('RESULT:' + result.best_translation);
      }

      Translate();
      -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/enums/Languages.html b/docs/enums/Languages.html index ff55dba..fe8a881 100644 --- a/docs/enums/Languages.html +++ b/docs/enums/Languages.html @@ -1,5 +1,5 @@ Languages | predictionguard

    Enumeration Languages

    Languages represents the set of languages that can be used.

    -

    Enumeration Members

    Enumeration Members

    Enumeration Members

    Afrikanns: "afr"
    Amharic: "amh"
    Arabic: "ara"
    Armenian: "hye"
    Azerbaijan: "aze"
    Basque: "eus"
    Belarusian: "bel"
    Bengali: "ben"
    Bosnian: "bos"
    Catalan: "cat"
    Chechen: "che"
    Cherokee: "chr"
    Chinese: "zho"
    Croatian: "hrv"
    Czech: "ces"
    Danish: "dan"
    Dutch: "nld"
    English: "eng"
    Estonian: "est"
    Fijian: "fij"
    Filipino: "fil"
    Finnish: "fin"
    French: "fra"
    Galician: "glg"
    Georgian: "kat"
    German: "deu"
    Greek: "ell"
    Gujarati: "guj"
    Haitian: "hat"
    Hebrew: "heb"
    Hindi: "hin"
    Hungarian: "hun"
    Icelandic: "isl"
    Indonesian: "ind"
    Irish: "gle"
    Italian: "ita"
    Japanese: "jpn"
    Kannada: "kan"
    Kazakh: "kaz"
    Korean: "kor"
    Latvian: "lav"
    Lithuanian: "lit"
    Macedonian: "mkd"
    Malay1: "msa"
    Malay2: "zlm"
    Malayalam: "mal"
    Maltese: "mlt"
    Marathi: "mar"
    Nepali: "nep"
    Norwegian: "nor"
    Persian: "fas"
    Polish: "pol"
    Portuguese: "por"
    Romanian: "ron"
    Russian: "rus"
    Samoan: "smo"
    Serbian: "srp"
    Slavonic: "chu"
    Slovak: "slk"
    Slovenian: "slv"
    Spanish: "spa"
    Swahili: "swh"
    Swedish: "swe"
    Tamil: "tam"
    Telugu: "tel"
    Thai: "tha"
    Turkish: "tur"
    Ukrainian: "ukr"
    Urdu: "urd"
    Vietnamese: "vie"
    Welsh: "cym"
    \ No newline at end of file +

    Enumeration Members

    Afrikanns: "afr"
    Amharic: "amh"
    Arabic: "ara"
    Armenian: "hye"
    Azerbaijan: "aze"
    Basque: "eus"
    Belarusian: "bel"
    Bengali: "ben"
    Bosnian: "bos"
    Catalan: "cat"
    Chechen: "che"
    Cherokee: "chr"
    Chinese: "zho"
    Croatian: "hrv"
    Czech: "ces"
    Danish: "dan"
    Dutch: "nld"
    English: "eng"
    Estonian: "est"
    Fijian: "fij"
    Filipino: "fil"
    Finnish: "fin"
    French: "fra"
    Galician: "glg"
    Georgian: "kat"
    German: "deu"
    Greek: "ell"
    Gujarati: "guj"
    Haitian: "hat"
    Hebrew: "heb"
    Hindi: "hin"
    Hungarian: "hun"
    Icelandic: "isl"
    Indonesian: "ind"
    Irish: "gle"
    Italian: "ita"
    Japanese: "jpn"
    Kannada: "kan"
    Kazakh: "kaz"
    Korean: "kor"
    Latvian: "lav"
    Lithuanian: "lit"
    Macedonian: "mkd"
    Malay1: "msa"
    Malay2: "zlm"
    Malayalam: "mal"
    Maltese: "mlt"
    Marathi: "mar"
    Nepali: "nep"
    Norwegian: "nor"
    Persian: "fas"
    Polish: "pol"
    Portuguese: "por"
    Romanian: "ron"
    Russian: "rus"
    Samoan: "smo"
    Serbian: "srp"
    Slavonic: "chu"
    Slovak: "slk"
    Slovenian: "slv"
    Spanish: "spa"
    Swahili: "swh"
    Swedish: "swe"
    Tamil: "tam"
    Telugu: "tel"
    Thai: "tha"
    Turkish: "tur"
    Ukrainian: "ukr"
    Urdu: "urd"
    Vietnamese: "vie"
    Welsh: "cym"
    \ No newline at end of file diff --git a/docs/enums/Models.html b/docs/enums/Models.html index 1f5d7c5..9fee716 100644 --- a/docs/enums/Models.html +++ b/docs/enums/Models.html @@ -1,9 +1,10 @@ Models | predictionguard

    Enumeration Models

    Models represents the set of models that can be used.

    -

    Enumeration Members

    Enumeration Members

    DeepseekCoder67BInstruct: "deepseek-coder-6.7b-instruct"
    Hermes2ProLlama38B: "Hermes-2-Pro-Llama-3-8B"
    Hermes2ProMistral7B: "Hermes-2-Pro-Mistral-7B"
    Llava157BHF: "llava-1.5-7b-hf"
    NeuralChat7B: "Neural-Chat-7B"
    NousHermesLlama213B: "Nous-Hermes-Llama-213B"
    Yi34BChat: "Yi-34B-Chat"
    \ No newline at end of file +

    Enumeration Members

    BridgetowerLargeItmMlmItc: "bridgetower-large-itm-mlm-itc"
    DeepseekCoder67BInstruct: "deepseek-coder-6.7b-instruct"
    Hermes2ProLlama38B: "Hermes-2-Pro-Llama-3-8B"
    Hermes2ProMistral7B: "Hermes-2-Pro-Mistral-7B"
    Llava157BHF: "llava-1.5-7b-hf"
    NeuralChat7B: "Neural-Chat-7B"
    NousHermesLlama213B: "Nous-Hermes-Llama-213B"
    Yi34BChat: "Yi-34B-Chat"
    \ No newline at end of file diff --git a/docs/enums/ReplaceMethods.html b/docs/enums/ReplaceMethods.html index ea3f882..6d35da0 100644 --- a/docs/enums/ReplaceMethods.html +++ b/docs/enums/ReplaceMethods.html @@ -1,6 +1,6 @@ ReplaceMethods | predictionguard

    Enumeration ReplaceMethods

    ReplaceMethods represents the set of replace methods that can be used.

    -

    Enumeration Members

    Enumeration Members

    Enumeration Members

    Category: "category"
    Fake: "fake"
    Mask: "mask"
    Random: "random"
    \ No newline at end of file +

    Enumeration Members

    Category: "category"
    Fake: "fake"
    Mask: "mask"
    Random: "random"
    \ No newline at end of file diff --git a/docs/enums/Roles.html b/docs/enums/Roles.html index 3b3fcea..5cc393a 100644 --- a/docs/enums/Roles.html +++ b/docs/enums/Roles.html @@ -1,6 +1,6 @@ Roles | predictionguard

    Enumeration Roles

    Roles represents the set of roles that a sender can represent themselves as.

    -

    Enumeration Members

    Enumeration Members

    Enumeration Members

    Assistant: "assistant"
    System: "system"
    User: "user"
    \ No newline at end of file +

    Enumeration Members

    Assistant: "assistant"
    System: "system"
    User: "user"
    \ No newline at end of file diff --git a/docs/interfaces/Base64Encoder.html b/docs/interfaces/Base64Encoder.html index 4fc2294..4ac5114 100644 --- a/docs/interfaces/Base64Encoder.html +++ b/docs/interfaces/Base64Encoder.html @@ -1,4 +1,4 @@ Base64Encoder | predictionguard

    Interface Base64Encoder

    Base64Encoder defines a method that can read a data source and returns a base64 encoded string.

    -
    interface Base64Encoder {
        EncodeBase64(): Promise<[string, null | Error]>;
    }

    Methods

    Methods

    \ No newline at end of file +
    interface Base64Encoder {
        EncodeBase64(): Promise<[string, null | Error]>;
    }

    Methods

    Methods

    \ No newline at end of file diff --git a/docs/interfaces/Chat.html b/docs/interfaces/Chat.html index 3de0eba..5236ce7 100644 --- a/docs/interfaces/Chat.html +++ b/docs/interfaces/Chat.html @@ -1,15 +1,15 @@ Chat | predictionguard

    Interface Chat

    Chat represents an object that contains the result for the chat call.

    -
    interface Chat {
        choices: ChatChoice[];
        created: number;
        id: string;
        model: Models;
        object: string;
        createdDate(): Date;
    }

    Properties

    interface Chat {
        choices: ChatChoice[];
        created: number;
        id: string;
        model: Models;
        object: string;
        createdDate(): Date;
    }

    Properties

    choices: ChatChoice[]

    choices represents the collection of choices to choose from.

    -
    created: number

    created represents the unix timestamp for when the request was +

    created: number

    created represents the unix timestamp for when the request was received.

    -
    id: string

    id represents a unique identifier for the result.

    -
    model: Models

    model represents the model used for generating the result.

    -
    object: string

    object represent the type of the result document.

    -

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      -

      Returns Date

    \ No newline at end of file +
    id: string

    id represents a unique identifier for the result.

    +
    model: Models

    model represents the model used for generating the result.

    +
    object: string

    object represent the type of the result document.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/ChatChoice.html b/docs/interfaces/ChatChoice.html index 804ee2d..fda66a9 100644 --- a/docs/interfaces/ChatChoice.html +++ b/docs/interfaces/ChatChoice.html @@ -1,10 +1,10 @@ ChatChoice | predictionguard

    Interface ChatChoice

    ChatChoice represents an object that contains a result choice.

    -
    interface ChatChoice {
        index: number;
        message: ChatMessage;
        status: string;
    }

    Properties

    interface ChatChoice {
        index: number;
        message: ChatMessage;
        status: string;
    }

    Properties

    Properties

    index: number

    index represents the index position in the collection for this choice.

    -
    message: ChatMessage

    message represents the message response for this choice.

    -
    status: string

    status represents if the response for this choice was successful +

    message: ChatMessage

    message represents the message response for this choice.

    +
    status: string

    status represents if the response for this choice was successful or not.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/ChatInput.html b/docs/interfaces/ChatInput.html index 74be272..92278df 100644 --- a/docs/interfaces/ChatInput.html +++ b/docs/interfaces/ChatInput.html @@ -1,4 +1,4 @@ ChatInput | predictionguard

    Interface ChatInput

    ChatInput represents a role and content related to a chat.

    -
    interface ChatInput {
        content: string;
        role: Roles;
    }

    Properties

    interface ChatInput {
        content: string;
        role: Roles;
    }

    Properties

    Properties

    content: string
    role: Roles
    \ No newline at end of file +

    Properties

    content: string
    role: Roles
    \ No newline at end of file diff --git a/docs/interfaces/ChatMessage.html b/docs/interfaces/ChatMessage.html index 79021d4..5b02a7f 100644 --- a/docs/interfaces/ChatMessage.html +++ b/docs/interfaces/ChatMessage.html @@ -1,9 +1,9 @@ ChatMessage | predictionguard

    Interface ChatMessage

    ChatMessage represents an object that contains the content and a role. It can be used for input and returned as part of the response.

    -
    interface ChatMessage {
        content: string;
        output: string;
        role: Roles;
    }

    Properties

    interface ChatMessage {
        content: string;
        output: string;
        role: Roles;
    }

    Properties

    Properties

    content: string

    content represents the content of the message.

    -
    output: string

    output represents the output for this message.

    -
    role: Roles

    role represents the role of the sender (user or assistant).

    -
    \ No newline at end of file +
    output: string

    output represents the output for this message.

    +
    role: Roles

    role represents the role of the sender (user or assistant).

    +
    \ No newline at end of file diff --git a/docs/interfaces/ChatSSE.html b/docs/interfaces/ChatSSE.html index 25ba6fe..a348187 100644 --- a/docs/interfaces/ChatSSE.html +++ b/docs/interfaces/ChatSSE.html @@ -1,16 +1,16 @@ ChatSSE | predictionguard

    Interface ChatSSE

    ChatSSE represents an object that contains the result for the chatSSE call.

    -
    interface ChatSSE {
        choices: ChatSSEChoice[];
        created: number;
        id: string;
        model: Models;
        object: string;
        createdDate(): Date;
    }

    Properties

    interface ChatSSE {
        choices: ChatSSEChoice[];
        created: number;
        id: string;
        model: Models;
        object: string;
        createdDate(): Date;
    }

    Properties

    choices: ChatSSEChoice[]

    choices represents the collection of choices to choose from.

    -
    created: number

    created represents the unix timestamp for when the request was +

    created: number

    created represents the unix timestamp for when the request was received.

    -
    id: string

    id represents a unique identifier for the result.

    -
    model: Models

    model represents the model used for generating the result.

    -
    object: string

    object represent the type of the result document.

    -

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      -

      Returns Date

    \ No newline at end of file +
    id: string

    id represents a unique identifier for the result.

    +
    model: Models

    model represents the model used for generating the result.

    +
    object: string

    object represent the type of the result document.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/ChatSSEChoice.html b/docs/interfaces/ChatSSEChoice.html index 8508a9b..dd9e46b 100644 --- a/docs/interfaces/ChatSSEChoice.html +++ b/docs/interfaces/ChatSSEChoice.html @@ -1,15 +1,15 @@ ChatSSEChoice | predictionguard

    Interface ChatSSEChoice

    ChatSSEChoice represents an object that contains a result choice.

    -
    interface ChatSSEChoice {
        delta: ChatSSEDelta;
        finish_reason: string;
        generated_text: string;
        index: number;
        logprobs: number;
    }

    Properties

    interface ChatSSEChoice {
        delta: ChatSSEDelta;
        finish_reason: string;
        generated_text: string;
        index: number;
        logprobs: number;
    }

    Properties

    delta represents the partial content for this choice.

    -
    finish_reason: string

    finish_reason represents the reason the response has finished +

    finish_reason: string

    finish_reason represents the reason the response has finished which is provided when this is the last choice.

    -
    generated_text: string

    generated_text represents the final completed chat response which +

    generated_text: string

    generated_text represents the final completed chat response which is provided when this is the last choice.

    -
    index: number

    index represents the index position in the collection for +

    index: number

    index represents the index position in the collection for this choice.

    -
    logprobs: number

    logprobs represents the log probabilty of accuracy for this choice.

    -
    \ No newline at end of file +
    logprobs: number

    logprobs represents the log probabilty of accuracy for this choice.

    +
    \ No newline at end of file diff --git a/docs/interfaces/ChatSSEDelta.html b/docs/interfaces/ChatSSEDelta.html index b39b5de..9331749 100644 --- a/docs/interfaces/ChatSSEDelta.html +++ b/docs/interfaces/ChatSSEDelta.html @@ -1,4 +1,4 @@ ChatSSEDelta | predictionguard

    Interface ChatSSEDelta

    ChatSSEDelta represents an object that contains the content.

    -
    interface ChatSSEDelta {
        content: string;
    }

    Properties

    interface ChatSSEDelta {
        content: string;
    }

    Properties

    Properties

    content: string

    content represents the partial content response for a choice.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/ChatVision.html b/docs/interfaces/ChatVision.html index c31b3c9..5bb9c9f 100644 --- a/docs/interfaces/ChatVision.html +++ b/docs/interfaces/ChatVision.html @@ -1,15 +1,15 @@ ChatVision | predictionguard

    Interface ChatVision

    ChatVision represents the result for the vision call.

    -
    interface ChatVision {
        choices: ChatVisionChoice[];
        created: number;
        id: string;
        model: Models;
        object: string;
        createdDate(): Date;
    }

    Properties

    interface ChatVision {
        choices: ChatVisionChoice[];
        created: number;
        id: string;
        model: Models;
        object: string;
        createdDate(): Date;
    }

    Properties

    choices: ChatVisionChoice[]

    choices represents the collection of choices to choose from.

    -
    created: number

    created represents the unix timestamp for when the request was +

    created: number

    created represents the unix timestamp for when the request was received.

    -
    id: string

    id represents a unique identifier for the result.

    -
    model: Models

    model represents the model used for generating the result.

    -
    object: string

    object represent the type of the result document.

    -

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      -

      Returns Date

    \ No newline at end of file +
    id: string

    id represents a unique identifier for the result.

    +
    model: Models

    model represents the model used for generating the result.

    +
    object: string

    object represent the type of the result document.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/ChatVisionChoice.html b/docs/interfaces/ChatVisionChoice.html index a075009..2d9954c 100644 --- a/docs/interfaces/ChatVisionChoice.html +++ b/docs/interfaces/ChatVisionChoice.html @@ -1,10 +1,10 @@ ChatVisionChoice | predictionguard

    Interface ChatVisionChoice

    ChatVisionChoice represents a choice for the vision call.

    -
    interface ChatVisionChoice {
        index: number;
        message: ChatVisionMessage;
        status: string;
    }

    Properties

    interface ChatVisionChoice {
        index: number;
        message: ChatVisionMessage;
        status: string;
    }

    Properties

    Properties

    index: number

    index represents the index position in the collection for this choice.

    -

    message represents a response for this choice.

    -
    status: string

    status represents if the response for this choice was successful +

    message represents a response for this choice.

    +
    status: string

    status represents if the response for this choice was successful or not.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/ChatVisionMessage.html b/docs/interfaces/ChatVisionMessage.html index a9b1b18..4f94508 100644 --- a/docs/interfaces/ChatVisionMessage.html +++ b/docs/interfaces/ChatVisionMessage.html @@ -1,8 +1,8 @@ ChatVisionMessage | predictionguard

    Interface ChatVisionMessage

    ChatVisionMessage represents content for the vision call.

    -
    interface ChatVisionMessage {
        content: string;
        output: string;
        role: Roles;
    }

    Properties

    interface ChatVisionMessage {
        content: string;
        output: string;
        role: Roles;
    }

    Properties

    Properties

    content: string

    content represents the response for this message.

    -
    output: string

    output represents the output for this message.

    -
    role: Roles

    role represents the role of the sender (user or assistant).

    -
    \ No newline at end of file +
    output: string

    output represents the output for this message.

    +
    role: Roles

    role represents the role of the sender (user or assistant).

    +
    \ No newline at end of file diff --git a/docs/interfaces/Completion.html b/docs/interfaces/Completion.html index 9e88d8a..a00fd81 100644 --- a/docs/interfaces/Completion.html +++ b/docs/interfaces/Completion.html @@ -1,14 +1,14 @@ Completion | predictionguard

    Interface Completion

    Completion represents an object that contains the result for the completion call.

    -
    interface Completion {
        choices: CompletionChoice[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    interface Completion {
        choices: CompletionChoice[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    Methods

    Properties

    choices: CompletionChoice[]

    choices represents the collection of choices to choose from.

    -
    created: number

    created represents the unix timestamp for when the request was +

    created: number

    created represents the unix timestamp for when the request was received.

    -
    id: string

    id represents a unique identifier for the result.

    -
    object: string

    object represent the type of the result document.

    -

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      -

      Returns Date

    \ No newline at end of file +
    id: string

    id represents a unique identifier for the result.

    +
    object: string

    object represent the type of the result document.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/CompletionChoice.html b/docs/interfaces/CompletionChoice.html index 8239faf..2515e7b 100644 --- a/docs/interfaces/CompletionChoice.html +++ b/docs/interfaces/CompletionChoice.html @@ -1,13 +1,13 @@ CompletionChoice | predictionguard

    Interface CompletionChoice

    Choice represents an object that contains a result choice.

    -
    interface CompletionChoice {
        index: number;
        model: Models;
        status: string;
        text: string;
    }

    Properties

    interface CompletionChoice {
        index: number;
        model: Models;
        status: string;
        text: string;
    }

    Properties

    Properties

    index: number

    index represents the index position in the collection for this choice.

    -
    model: Models

    model represents the model used for generating the result for +

    model: Models

    model represents the model used for generating the result for this choice.

    -
    status: string

    status represents if the response for this choice was successful +

    status: string

    status represents if the response for this choice was successful or not.

    -
    text: string

    text represents the generated text for this choice.

    -
    \ No newline at end of file +
    text: string

    text represents the generated text for this choice.

    +
    \ No newline at end of file diff --git a/docs/interfaces/Embedding.html b/docs/interfaces/Embedding.html new file mode 100644 index 0000000..171be34 --- /dev/null +++ b/docs/interfaces/Embedding.html @@ -0,0 +1,15 @@ +Embedding | predictionguard

    Interface Embedding

    Embedding represents the result for the embedding call.

    +
    interface Embedding {
        created: number;
        data: EmbeddingData[];
        id: string;
        model: Models;
        object: string;
        createdDate(): Date;
    }

    Properties

    Methods

    Properties

    created: number

    created represents the unix timestamp for when the request was +received.

    +

    EmbeddingData represents the collection of vector points.

    +
    id: string

    id represents a unique identifier for the result.

    +
    model: Models

    model represents the model used for generating the result.

    +
    object: string

    object represent the type of the result document.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/EmbeddingData.html b/docs/interfaces/EmbeddingData.html new file mode 100644 index 0000000..f9ecf90 --- /dev/null +++ b/docs/interfaces/EmbeddingData.html @@ -0,0 +1,12 @@ +EmbeddingData | predictionguard

    Interface EmbeddingData

    EmbeddingData represents the vector data points.

    +
    interface EmbeddingData {
        embedding: number[];
        index: number;
        model: Models;
        status: string;
    }

    Properties

    Properties

    embedding: number[]
    index: number

    index represents the index position in the collection for +this choice.

    +
    model: Models

    model represents the model used for generating the result for +this choice.

    +
    status: string

    status represents if the response for this choice was successful +or not.

    +
    \ No newline at end of file diff --git a/docs/interfaces/EmbeddingInput.html b/docs/interfaces/EmbeddingInput.html new file mode 100644 index 0000000..c6c49de --- /dev/null +++ b/docs/interfaces/EmbeddingInput.html @@ -0,0 +1,6 @@ +EmbeddingInput | predictionguard

    Interface EmbeddingInput

    EmbeddingInput represents the input to generate embeddings.

    +
    interface EmbeddingInput {
        image: Base64Encoder;
        text: string;
    }

    Properties

    Properties

    image represents an image to vectorize.

    +
    text: string

    text represents text to vectorize.

    +
    \ No newline at end of file diff --git a/docs/interfaces/Factuality.html b/docs/interfaces/Factuality.html index 9266f26..433ee68 100644 --- a/docs/interfaces/Factuality.html +++ b/docs/interfaces/Factuality.html @@ -1,14 +1,14 @@ Factuality | predictionguard

    Interface Factuality

    Factuality represents an object that contains the result for the factuality call.

    -
    interface Factuality {
        checks: FactualityCheck[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    interface Factuality {
        checks: FactualityCheck[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    Methods

    Properties

    checks: FactualityCheck[]

    checks represents the collection of checks to choose from.

    -
    created: number

    created represents the unix timestamp for when the request was +

    created: number

    created represents the unix timestamp for when the request was received.

    -
    id: string

    id represents a unique identifier for the result.

    -
    object: string

    object represent the type of the result document.

    -

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      -

      Returns Date

    \ No newline at end of file +
    id: string

    id represents a unique identifier for the result.

    +
    object: string

    object represent the type of the result document.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/FactualityCheck.html b/docs/interfaces/FactualityCheck.html index 0e02c0c..97d80fa 100644 --- a/docs/interfaces/FactualityCheck.html +++ b/docs/interfaces/FactualityCheck.html @@ -1,9 +1,9 @@ FactualityCheck | predictionguard

    Interface FactualityCheck

    FactualityCheck represents an object that contains a check choice.

    -
    interface FactualityCheck {
        index: number;
        score: number;
        status: string;
    }

    Properties

    interface FactualityCheck {
        index: number;
        score: number;
        status: string;
    }

    Properties

    Properties

    index: number

    index represents the index position in the collection for this checks.

    -
    score: number

    score represents the score for this check.

    -
    status: string

    status represents the status for this check.

    -
    \ No newline at end of file +
    score: number

    score represents the score for this check.

    +
    status: string

    status represents the status for this check.

    +
    \ No newline at end of file diff --git a/docs/interfaces/Injection.html b/docs/interfaces/Injection.html index a2d7a38..4c4c6ee 100644 --- a/docs/interfaces/Injection.html +++ b/docs/interfaces/Injection.html @@ -1,14 +1,14 @@ Injection | predictionguard

    Interface Injection

    Injection represents an object that contains the result for the injection call.

    -
    interface Injection {
        checks: InjectionCheck[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    interface Injection {
        checks: InjectionCheck[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    Methods

    Properties

    checks: InjectionCheck[]

    checks represents the collection of checks to choose from.

    -
    created: number

    created represents the unix timestamp for when the result was +

    created: number

    created represents the unix timestamp for when the result was received.

    -
    id: string

    id represents a unique identifier for the result.

    -
    object: string

    object represent the type of the result document.

    -

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      -

      Returns Date

    \ No newline at end of file +
    id: string

    id represents a unique identifier for the result.

    +
    object: string

    object represent the type of the result document.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/InjectionCheck.html b/docs/interfaces/InjectionCheck.html index 60e73cd..87d4b8a 100644 --- a/docs/interfaces/InjectionCheck.html +++ b/docs/interfaces/InjectionCheck.html @@ -1,10 +1,10 @@ InjectionCheck | predictionguard

    Interface InjectionCheck

    InjectionCheck represents an object that contains a check choice.

    -
    interface InjectionCheck {
        index: number;
        probability: number;
        status: string;
    }

    Properties

    interface InjectionCheck {
        index: number;
        probability: number;
        status: string;
    }

    Properties

    index: number

    index represents the index position in the collection for this checks.

    -
    probability: number

    probability represents the probability of a potential injection +

    probability: number

    probability represents the probability of a potential injection attack.

    -
    status: string

    status represents the status for this check.

    -
    \ No newline at end of file +
    status: string

    status represents the status for this check.

    +
    \ No newline at end of file diff --git a/docs/interfaces/ReplacePI.html b/docs/interfaces/ReplacePI.html index 95d2cb5..7d7fe25 100644 --- a/docs/interfaces/ReplacePI.html +++ b/docs/interfaces/ReplacePI.html @@ -1,14 +1,14 @@ ReplacePI | predictionguard

    Interface ReplacePI

    ReplacePI represents an object that contains the result for the replacepi call.

    -
    interface ReplacePI {
        checks: ReplacePICheck[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    interface ReplacePI {
        checks: ReplacePICheck[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    Methods

    Properties

    checks: ReplacePICheck[]

    checks represents the collection of checks to choose from.

    -
    created: number

    created represents the unix timestamp for when the request was +

    created: number

    created represents the unix timestamp for when the request was received.

    -
    id: string

    id represents a unique identifier for the result.

    -
    object: string

    object represent the type of the result document.

    -

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      -

      Returns Date

    \ No newline at end of file +
    id: string

    id represents a unique identifier for the result.

    +
    object: string

    object represent the type of the result document.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/ReplacePICheck.html b/docs/interfaces/ReplacePICheck.html index 4994836..ecbb037 100644 --- a/docs/interfaces/ReplacePICheck.html +++ b/docs/interfaces/ReplacePICheck.html @@ -1,9 +1,9 @@ ReplacePICheck | predictionguard

    Interface ReplacePICheck

    ReplacePICheck represents an object that contains a check choice.

    -
    interface ReplacePICheck {
        index: number;
        new_prompt: string;
        status: string;
    }

    Properties

    interface ReplacePICheck {
        index: number;
        new_prompt: string;
        status: string;
    }

    Properties

    index: number

    index represents the index position in the collection for this checks.

    -
    new_prompt: string

    new_prompt represents the text with replaced personal information.

    -
    status: string

    status represents the status for this check.

    -
    \ No newline at end of file +
    new_prompt: string

    new_prompt represents the text with replaced personal information.

    +
    status: string

    status represents the status for this check.

    +
    \ No newline at end of file diff --git a/docs/interfaces/Toxicity.html b/docs/interfaces/Toxicity.html index af3f662..10eb549 100644 --- a/docs/interfaces/Toxicity.html +++ b/docs/interfaces/Toxicity.html @@ -1,14 +1,14 @@ Toxicity | predictionguard

    Interface Toxicity

    Toxicity represents an object that contains the result for the toxicity call.

    -
    interface Toxicity {
        checks: ToxicityCheck[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    interface Toxicity {
        checks: ToxicityCheck[];
        created: number;
        id: string;
        object: string;
        createdDate(): Date;
    }

    Properties

    Methods

    Properties

    checks: ToxicityCheck[]

    checks represents the collection of checks to choose from.

    -
    created: number

    created represents the unix timestamp for when the request was +

    created: number

    created represents the unix timestamp for when the request was received.

    -
    id: string

    id represents a unique identifier for the result.

    -
    object: string

    object represent the type of the result document.

    -

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      -

      Returns Date

    \ No newline at end of file +
    id: string

    id represents a unique identifier for the result.

    +
    object: string

    object represent the type of the result document.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/ToxicityCheck.html b/docs/interfaces/ToxicityCheck.html index 4858145..0c1d838 100644 --- a/docs/interfaces/ToxicityCheck.html +++ b/docs/interfaces/ToxicityCheck.html @@ -1,9 +1,9 @@ ToxicityCheck | predictionguard

    Interface ToxicityCheck

    ToxicityCheck represents an object that contains a check choice.

    -
    interface ToxicityCheck {
        index: number;
        score: number;
        status: string;
    }

    Properties

    interface ToxicityCheck {
        index: number;
        score: number;
        status: string;
    }

    Properties

    Properties

    index: number

    index represents the index position in the collection for this checks.

    -
    score: number

    score represents the score for the provided text.

    -
    status: string

    status represents the status for this check.

    -
    \ No newline at end of file +
    score: number

    score represents the score for the provided text.

    +
    status: string

    status represents the status for this check.

    +
    \ No newline at end of file diff --git a/docs/interfaces/Translate.html b/docs/interfaces/Translate.html index d7eca63..72a7cbd 100644 --- a/docs/interfaces/Translate.html +++ b/docs/interfaces/Translate.html @@ -1,6 +1,6 @@ Translate | predictionguard

    Interface Translate

    Translate represents an object that contains the result for the translate call.

    -
    interface Translate {
        best_score: number;
        best_translation: string;
        best_translation_model: string;
        created: number;
        id: string;
        object: string;
        translations: Translation[];
        createdDate(): Date;
    }

    Properties

    interface Translate {
        best_score: number;
        best_translation: string;
        best_translation_model: string;
        created: number;
        id: string;
        object: string;
        translations: Translation[];
        createdDate(): Date;
    }

    Properties

    best_score: number

    best_score represents the best score for the best translation.

    -
    best_translation: string

    best_translation represents the best translation of the input text.

    -
    best_translation_model: string

    best_translation_model represents the model used for the best +

    best_translation: string

    best_translation represents the best translation of the input text.

    +
    best_translation_model: string

    best_translation_model represents the model used for the best translation.

    -
    created: number

    created represents the unix timestamp for when the request was +

    created: number

    created represents the unix timestamp for when the request was received.

    -
    id: string

    id represents a unique identifier for the result.

    -
    object: string

    object represent the type of the result document.

    -
    translations: Translation[]

    translations represents the collection of translations to choose from.

    -

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      -

      Returns Date

    \ No newline at end of file +
    id: string

    id represents a unique identifier for the result.

    +
    object: string

    object represent the type of the result document.

    +
    translations: Translation[]

    translations represents the collection of translations to choose from.

    +

    Methods

    • createdDate converts the created unix timestamp into a JS Date.

      +

      Returns Date

    \ No newline at end of file diff --git a/docs/interfaces/Translation.html b/docs/interfaces/Translation.html index 2d8a6f0..571135f 100644 --- a/docs/interfaces/Translation.html +++ b/docs/interfaces/Translation.html @@ -1,10 +1,10 @@ Translation | predictionguard

    Interface Translation

    Translation represents an object that contains a translation choice.

    -
    interface Translation {
        model: string;
        score: number;
        status: string;
        translation: string;
    }

    Properties

    interface Translation {
        model: string;
        score: number;
        status: string;
        translation: string;
    }

    Properties

    model: string

    model represents the model that was used for this translation.

    -
    score: number

    score represents the quality score for this translation.

    -
    status: string

    status represents the status of using the model for this translation.

    -
    translation: string

    translation represents the translation.

    -
    \ No newline at end of file +
    score: number

    score represents the quality score for this translation.

    +
    status: string

    status represents the status of using the model for this translation.

    +
    translation: string

    translation represents the translation.

    +
    \ No newline at end of file diff --git a/docs/modules.html b/docs/modules.html index 39453c7..f28e84a 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -18,6 +18,9 @@ ChatVisionMessage Completion CompletionChoice +Embedding +EmbeddingData +EmbeddingInput Error Factuality FactualityCheck