Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There are rare cases where you want to talk directly to the Large Language Models that are attached to your Unique FinanceGPT AI instance. The following page describes how to do so and which terms & conditions apply.

...

This page describes how to use an internal API of Unique, which comes with certain implications:

Insert excerpt
PUB:APIs & IntegrationsPUB:
APIs & Integrations
nameinternal-api-warning
nopaneltrue

...

Authenticating towards the API


Insert excerpt
Multitenant Region URLs
Multitenant Region URLs
nopaneltrue

Prerequisites

Whether user or service user, the entity used must have the Unique Role (Roles and Permissions) chat.admin.all assigned.

...

Where <> is

Description

Example

<TENANT>

The tenants sub-domain.

oleole (part of gateway.oleole.unique.app)

<TIMEOUT>

Timeout in Milliseconds!

The default is 8 seconds, the maximum is 10 minutes.

Panel
panelIconId23f0
panelIcon:alarm_clock:
panelIconText
bgColor#FFFAE6

Note that depending on the model you chose, the answer can take time to generate!

15000

<MODEL>

One of the supported models (https://unique-ch.atlassian.net/wiki/spaces/PUB/pages/445775966/Assistant+module+settings#Available-GPT-models ) or actually your own (Connect custom LXM (LLM) with Unique Finance GPTAI).

AZURE_GPT_4o_2024_0513

<TOKEN>

The token you got in the Authenticating step.

eyJhb………KtOi0Vw

<PROMPT>

The prompt for the model!

What is the contrast color of red?

role: user

Learn from OpenAI what the roles mean…

Code Block
languageyaml
{
  ...
  "model": "gpt-4o-2024-05-13",
  "usage": {
    "promptTokens": 15,
    "completionTokens": 58,
    "totalTokens": 73
  },
  ...
  "choices": [
    {
      "index": 0,
      "finishReason": "stop",
      "message": {
        "role": "assistant",
        "content": "The contrast color of red, often referred to as its complementary color, is green. This is based on the color wheel, where complementary colors are positioned directly opposite each other. When placed next to each other, complementary colors create a strong visual contrast and can make each other appear more vibrant.",
        "toolCalls": []
      }
    }
  ]
}

...