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 | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Authenticating towards the API
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| The tenants sub-domain. |
| |||||||||||
| Timeout in Milliseconds! The default is 8 seconds, the maximum is 10 minutes.
|
| |||||||||||
| 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). |
| |||||||||||
| The token you got in the Authenticating step. |
| |||||||||||
| The prompt for the model! |
| |||||||||||
role: user |
Code Block | ||
---|---|---|
| ||
{ ... "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": [] } } ] } |
...
Author |
---|