Skip to content

๐Ÿค– OpenAI & Langchain Chat with SSE on FastAPI server & HTML chat interface

License

Notifications You must be signed in to change notification settings

enso-labs/chat-stream-full-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

51 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– Prompt Engineers AI - ChatGPT SSE

Welcome to our open-source chatbot application! This application is built using HTML, CSS and JavaScript along with EventSource and fetch APIs. It's a basic chatbot interface that communicates with a server via HTTP requests.

๐Ÿ› ๏ธ Setup and Usage

  1. Clone the repository to your local machine using git clone <repo_link>.
  2. Use to create an env cp .example.env .env.local then update your OPENAI_API_KEY
  3. Navigate to the project folder: cd chatgpt-see.
  4. Run the bash scripts/dev.sh script to start the development server and build the application using Docker Compose. Or using Docker Compose docker-compose up --build
  5. Open your preferred web browser and navigate to http://localhost:8000 to access the chatbot application. Swagger docs located at http://localhost:8000/docs

Once you have the application running, you can start chatting with the bot:

  • Type your message in the input field and hit the "Send" button or press Enter.
  • The bot will process your message and send back a response, which will appear in the chatbox.

๐Ÿค How to Contribute

We welcome contributions from the community, from beginners to seasoned developers. Here's how you can contribute:

  1. Fork the repository: Click on the 'Fork' button at the top right corner of the repository page on GitHub.

  2. Clone the forked repository to your local machine: git clone <forked_repo_link>.

  3. Navigate to the project folder: cd chatgpt-sse.

  4. Create a new branch for your changes: git checkout -b <branch_name>.

  5. Make your changes in the new branch.

  6. Commit your changes: git commit -am 'Add some feature'.

  7. Push to the branch: git push origin <branch_name>.

  8. Open a Pull Request: Go back to your forked repository on GitHub and click on 'Compare & pull request' to create a new pull request.

Please ensure that your code passes all the tests and if possible, add tests for new features. Always write a clear and concise commit message and pull request description.

๐Ÿ’ก Issues

Feel free to submit issues and enhancement requests. We're always looking for feedback and suggestions.

๐Ÿค“ Maintainers

๐Ÿ“œ License

This project is open-source, under the MIT License. Feel free to use, modify, and distribute the code as you please.

Happy Coding! ๐ŸŽ‰๐ŸŽ‰

About

๐Ÿค– OpenAI & Langchain Chat with SSE on FastAPI server & HTML chat interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published