Skip to content

Latest commit

 

History

History
70 lines (38 loc) · 2.67 KB

README.md

File metadata and controls

70 lines (38 loc) · 2.67 KB

houston social image

ChatGPT with HoustonAI

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.

Status

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.

How it works

To be continued...

Deploy

Deploy With Vercel

Deploy with Vercel

Environment Variables

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

TODO

  • 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 and Temperature functionality.

  • Password verification page.

Contributing

This project exists thanks to all those who contributed.

Thank you to all our supporters!🙏

img

License

MIT © Fred K. Schott, Nate Moore, eks