from csv_to_db import ImportCSV importcsv = ImportCSV("CaesarAI") print() importcsv.db.caesarapis.insert_one({ "caesarapis": [ { "api_name": "Caesar Translate", "triggerwords": "translate", "example": "Translate hello world into Spanish", "url": "http://192.168.0.10:7860/caesarlangtranslate", "responseresult": { "caesaroutput": "Hola Mundo", "caesartranslation": { "destination_language": "en", "original": "hello world", "original_language": "es", "translation": "Hola Mundo" } }, "method": "POST", "content_type": "application/json", "data": { "caesartranslate": "translate hello world into Spanish", "response": "true", "language": "fr", "triggerword": "translate" }, "auth": "none", "token": "none" }, { "api_name": "Caesar Send Email", "triggerwords": "email", "example": "Send email to Amari Saying hello world", "url": "https://revisionbank-email.onrender.com/raspsendemail", "responseresult": { "raspsendemail": "RaspSendEmail sent." }, "method": "POST", "content_type": "application/json", "data": { "email": "amari.lawal05@gmail.com", "subject": "CaesarAI", "message": "hello world", "caesar": "true" }, "auth": "none", "token": "none" }, { "api_name": "Caesar Hotel Booking", "triggerwords": "hotel booking", "example": "find hotel booking for Alicante", "url": "http://192.168.0.10:7860/caesaraihotelbookings", "responseresult": { "caesaroutput": { "caesarbookings": [ "list of bookings" ] } }, "method": "POST", "content_type": "application/json", "data": { "city": "Alicante", "checkin_date": "2023-8-15", "checkout_date": "2023-8-22", "purpose": "leisure", "num_of_adults": { "$numberInt": "10" }, "num_of_rooms": { "$numberInt": "5" }, "num_of_children": { "$numberInt": "0" }, "price_range": { "$numberInt": "2000" }, "num_of_pages": { "$numberInt": "10" }, "exclude_whole": "true" }, "auth": "none", "token": "none" } ] })