This is a minimal web UI for OpenAI API, featuring the HoustonAI interface. Powered by Astro and OpenAI API.
You can deploy a ChatGPT chat page with the HoustonAI interface using your OpenAI API Key.
Note: This project is for personal, NON-COMMERCIAL purposes and is NOT an OFFICIAL project of the Astro team.
This repo is inspired by anse-app/chatgpt-demo, based on withastro/houston.astro.build. Modifications have been made to the code in src/components/Generator.astro
, src/util.ts
and src/pages/api.ts
to enable communication with the OpenAI API within the HoustonAI interface.
Currently, the project does not support custom features such as System Role
and Temperature
, but plans to implement these in the future.
Code in this repo is messy! Our goal is to clean this up and share it as an Astro template example.
To be continued...
You can control the website through environment variables.
Name | Description | Setting | Default |
---|---|---|---|
OPENAI_API_KEY |
Your API Key for OpenAI. | Required | null |
OPENAI_API_MODEL |
ID of the model to use. List models | Optional | gpt-3.5-turbo |
OPENAI_API_BASE_URL |
Base URL for OpenAI API. | Optional | https://api.openai.com/v1/chat/completions |
-
Render text with
Markdown-It
. -
Render mathematical formulas with
KaTeX
. -
Highlight code blocks with
highlight.js
. -
Copy button for code blocks.
-
Support streaming response for OpenAI API.
-
Support continuous chat.
HoustonAI will now remember the latest 3 complete conversation histories.
-
Clear button for clear chat history.
-
Implement custom
System Role
andTemperature
functionality. -
Password verification page.
This project exists thanks to all those who contributed.
Thank you to all our supporters!🙏