# Welcome

Welcome to SUPgpt for Mac documentation.

If you are looking for the iPhone/iPad version click [here](https://mobiledocs.supgpt.app)


# License

Licensing is only available for the macOS version.

## How to Obtain a License

To purchase a license, visit [this link](https://supgpt.app/#open-checkout) and follow the provided instructions. Once your purchase is complete, you will receive an email containing your receipt and license key.

## Entering Your License for the First Time

Upon launching the app for the first time, you will see a popup panel. Here, enter your license key and click **Continue**. &#x20;

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F0H4sVO6l7TakCLkamLVA%2Flicense1.png?alt=media&amp;token=ae166e8b-7fd5-480f-83ab-6c9c3549e233" alt=""><figcaption></figcaption></figure>

## Changing Your License Key

IIf you need to update your license key, navigate to the Main Menu and select **SUPgpt -> License.**

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FRPG9Bf7YQOV3t0Glm3TV%2Flicense2.jpg?alt=media&amp;token=cf0c6a39-db6e-4459-8b7b-8209c0d09bb5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FFjMaxeEthEpwwqagXVk6%2FScreenshot%202024-09-09%20at%2017.14.22.png?alt=media&amp;token=8a8d646b-44bc-447f-bfa9-e8ccc76d8591" alt=""><figcaption></figcaption></figure>

Then click **Change.**

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FWBb4Dkz1iadUyJY791I8%2FScreenshot%202024-09-09%20at%2017.14.28.png?alt=media&amp;token=a0579992-03e4-4e95-ad03-c320cb263502" alt=""><figcaption></figcaption></figure>

After entering your new license key, click **Submit**.


# API Keys

The app requires at least one API key to function, and it **specifically requires an OpenAI API key for advanced tools** such as web content extraction and knowledge files.

## How to Obtain API Keys

To use the app's features, you must individually sign up for each API provider and create your API keys:

* OpenAI <https://platform.openai.com/>
* Anthropic <https://console.anthropic.com/login>
* Google <https://aistudio.google.com/app/apikey>
* Groq <https://console.groq.com/login>

## Adding API Keys to the App

#### Open Settings

Access the Settings by pressing **Cmd ⌘** + **,**  or by selecting **SUPgpt -> Settings** from the Main Menu.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FDr0UMCgINL9pWPG2qcvn%2FScreenshot%202024-09-09%20at%2023.46.37.jpg?alt=media&amp;token=58fe5b87-c590-4cff-8fff-c2315d4a5cdf" alt=""><figcaption></figcaption></figure>

#### Input Your API Keys

In the left panel, click on **API Keys** and paste your keys into their respective fields. The app automatically saves your entries, allowing you to close the window when you're finished.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FxuWUKhLBL9x7mIvn9itO%2FImage%20Layer.tiff?alt=media&amp;token=e1bd8613-1a5e-425d-ae9c-4813fa093b33" alt=""><figcaption></figcaption></figure>

## API Key Storage

Your API keys are encrypted and stored locally on your device.

## Syncing API Keys Across Devices

Please note that API keys are not synced between devices. If you use the app on multiple devices, you will need to enter your keys manually for each instance.


# Starting a New Chat

## When No Chat is Selected

When you launch the app for the first time, or if there is no chat selected, the **New Chat** button will be at the center of the window. Click it, and select the type of chat you want to start.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FnB439u53DZgGmA8lbisD%2FScreenshot%202024-09-09%20at%2022.41.57.jpg?alt=media&amp;token=f17199cb-7475-478d-ba3a-cd27e74357cf" alt=""><figcaption></figcaption></figure>

## When You Have Selected a Chat

When there is a selected chat, the **New Chat** button will be located at the top left corner of the chat panel. Click it, and select the type of chat you want to start.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FO6KyeiPsH4OWork7thBt%2FScreenshot%202024-09-09%20at%2022.47.36.jpg?alt=media&amp;token=aae54fb0-15bf-4f56-afb7-3ea8003bed3c" alt=""><figcaption></figcaption></figure>

## From the Main Menu

From the Main Menu select **File -> New Temp Chat** or **New Chat.**

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FJcS57JD38wEmyZMoSMUJ%2FScreenshot%202024-09-10%20at%2014.26.52.jpg?alt=media&amp;token=c09aa063-917b-47e8-a3e0-a7aafb3c695d" alt=""><figcaption></figcaption></figure>

Using Keyboard Shortcuts

* **Cmd ⌘ + N** To start new temporary chat
* **Shift ⇧ + Cmd ⌘ + N** To start new persistent chat.

{% hint style="info" %}
To learn the difference between temporary and persistent chats, follow [this link](/chat/chat/persistent-and-temporary-chat).
{% endhint %}


# Accessing App Settings

From the Main Menu select **SUPgpt -> Settings** or use the keyboard shortcut **Cmd ⌘ + ,**&#x20;

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FDr0UMCgINL9pWPG2qcvn%2FScreenshot%202024-09-09%20at%2023.46.37.jpg?alt=media&amp;token=58fe5b87-c590-4cff-8fff-c2315d4a5cdf" alt=""><figcaption></figcaption></figure>


# API Keys

Each API key must be entered into its respective field to activate the models and features associated with these services. Changes are automatically saved when the settings window is closed.&#x20;

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FPnv4pJvmIA5rOVBKN1Bl%2FScreenshot%202024-09-09%20at%2023.45.08.png?alt=media&amp;token=c236d7e8-0972-49b3-b315-666ca13b537a" alt=""><figcaption></figcaption></figure>


# General

The following settings are available in the General section:

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FlYUzAzDlQ0oacyWQvEO5%2FScreenshot%202024-09-10%20at%209.48.16.jpg?alt=media&amp;token=dc4effbd-d669-43e9-aefd-b7e15b48efb6" alt=""><figcaption></figcaption></figure>

#### Show in Dock

This toggle controls the visibility of the app icon in the dock. Changes to this setting require a restart of the application.

#### Run on Startup

This toggle allows the app to start automatically when macOS starts. When enabling this option for the first time, permission will be prompted to allow the app to run at startup.

#### Appearance

This setting allows the app's theme to match the macOS system theme. Options include **System** (to follow the macOS appearance), **Light**, and **Dark** modes

#### Quick Chat Shortcut

This setting defines the keyboard shortcut for accessing the quick chat feature. To change the shortcut, click inside the field and press the desired new key combination. To revert to the original shortcut, click the **Reset** button.

{% hint style="info" %}
Learn more about Quick Chat click [here](/chat/quick-chat).
{% endhint %}


# Chat

## New Chat Defaults

Configure the default settings for all new chats, which will also apply to [Quick Chat.](/chat/quick-chat)

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F9L8GJpE1FyKFuP56mTtU%2FScreenshot%202024-09-10%20at%209.48.34.jpg?alt=media&amp;token=e764877c-2b02-40df-9e38-e49d1270bc7a" alt=""><figcaption></figcaption></figure>

#### Model

Set the default model to be used in a new chat.

#### Context Window Limit

Define the context window limit for new chats. Deleting the contents of this field will reset the limit to the maximum allowed for the selected model.

#### Output Limit

Specify the output limit for new chats. Deleting the contents of this field will set the output limit to unlimited.

{% hint style="info" %}
Context Window Limit and Output Limit are using tokens.
{% endhint %}

## Available Models

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FrDnU3Vnkh2UcD1Fx47cT%2FScreenshot%202024-09-10%20at%209.48.59.jpg?alt=media&amp;token=4786224a-b1eb-442f-a9ec-dc26d888e874" alt=""><figcaption></figcaption></figure>

This section provides information about all available models, including the following details:

* **Provider**: The source of the model.
* **Max Context Window**: The maximum context window for each model.
* **Max Output Limit**: The maximum output limit for each model.
* **Tool Usage**: Indicates whether the model can utilize additional tools.

Additionally, unused models can be disabled to prevent them from appearing in the model selection dropdown.


# Tools

## New Chat Tools Defaults

Configure the default tools settings for all new chats.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FUR17YyfNIpIZdOk1FrgN%2FScreenshot%202024-09-10%20at%209.49.04.jpg?alt=media&amp;token=8ea11f94-4a89-4fc8-a397-20bcfcad22cc" alt=""><figcaption></figcaption></figure>

#### Enabled

Toggle tools active for new chats.

#### Knowledge Limit

Set the token limit for content retrieval when using the search tool within knowledge files. This retrieved knowledge will be utilized to answer questions related to the content of those files.

#### $PATH

The **$PATH** variable represents a list of directories on your system where essential applications and commands are stored. By including a directory in **$PATH**, the system can recognize the commands located within it.&#x20;

{% hint style="info" %}
To grant SUPgpt access to all applications and commands on your system, open the **Terminal**, type **`echo $PATH`**, and paste the output in this field. This allows SUPgpt to efficiently locate and utilize system-level commands.
{% endhint %}

## Active Tools

View a list of all available tools along with a brief description of each. Specific tools can be deactivated for use in new chats.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F5KaqWrrwFDTDovGqaFa1%2FScreenshot%202024-09-10%20at%209.49.08.jpg?alt=media&amp;token=217f0841-93a9-4dd2-afe8-280dfa6982de" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To learn more about tools click [here](/tools/overview)
{% endhint %}


# Image Generation

## Image Generation New Chat Defaults

Configure the default image generation settings for all new chats.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FWtIjHB6j9JoFb8LRTdbR%2FScreenshot%202024-09-10%20at%209.49.14.jpg?alt=media&amp;token=8d7bf524-f992-4e6a-a1ac-006a473a49e3" alt=""><figcaption></figcaption></figure>

#### Enabled

Toggle image generation active for new chats.

#### Model

Set the default image model to be used in a new chat.

The remaining settings are model-specific and will change depending on the selected model.


# Manage Chats

All persistent chats are listed in the chat list panel, sorted by the date of the last message.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FM0BR5gZiml13iSrvxyTG%2FScreenshot%202024-09-12%20at%2010.04.41.jpg?alt=media&amp;token=6fe26f23-cc9f-4fae-b5a1-957012dc9395" alt=""><figcaption></figcaption></figure>

To delete or toggle chat as favourite hover it and click the <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FlnQd9dlU8oj6YWm1P3Qi%2F_.tiff?alt=media&amp;token=de484979-7077-42bd-8104-7d44a474019a" alt="" data-size="line"> to delete or <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FPYRqBnbfJO9tTEaLGdQQ%2F_.tiff?alt=media&amp;token=d5edb627-b9b0-4c2f-a41a-25d72dcd9677" alt="" data-size="original"> to toggle favourite

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FpRl4qQpMjbivWqaFZ2t7%2FLayer.tiff?alt=media&amp;token=61c66313-f92d-4065-8cdb-672b892ae062" alt=""><figcaption></figcaption></figure>


# Chat Settings

The chat settings affect only the current chat session and override the default chat settings.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F9VpHltD7QNdVC94rm3xL%2FScreenshot%202024-09-12%20at%2011.23.34.jpg?alt=media&amp;token=44e44506-ea1a-440f-9cbd-fd346b80eb6a" alt=""><figcaption></figcaption></figure>

## Chat

#### Model

Select the model to be used for the current chat session.

#### Context Window Limit

This defines the maximum size of the context, in tokens, that the model will use. Since different models calculate tokens differently, this is an approximation. If the field is empty, the context limit is set to the maximum possible value for the model.&#x20;

**Keep in mind**: Your new, unsent messages and unsent attached files are not included in the context window limit. Adjust the context limit accordingly if attaching large files.

**Note**: The context window limit does not account for system parameters required for the app to function. These typically do not exceed an additional 1000 tokens per request. It is advisable to always set the limit to 1000 tokens more than your actual needs.

{% hint style="info" %}
**Hint**: If your files were not included in the context, simply set the context window limit to a larger value and submit an empty message.
{% endhint %}

<mark style="background-color:red;">**Important**</mark><mark style="background-color:red;">: Be cautious when using an empty context limit with long chats or large files, as this can quickly lead to high costs.</mark>

#### Output Limit

This defines the model's maximum response length in tokens.

#### Temperature

This setting varies by model but generally influences the predictability or creativity of the model's output. Switching between models resets this value.

#### Presence Penalty

Available on certain models only. This setting controls the repetition of specific phrases or words in the generated text. Switching between models resets this value.

#### Context Memory

Click **Change** to open the context memory panel. To learn more, refer to the [Memorize tool](/tools/memorize).

#### System Prompt

System prompts provide instructions and information to the model regarding the nature of the chat.&#x20;

{% hint style="info" %}
This is the place to set a persona for the model, if needed.
{% endhint %}

## Tools

Available only for models that support tools.

#### Enabled

Toggle this setting to enable or disable the model's use of tools.

#### Knowledge Window Limit

This sets the limit for knowledge retrieval in tokens, affecting the [Search in Files](/tools/search-in-files) and [Extract Web Content](/tools/extract-web-content) tools.&#x20;

<mark style="background-color:red;">**Important**</mark><mark style="background-color:red;">: Since the retrieved knowledge is injected into the model’s context, it is crucial that the model’s Context Window Limit is greater than the Knowledge Window Limit.</mark>

#### Active Tools

By default, all tools are active for the model to use. However, you can disable specific tools as needed.

#### Active Directory

You can manually set and delete the Active Directory path. Refer to the [Set Active Directory](/tools/set-active-directory) tool for more informatio

#### $PATH

The $PATH is utilized by the [Run Command](/tools/run-command) tool.

## Image

Available only for models that support tools.

#### Enabled

Toggle this setting to allow or disallow the model's ability to generate images.

#### Model

Select the model to be used for image generation.

#### Image Size

This depends on the model. Choose the desired resolution for the generated images.

#### Quality

This depends on the model:

* Standard: Default setting.
* HD: Allocates more time for image generation, resulting in higher quality images but also increased latency and price.

#### Style

This depends on the model:

* Vivid: Encourages the model to generate hyper-real and dramatic images.
* Natural: Promotes a more realistic, less hyper-real appearance in the generated images.


# Chat


# Persistent and Temporary Chat

When creating a new chat, you have the option to select whether the chat is temporary or persistent.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FfrEs9443lEEq1lrDkc7c%2FScreenshot%202024-09-12%20at%2011.46.59.jpg?alt=media&amp;token=4d4db1b6-5383-4280-bc0c-ba334c3b7977" alt=""><figcaption></figcaption></figure>

* **Temporary**: This chat is not saved in the database and will be lost when switching to another chat or closing the app. You can also start a new temporary chat by using **Cmd ⌘ + N**. A temporary chat is indicated by the <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F3obFLyv4TBNPfLNWMU9X%2F_.tiff?alt=media&amp;token=b3838ff8-9559-4b1b-99c7-7f7340c8fe98" alt="" data-size="original"> next to the title.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FzIWrvKmU41yz1BsGvJtt%2FScreenshot%202024-09-12%20at%2011.50.53.jpg?alt=media&amp;token=1a730e65-c976-4e3b-b198-79172c90eb75" alt=""><figcaption></figcaption></figure>

* **Persistent**: This chat is saved in the database and synced across devices. You can also start a new persistent chat by using **Shift ⇧ + Cmd ⌘ + N**.

## Converting Temporary to Persistent

If you need to save a temporary chat, you can convert it to persistent by clicking the ![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FwzYidv6V7jl42S2OTc8d%2FScreenshot.tiff?alt=media\&token=cdaf655b-1f5d-46ac-b190-7a53e45f9209) button in the top right corner.


# Prompt Bar

To create a new line in the prompt bar, press **Shift ⇧ + Enter ⏎**. To submit the prompt, press **Enter ⏎**.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FdqSMrboYJKGHWpOFNlAX%2FScreenshot%202024-09-12%20at%2011.59.42.jpg?alt=media&amp;token=e6261044-d355-46aa-911b-9663339cdd79" alt=""><figcaption></figcaption></figure>

While the model is generating text or running a tool, you can interrupt the process by pressing the ![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FKb1F83dEVOfwhloXHjBy%2F_.tiff?alt=media\&token=2eac1b24-6d61-4ba2-9e5b-9a83583baf75) button on the prompt bar.


# Attaching Files

You can attach text-based files to your message in two ways:

* By pressing the ![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FkK0VQp1PleBitq2LF2Cj%2F_.tiff?alt=media\&token=5b39f784-43ab-41c4-b81d-5cce6bfd8cee) button on the prompt bar.
* By dragging the files into the chat window.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FRanrE8y9aCr6l0Cem3MV%2FScreenshot%202024-09-12%20at%2012.16.17.jpg?alt=media&amp;token=d8d8f3b1-7be3-473c-b39a-272ab01aec60" alt=""><figcaption></figcaption></figure>

The contents of attached files are injected into the message. As long as the message containing the attached files is within the current context window, their content will remain accessible to the model.

**I**<mark style="background-color:yellow;">**mportant**</mark><mark style="background-color:yellow;">: For large files, you may need to adjust the context window limit.</mark>

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FxLWqlFpoYSc87JeMYK77%2FScreenshot%202024-09-12%20at%2014.53.41.jpg?alt=media&amp;token=9ae36def-e211-4b98-bd11-1f467809676a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Hint**: To have continuous access to the content of larger files, it is recommended to utilize the [Search in Files](/tools/search-in-files) tool.
{% endhint %}


# Attaching Images (Vision)

You can attach images to your message to leverage the model's ability to analyze visual content in two ways:

* By pressing the ![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FkK0VQp1PleBitq2LF2Cj%2F_.tiff?alt=media\&token=5b39f784-43ab-41c4-b81d-5cce6bfd8cee) button on the prompt bar.
* By dragging the images into the chat window.

Attached images are injected in the message. As long as the message containing the attached images is in the current context window their content will continue to be available to the model.

<mark style="background-color:yellow;">**Important**</mark><mark style="background-color:yellow;">: Different models, even from the same provider, handle image analysis differently in terms of cost. If you encounter a context window error with the GPT-4o Mini, it does not necessarily mean you will receive the same error with the GPT-4o, even if both are set to the same context limit. You will be notified if the context window is too small for the attached images.</mark>

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FIYTi6gAK79cCG5Hf594h%2FScreenshot%202024-09-12%20at%2015.02.12.jpg?alt=media&amp;token=48a146fa-157c-4dea-b315-2463e04a73fd" alt=""><figcaption></figcaption></figure>


# Messages

There are two types of messages: user messages (yours) and assistant messages (from the model).&#x20;

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FFDOEnHep05eGU9DWDGJH%2FScreenshot%202024-09-12%20at%2015.29.13.jpg?alt=media&amp;token=af756d21-36ae-4443-96a4-f4c412f15a9d" alt=""><figcaption></figcaption></figure>

You can reveal additional information and functions by hovering over each message.

## User Message

When you hover over a user message, you will see two options:

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FVFihDkj0OW6nirsbW27b%2FImage%20Layer.tiff?alt=media&amp;token=3ab7ba06-aa84-427a-8690-aae14d9f1f90" alt=""><figcaption></figcaption></figure>

* <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F6YRNDb3WrvjbhYfKveq3%2F_.tiff?alt=media&amp;token=86cce306-eae5-4a40-9012-0358747e7af3" alt="" data-size="line"> - Copy the text of the message.
* <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FRm6abNdOtYhl8Ljn09NN%2F_.tiff?alt=media&amp;token=ce0e04b1-af8c-4915-b489-09e1b1d95dfe" alt="" data-size="line"> - Delete the message from the conversation.

## Assistant Message

Assistant messages consist of up to three parts:

* Body:

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FVmBu6znmwtaEaVH6K6GA%2FImage%20Layer.tiff?alt=media&amp;token=ba095864-f249-447c-a705-f08dad15f765" alt=""><figcaption></figcaption></figure>

* Tools:

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2Fg2DpJeBicnC6vAFXlFrb%2FImage%20Layer.tiff?alt=media&amp;token=cc1fb9da-870d-4673-8ce9-03ac9c3fb622" alt=""><figcaption></figcaption></figure>

* Fragments - Generated files and images:

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FlhVeGlxg0nOeTGhffje1%2FImage%20Layer.tiff?alt=media&amp;token=98464391-bfd5-46ee-ab81-f5193a3e5a62" alt=""><figcaption></figcaption></figure>

When you hover over an assistant message, you will find additional options and information:

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F2iXvAuveI9UoPM7eUHcz%2FImage%20Layer.tiff?alt=media&amp;token=a895ac8c-714f-449f-9c74-ada1de803dd2" alt=""><figcaption></figcaption></figure>

* <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F50VKWs1zPODkmIv5S70Z%2F_.tiff?alt=media&amp;token=806b3155-f4fd-4205-96ad-251f7bfb2c63" alt="" data-size="line"> - Scroll to the beginning of the message.
* <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F1uIHv4xJnciyZ6VTytrH%2F_.tiff?alt=media&amp;token=844fd62e-ded7-4a0a-8597-c30ea1d55129" alt="" data-size="line"> - Copy the body of the message.
* <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F9HbE38bToqHnvcGzKwBz%2F_.tiff?alt=media&amp;token=8f1e6691-728e-45fc-8ac2-510d5a6f63f1" alt="" data-size="original"> - Regenerate (if you have switched to a different model, it will use the new model to regenerate the message).
* <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FqrokJwbiEx0uXAW3ywYW%2F_.tiff?alt=media&amp;token=de4b4bd8-66dd-4acf-b9fe-1d32f96c704f" alt="" data-size="line"> - Delete the message from the conversation.
* ![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FAn8HSMj2hA0XYh8H11Cr%2F_.tiff?alt=media\&token=c74e0e40-5e22-492f-8db7-a7993b84d9c1) 1,383 - Input tokens used.
* <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FvUbLVifiwXZfWJP476Xl%2F_.tiff?alt=media&amp;token=20b65df5-7b7e-471b-85f7-d192ab3f2b11" alt="" data-size="original"> 468 - Output tokens used.
* ![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FJq9PqeRnwF4HjClo4cAu%2F_.tiff?alt=media\&token=f3bbb831-bfd1-4cf3-a594-5bdd81d091bf) claude-3-5-sonnet-20240620  - The model used to generate the message.

## Limited Markdown Support

Assistant messages support limited markdown features, including the display of code blocks and tables.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FybZSHJKWcQgFdpgwe20O%2FScreenshot%202024-09-12%20at%2015.22.17.jpg?alt=media&amp;token=b04b8b69-30ee-4f9f-b51a-d32d1651d6a4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FsusW7DYLwFPTcIXDeX8r%2FScreenshot%202024-09-12%20at%2015.22.24.jpg?alt=media&amp;token=d22a64d7-fa09-48be-beda-0a17553bb759" alt=""><figcaption></figcaption></figure>


# Title Bar

The title bar contains the **New Chat** button, the chat title, and buttons for **Generated Fragments** and **Knowledge Files**.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FaVXn1ZumDLJ52yuYeZ1t%2FScreenshot%202024-09-12%20at%2016.08.54.jpg?alt=media&amp;token=4cf36fe8-65aa-4616-9439-52ee6cce8a66" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For more information about generated fragments, please see the [Create File](/tools/create-file) tool.

For more information about knowledge files, please refer to the [Search in Files](/tools/search-in-files) tool.
{% endhint %}

The title is automatically generated after the first 4 messages. To create the title, the app uses the most cost-effective model available.

When you hover over the title, you will find three options:

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FnhhT0iCEqsrK5QLpRQaa%2FScreenshot%202024-09-12%20at%2016.08.59.jpg?alt=media&amp;token=13a49533-e47d-431c-965b-05b9a7595175" alt=""><figcaption></figcaption></figure>

* <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FVyk7l4kVeN6AV0UneUqA%2F_.tiff?alt=media&amp;token=0d11a359-d8e5-42aa-b169-b633221c63e5" alt="" data-size="original"> - Toggle to add or remove the chat from favorites.
* <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FxN1ucvm2Ak71Hd9sDEeR%2F_.tiff?alt=media&amp;token=25cbe48f-ddab-4ec7-aa57-5d2ef1636913" alt="" data-size="original"> - Regenerate the title, using the content of the last messages (up to 1000 tokens).
* ![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F7NpgZTKNoXjXTCdtLQG4%2F_.tiff?alt=media\&token=1f07df1d-ecb3-45bb-bf5e-1e4e7eb432a3) - Set the title manually.


# Context Window Marker

The context window marker serves as a visual cue to indicate what content is within the model's context and what is outside of it. The marker automatically recalibrates its position when the context window limit setting is changed or when new messages are added to the conversation.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FYTGV2coJhU2nsVCA1X1y%2FScreenshot%202024-09-12%20at%2016.21.32.jpg?alt=media&amp;token=aa916b76-7011-4d37-9235-bb401c68fbc5" alt=""><figcaption></figcaption></figure>

<mark style="background-color:yellow;">**Important**</mark><mark style="background-color:yellow;">: The marker does not account for the message that you are about to send, which may change its position when sent.</mark>


# Quick Chat

The quick chat window is accessible at any time by pressing **Shift ⇧ + Cmd ⌘ + D** (this is the default shortcut, which can be changed in the App Settings).

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2Fq0HJw90DRPVGwQbPipzm%2FScreenshot%202024-09-12%20at%2016.26.16.jpg?alt=media&amp;token=d62c470d-e15a-4e63-b9c3-cebcc6ecc647" alt=""><figcaption></figcaption></figure>

The quick chat configuration reflects the default values you’ve set in the [**App Settings**](/app-settings/general).

When the quick chat window loses focus, it hides but does not close. You can reopen the same quick chat by pressing **Shift ⇧ + Cmd ⌘ + D** (or the shortcut you have configured).

To start a new quick chat, you must first close the current one, either by pressing the **X** button or by using **Cmd ⌘ + W**.

If you need to move the quick chat session to persistent storage, press the <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FkHQ53BNHvnpu33O7vPjX%2FScreenshot.tiff?alt=media&amp;token=ee886ea1-b61b-4fdd-b001-0be72bcef4e8" alt="" data-size="original"> button.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FHrkMdTcOQWPIREpyqY57%2FScreenshot%202024-09-12%20at%2016.39.46.jpg?alt=media&amp;token=742f6b29-47c0-4727-afaf-33e14323a387" alt=""><figcaption></figcaption></figure>


# Overview

Models that support tool calls can extend their capabilities beyond just chatting. Tools will appear as separate messages in the chat window, displaying a preloader while the tool is being executed and an orange checkmark when the execution is complete.&#x20;

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FM8rvO9lP69mfHd1gwbAx%2FImage%20Layer.tiff?alt=media&amp;token=22283cde-be34-45f2-a204-29aa16c97a93" alt=""><figcaption><p>The model is executing the <strong>Set active directory</strong> tool</p></figcaption></figure>

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FMXtHYuqkRxvzqf4WMXpp%2FImage%20Layer.tiff?alt=media&amp;token=70de6239-6d63-487f-b6c3-d1635b2faa74" alt=""><figcaption><p>The model has finished executing the <strong>Set active directory</strong> tool</p></figcaption></figure>

<details>

<summary>Models that support tools</summary>

**OpenAI**:

* GPT-4o mini
* GPT-4o
* GPT-4 Turbo
* GPT-3.5 Turbo

**Anthropic**:

* Claude 3.5 Sonnet
* Claude 3 Sonnet
* Claude 3 Opus
* Claude 3 Haiku

**Google**:

* Gemini 1.5 Pro
* Gemini 1.5 Flash
* Gemini 1.0 Flash

**Groq**:

* Llama 3.1 70b
* Llama 3.1 70b

</details>

{% hint style="info" %}
OpenAI API key is required for **Search in Files** and **Extract Web Content** tools.
{% endhint %}

## Using the Tools

There is no need to explicitly specify which tool the model should use. The model will attempt to infer the appropriate tool based on the context of the conversation and the content of your prompt.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FVGh4dGTd6koiEqzzv7yI%2FScreenshot%202024-09-11%20at%2012.04.13.jpg?alt=media&amp;token=cf8a6a4f-05e1-4bd0-a19a-9357aeec3a9f" alt=""><figcaption></figcaption></figure>

## Available Tools

### Set Active Directory

Sets the active directory, where the chat can manipulate files.

### Get Active Directory

Retrieves the active directory if set.

### Run Command

Executes bash command.

### Create File

Creates a text based file. If the active directory is set it will also create the file in it

### Read File

Reads an entire file from the generated fragments, knowledge files or the active directory if set.

### List Files

Lists all files in the generated fragments or knowledge files.

### Search in Files

Searches throught the knowledge files for relevent information and use it as context.

### Generate Image

Generates an image using the selected image model.

### Memorize

Memorizes a piece of information making it always available in the context. You can manage the memorized snipets from the Chat Settings Panel.

### Extract Web Content

Tries to extract relative text content from a web page.

### Search Web

Performs a web search. **(Spawns assistant)**


# Set Active Directory

Sets the active directory, where the chat can create, read and edit files.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2Fwrq4eb2cXBcfDOB7Um5c%2FScreenshot%202024-09-10%20at%2018.38.29.png?alt=media&amp;token=94f8f9af-4f3e-47f4-bf55-9c3c6d6ceb3b" alt=""><figcaption></figcaption></figure>

When the model runs command, the active directory is used as the location for executing the command. For example, if the active directory is set and a request is made to the model to initialize a React project, it will be created in that directory.

The active directory can also be set or changed from the chat settings panel.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FJFLs87EcjEeuuKoK2vLT%2FScreenshot%202024-09-10%20at%2022.26.07.jpg?alt=media&amp;token=6ae32a53-2f4b-415a-a6b3-bbe55fb41018" alt=""><figcaption></figcaption></figure>


# Get Active Directory

When executing file-related tasks or commands, the model can determine if the active directory is set and get its location..

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FNlTgEeCMu66VFEXus60U%2FScreenshot%202024-09-10%20at%2022.35.50.png?alt=media&amp;token=ef49632e-7059-41e8-9aed-6a5430809714" alt=""><figcaption></figcaption></figure>


# Run Command

The Run Command Tool enables AI models to execute shell commands on macOS. This functionality allows tasks to be performed by simply describing the desired action, without the need to recall specific commands. The AI processes the request and executes the appropriate shell commands.

## $PATH

The Run Command tool relies heavily on the $PATH configuration, which enables it to access installed applications and extend its functionalities.

{% hint style="info" %}
To grant SUPgpt access to all commands on your system, follow these steps:

1\. Open the Terminal.

2\. Type echo $PATH and press Enter.

3\. Copy the output.

4\. Paste it into the $PATH field in either the App Settings or the Chat Settings.
{% endhint %}

## Limitations

Run Command cannot execute commands that require user input. For example, commands that prompt for confirmation, such as `Do you want to continue Y/n`, will cause the tool to run indefinitely.&#x20;

If encountering such a command, the process can be terminated by clicking the stop button in the prompt field, which will instantly kill the running process.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F5mpYYyabFq2QOKjdEepq%2Fimage.png?alt=media&amp;token=45ffaec7-4a1b-4228-86be-a7eaddf500a2" alt=""><figcaption></figcaption></figure>

## Some "Run Command" Uses

* Run python code
* Initialize node.js projects
* Use FFmpeg for video processing
* Resize and convert images
* Download files
* Retrieve system information
* Use available installed interpreters
* Make API calls
* Zip files
* Search for files
* Manage packages
* Perform file operations
* Check network status
* Create and manage virtual environments
* Monitor system resources
* Schedule tasks
* Generate SSH keys
* Compile code
* Run Docker containers
* And more


# Create File

The Create File tool allows the model to generate text-based files. Supported file types include, but are not limited to:

* Code and script files
* CSVs
* PDFs
* Text

If the [Active Directory](/tools/set-active-directory) is set, the files will be created in that directory. If the Active Directory is not set, the files will only be accessible within the chat.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F0Sz4V2H362Ob6aq1Ca6G%2FScreenshot%202024-09-10%20at%2023.35.13.jpg?alt=media&amp;token=6265b0ec-75d0-4d1d-bf02-6c375e67758e" alt=""><figcaption></figcaption></figure>

To view the contents of a created file, click the ![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FjsZNwtGUlssuFpgxFqXt%2F_.tiff?alt=media\&token=2705714b-4708-4da9-915c-189b74370ecb) button.

To export the file, click the ![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F6MnYzLy0HCA5uSiIvNIx%2F_.tiff?alt=media\&token=983e3027-94b0-4866-9ab9-17611150a6ff) button or simply drag the file out of the chat window.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FJz8siRs2fnj6auhsprYI%2FScreenshot%202024-09-10%20at%2023.35.32.jpg?alt=media&amp;token=9d90f587-c4d6-439e-9a13-f56ece951b59" alt=""><figcaption></figcaption></figure>

## Generated Fragments

All created files are available in the Generated Fragments window. To open this window, click the <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FoUF8Pwyt632984rfUH2u%2F_.tiff?alt=media&amp;token=6d18a093-68b8-4e39-950e-91e0cd056584" alt="" data-size="original"> button in the top right corner of the chat window.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F1NVwkOc0cNXW2Wzf69G8%2FScreenshot%202024-09-10%20at%2023.37.04.jpg?alt=media&amp;token=37635b11-cf84-4d6d-bf88-fb8a0fece40e" alt=""><figcaption></figcaption></figure>


# Read File

The Read File tool enables the model to access and read text-based files from three distinct sources:

* Filesystem
* Generated files
* Knowledge files

{% hint style="info" %}
If the size of the file contents exceeds the token limit set for the context window limit, the file will not be sent to the model.
{% endhint %}

{% hint style="info" %}
It is recommended to specify the desired source when asking the model to read a file. This ensures accurate retrieval of the intended content.
{% endhint %}

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FloDt5y0gTWoVoWxi0XM9%2FScreenshot%202024-09-11%20at%2011.49.45.jpg?alt=media&amp;token=499f40ee-3797-461a-a68a-a22449fa449b" alt=""><figcaption></figcaption></figure>


# List Files

The List Files tool allows the model to retrieve a list of all generated or knowledge files associated with the current chat session.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FYd0EBWRzdmajs3t3yLYx%2FScreenshot%202024-09-11%20at%2011.59.04.jpg?alt=media&amp;token=af585665-e605-4561-997a-1ae376fa7a51" alt=""><figcaption></figcaption></figure>


# Search in Files

<mark style="background-color:red;">The Search in Files tool requires an</mark> <mark style="background-color:red;"></mark><mark style="background-color:red;">**OpenAI API key**</mark><mark style="background-color:red;">.</mark>

The Search in Files tool allows the addition of files to enhance the chat's knowledge base. Models can search for relevant information within these files and utilize it as context for responses. **Only text-based files are supported, such as texts, code, CSVs, and PDFs where the text is selectable.**

To add knowledge files, click the <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FiK1fc3lGZqkonbG6Z9V4%2F_.tiff?alt=media&amp;token=af3b1ad2-59e3-40d9-8887-103c07154abf" alt="" data-size="original"> button in the top right corner. You can drag the file into the Chat Knowledge window or click the <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FdKECC2StRofCDww1I1Wk%2F_.tiff?alt=media&amp;token=4eb7da96-9738-4124-9a42-52592f9cdb74" alt="" data-size="line"> button to open Finder. Please wait for the files to complete parsing.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FflukhBho1FeS6f1h8jRG%2FScreenshot%202024-09-11%20at%2019.29.06.jpg?alt=media&amp;token=1c235c58-68eb-4f3c-a7f7-36b21250fed2" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Large files may take more time to parse. While it is not mandatory, it is advisable to keep individual knowledge files under 50 MB.
{% endhint %}

{% hint style="info" %}
The models may not always choose to search in the knowledge files for content. It is a good practice to remind them to use the knowledge files to answer queries.
{% endhint %}

## Knowledge Window Limit

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FGp3PF7vzKZ7WiP7uyicx%2Fimage.jpeg?alt=media&amp;token=7b3b85a8-2842-43a0-bc7e-164939e52786" alt=""><figcaption></figcaption></figure>

This setting defines how much content to fetch from the knowledge files.

<mark style="background-color:yellow;">**Important:**</mark> <mark style="background-color:yellow;"></mark><mark style="background-color:yellow;">It is essential that the knowledge window limit is less than the context window limit of the model, otherwise, the model will not be able to use the knowledge due to its larger size.</mark>

## Time to Process

Processing approximately 3,000,000 symbols from the knowledge files takes about 1 minute when parsing. Please keep in mind that processing time will increase with larger files.


# Generate Image

To enable image generation in the app, activate the feature in either the **App Settings -> Image Generation** or in the **Chat Settings**.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FPXnMrrdLQILRcPVIydVf%2FScreenshot%202024-09-11%20at%2019.47.08.jpg?alt=media&amp;token=0c07ada3-5cd7-4289-a933-53b978691cf3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FC6PaD3fWl5BcTDkNPMtT%2FScreenshot%202024-09-11%20at%2019.44.07.jpg?alt=media&amp;token=b88db516-7388-49de-9e4f-63b855672137" alt=""><figcaption></figcaption></figure>

## Model Settings

Each model has different settings to choose from.

## Saving the Image

The generated images can be saved in two ways:

* Drag the image directly from the chat to your desired location.
* Click the![](https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FoAET6NdpX8PRM9Fr4EXv%2F_.tiff?alt=media\&token=c37f6539-6c2c-43e1-9d15-3749762d65e9)button to save the image to the drive.

## Generated Fragments

All generated images are available in the Generated Fragments window. To open this window, click the <img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FoUF8Pwyt632984rfUH2u%2F_.tiff?alt=media&amp;token=6d18a093-68b8-4e39-950e-91e0cd056584" alt="" data-size="original"> button in the top right corner of the chat window.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F2bukv1YY6wRpDJwwKFTW%2FScreenshot%202024-09-11%20at%2022.35.03.jpg?alt=media&amp;token=cab6a526-4e41-43df-8dd2-12e572f66de5" alt=""><figcaption></figcaption></figure>


# Memorize

The Memorize tool enables the model to "remember" specific pieces of information that remain accessible in the context of the conversation.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FQ4DWypj9QmCPwZ2nj8Vz%2FScreenshot%202024-09-11%20at%2022.54.01.jpg?alt=media&amp;token=63f7af2f-f063-4e8c-9772-c9affe5c097c" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
An example use of the Memorize tool would be to create a Python virtual environment and have the model remember to always use this environment for Python-related tasks.
{% endhint %}

## Modify Memory

To view and modify what the model has in its memory, click on the **Change** button in the **Chat Settings**. Here, you can add, edit, or delete memorized pieces of information.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FHPKNh3eU8NEiN9XRYeuZ%2FScreenshot%202024-09-11%20at%2022.54.21.jpg?alt=media&amp;token=6829f6c6-1ccc-4e83-b338-3679db607ffd" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FhduR1sw3trKrV5HAopcD%2FScreenshot%202024-09-11%20at%2022.54.15.jpg?alt=media&amp;token=3c85df42-56e9-4b16-8e38-341431543398" alt=""><figcaption></figcaption></figure>


# Extract Web Content

The Extract Web Content tool enables the model to retrieve relevant information from a single web page and utilize it as context during the conversation.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2FUESm6VVdXXOxHwC1PBhS%2FScreenshot%202024-09-11%20at%2023.27.38.jpg?alt=media&amp;token=e82cb9b4-feaa-46f9-81e3-c8396e870ad4" alt=""><figcaption></figcaption></figure>

The size (in tokens) of the retrieved content is determined by the knowledge window limit setting in the [**Chat Settings**](/chat/chat-settings)**.**

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2F6sA0H7XEyoG4i6dPIkUq%2FScreenshot%202024-09-11%20at%2023.27.42.jpg?alt=media&amp;token=899a32ec-f941-4ffe-a434-2a9a719f32d2" alt=""><figcaption></figcaption></figure>


# Search Web

The Search Web tool enables the model to perform a real-time web search to gather external information.

<figure><img src="https://4213268853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCXqs9TKFSh6SF1dy2j2A%2Fuploads%2Fe7KjfAzSOdxJYW2DAXjs%2FScreenshot%202024-09-11%20at%2023.48.45.jpg?alt=media&amp;token=258d502d-b98c-4217-8419-4896d63c49cb" alt=""><figcaption></figcaption></figure>


