This is a simple Python-based chat assistant powered by OpenAI's GPT and function calling capabilities. It supports three built-in functions:
- Mortgage Calculator
- Product Database Search
- Currency Conversion (using Exchangerate-API – API key required)
- Conversational CLI interface
- Automatic function calling using OpenAI's latest API
- Real-time currency conversion without API key
- Clean modular code using
Helpers.py
Here are five example queries to demonstrate function calling:
-
"How much does an Iphone cost?"
→ Callssearch_product_database -
"What would be my monthly rate on that Iphone, if I bought with 10% interest for a 5 year period?"
→ Callscalculate_mortgage -
"How about for a 3 year period, with 5% interest?"
→ Callscalculate_mortgage -
"Convert that amount to Georgian Lari."
→ Callscurrency_converter -
"Now convert that amount to Euro."
→ Callscurrency_converter
git clone https://github.com/pepportat/BuildingAIApps.git
cd BuildingAIApps