Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

amadad/SimpleAIChat

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
4 Commits
 
 
 
 
 
 

Repository files navigation

SimpleAIChat Demo

Minimal OpenAI chatbot using simpleaichat — a lightweight wrapper for conversational AI.

Setup

pip install simpleaichat python-dotenv

Create .env file: OPENAI_API_KEY=sk-your-key-here

Usage

python main.py

How It Works

  1. Loads API key from .env via python-dotenv
  2. Initializes AIChat instance with OpenAI credentials
  3. Sends a message and prints the response

Requirements

  • Python 3.7+
  • OpenAI API key
  • simpleaichat
  • python-dotenv

Note

This was an early experiment with LLM APIs. The simpleaichat library handles conversation state, retries, and token management behind the scenes — making it simpler than raw OpenAI SDK calls.

About

A lightweight wrapper for conversational AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.