Ask PRISM
Chat setup
Connect the chat to the AI provider you have access to, in the page and without a restart, and know what to do when the connection test fails.
The chat needs an AI provider. You set it up once, in the page, with your own access token; PRISM does not need a restart for it. Until then the chat says The chat is not set up yet. and its input stays off; the diagrams and the Edit mode work without it.
What you need
- An account at one of the providers the dialog lists, and an access token or API key created in that account. Each row of the list says what counts for it: a seat in a company plan, or a key from the provider’s developer console. A subscription to the provider’s own chat product is not an API key.
- Your own token. A token is tied to your account; every person sets up the chat with their own.
- In a company network: the provider is reachable through the proxy of your company, or your company offers its own AI gateway (see below). PRISM follows the proxy and the certificates your IT has set in the operating system; the dialog lists the addresses IT has to allow (see In a company network). If you are not sure, ask your IT before you start.
Set up the chat
- Click Set up chat in the chat. Later the same dialog is under ⚙ > Chat setup… in the chat header.
- Choose the provider you have access to in the list at the top.
- Follow the steps in the dialog to create a token. The button below the steps opens the provider’s page; copy the token there, because it is shown only once.
- Paste the token into the field and click Connect.
If your company reaches the provider through its own AI gateway, choose the AI gateway of my company at API key from:. The dialog then asks for the API address and the key; you get both from your IT, and Connect stays off until both are entered. To change the address later, remove the key and set it up again.
PRISM tests the token before it keeps it. When the test passes, the dialog says Connected to … with the model, and the chat works at once. A token that fails the test is not stored.
The token is stored on your computer, for your user only. It is not shown again and never goes into the project. To change or delete it, open the dialog again and click Replace token or Remove token (Replace API key or Remove API key for an API key). A chat that began before you replaced or removed the token asks you to start a new chat.
Model for new chats in the same dialog sets the model a new chat starts with, from the models your provider offers. A chat can still choose another one at its top. If a model is not available for your key, PRISM says so; choose a different one.
Test connection, next to Replace token, checks the stored token through the network at any time, without entering the token again, and says Connected to … or names the cause of the failure.
Get the runtime for GitHub Copilot
GitHub Copilot needs its runtime on your computer before the token, a download of about 50 MB. PRISM does not bring it along and fetches it only when you ask. When you choose GitHub Copilot and the runtime is missing, the dialog shows this step in the place of the token:
- Click Download. A bar shows how much has arrived; Cancel download stops it.
- When the download is done, the dialog says GitHub Copilot runtime … is installed. Next: the token. and shows the steps for the token. Continue with Set up the chat.
If the download fails, the dialog names the cause and shows the Address, File name and Checksum of the runtime, ready to copy. Your IT can allow the address; then click Try again. Or get the file outside PRISM, in a browser, from a mirror of your company or from your IT, and click Choose runtime file…. PRISM checks the file against its checksum and installs only the original; any other file is refused, and the dialog names the file PRISM needs. PRISM keeps its own copy of the runtime, so you can delete the file afterwards. Once GitHub Copilot is connected, the dialog shows the version of its runtime in the row Runtime.
After an update of PRISM the dialog says PRISM was updated and asks for the new runtime in the same way. The AI gateway of your company needs no runtime.
In a company network
PRISM connects the way the other programs of your computer do: with the proxy your IT has set in the operating system and with the certificates of its certificate store. There is nothing to install in PRISM for it. The row Network at the bottom of the dialog applies to every provider. It shows the proxy in use and where it comes from (the settings of the operating system, the environment of this computer, or an address entered here), or none.
The addresses your IT has to allow: for Claude the provider’s address (api.anthropic.com) or the AI gateway of your company; for GitHub Copilot api.github.com and *.githubcopilot.com, and once registry.npmjs.org for the download of its runtime. The i next to Network opens a short list of cases, each with what to do: your computer connects directly or through the proxy of the operating system (nothing to do); the operating system names no proxy but your network needs one (enter the address); the connection test says a host cannot be reached (the addresses your IT has to allow, ready to copy); it says a certificate is not trusted (your IT installs the company certificate in the certificate store of the operating system); the proxy asks for a user name and password or a Windows sign-in (not supported: your IT allows the addresses without a sign-in, or you use the AI gateway of your company, which needs no other address).
When the operating system names no proxy PRISM can use, enter the address your IT gives you in the Network field and click Use this proxy. It applies at once, without a restart, and is kept for you on this computer; an address entered here is used before the settings of the operating system. PRISM then tests the connection through it and shows the result. To go back to the settings of the operating system, click Remove this proxy.
The dialog says in a note under the field when it cannot use the setting of the operating system: on a locked-down computer the setting cannot be read, on macOS an automatic proxy configuration (a PAC file) is not evaluated, or the operating system sends another address through a second proxy. Enter the address your IT names, or ask your IT which one applies.
If the connection test fails
The dialog stays open and names the cause. What to do depends on it:
- The token was rejected or has expired. Create a new one on the provider’s page with the steps in the dialog, and check that it has exactly the permission the steps name and no other.
- Your plan offers no chat models, or your organisation switched them off. The administrator of the account at the provider has to allow the assistant outside the code editor and at least one chat model. On a personal plan that is you: turn both on in the settings of your account there. In a company, send the message from the dialog to your administrator.
- A model is not available for your key. Choose another one under Model for new chats.
- PRISM cannot reach the provider. A proxy or a firewall of the company network blocks it. The message names the address; ask your IT to allow it, check the Network row in the dialog, or use the AI gateway of your company.
- The runtime of GitHub Copilot cannot be downloaded. The dialog names the cause and the file; see Get the runtime for GitHub Copilot.
- The proxy asks for a sign-in. PRISM cannot sign in at a proxy. Ask your IT to allow the listed hosts through the proxy without a sign-in, or to name a proxy that needs none.
- The connection is opened by a certificate this computer does not trust. The company network inspects the connection; ask your IT to install the company certificate in the certificate store of this computer. PRISM uses it from there.
- The provider did not answer in time. Try again; if it stays, ask your IT whether the provider is reachable from this computer and whether the proxy passes streamed answers on.
A token that expires or is revoked later, a proxy or a certificate that stops working, shows the same cause in the chat when you send the next question, with the button Open chat setup next to it. Replace the token there, or check the network, and start a new chat.