This is in development. Details may change before it is available.
- A prompt belongs to your organization and has numbered versions: 1, 2, 3 and so on. A version never changes once saved. To change a prompt you save a new version, and the latest is the one used unless a request names another.
- A prompt is a list of messages, each a system, user or assistant line of text, up to 50 of them. A version can also set a temperature, a top-p value and a limit on the length of the answer. These are defaults: whatever the request sends wins.
- Any key in your organization can use any of its prompts. No other organization can, and another organization’s prompt reads exactly like one that does not exist.
Create and change a prompt
Owners and admins open AI Gateway, then Prompts, and choose Create prompt. Give it a name and its messages: each is from System, User or Assistant, and Add a message adds another. Under Defaults, a Temperature (0 to 2), a Top-p (0 to 1) and a Longest answer in tokens are optional. What changed is an optional note for the people who read the history. A prompt’s page shows its Prompt id, to copy into your requests, and every version, newest first, with the latest marked Latest. New version starts from the latest version’s messages and saves the change as the next number; requests that name no version use it straight away. Delete deletes the prompt and all its versions, and requests that name it are refused until they stop sending it. Everyone who can see the AI Gateway can read prompts.Use a prompt in a request
Name the prompt in a header of a chat completions or Responses request:
Altrum adds the prompt’s messages before the messages in your request. If your request has a system message of its own, both are sent, the prompt’s first.