SmarGPT enhances the reasoning capabilities of GPT-style models with prompting and in-context learning.
The interface of SmartGPT uses Chatbot-UI as a foundation.
SmartGPT is not a comercial product, regular updates are not guaranteed.
1. Clone Repo
git clone
2. Install Dependencies
npm i
3. Provide OpenAI API Key
Create a .env.local file in the root of the repo with your OpenAI API Key:
OPENAI_API_KEY=YOUR_KEY
You can set
OPENAI_API_HOST
where access to the official OpenAI host is restricted or unavailable, allowing users to configure an alternative host for their specific needs.
Additionally, if you have multiple OpenAI Organizations, you can set
OPENAI_ORGANIZATION
to specify one.
4. Run App
npm run dev
5. Use It
You should be able to start chatting.
When deploying the application, the following environment variables can be set:
Environment Variable | Default value | Description |
---|---|---|
OPENAI_API_KEY | The default API key used for authentication with OpenAI | |
OPENAI_API_HOST | https://api.openai.com |
The base url, for Azure use https://<endpoint>.openai.azure.com |
OPENAI_API_TYPE | openai |
The API type, options are openai or azure |
OPENAI_API_VERSION | 2023-03-15-preview |
Only applicable for Azure OpenAI |
DEFAULT_SYSTEM_PROMPT | The default prompt used for the system, if not provided, the system will use the default prompt for the selected prompt mode | |
DEFAULT_ASSISTANT_PROMPT | The default prompt used for the assistant, if not provided, the assistant will use the default prompt for the selected prompt mode | |
DEFAULT_RESEARCHER_PROMPT | The default prompt used for the researcher, if not provided, the researcher will use the default prompt for the selected prompt mode | |
DEFAULT_RESOLVER_PROMPT | The default prompt used for the resolver, if not provided, the resolver will use the default prompt for the selected prompt mode | |
DEFAULT_TEMPERATURE | 0.8 |
The default temperature used for the system, if not provided, the system will use the default temperature for the selected prompt mode |
DEFAULT_PROMPT_MODE | smartgpt |
The default prompt mode, options are smartgpt or default |