Aingecy SAAS

Changelog

08/19/2024

Updates: New Models Included

We’ve recently expanded our AI model offerings with the following additions:

GPT-4o: Our most advanced model, faster and more cost-effective than GPT-4 Turbo, supporting text and image inputs.
GPT-4o-2024-05-13: The current version of GPT-4o, optimized for complex, multi-step tasks.
GPT-4o-2024-08-06: The latest snapshot of GPT-4o with support for Structured Outputs.
chatgpt-4o-latest: A dynamic version of GPT-4o, continuously updated for research and evaluation purposes.
GPT-4o Mini: A smaller, more affordable version of GPT-4o, ideal for fast, lightweight tasks.
GPT-4o Mini-2024-07-18: The current version of GPT-4o Mini, designed for smaller tasks with enhanced performance.
GPT-4 Turbo: The latest GPT-4 model with enhanced vision capabilities and improved JSON mode support.
GPT-4 Turbo-2024-04-09: The current version of GPT-4 Turbo with full vision and function-calling capabilities.
GPT-4 Turbo Preview: A preview model for testing and research, featuring the latest enhancements.


04/24/2024

Bux fix.

(SAAS Version)
Fixed chat bug that started after OpenAI API update on April 17th.
Modified files js/main.js

(HTml 5 Version)
Fixed chat bug that started after OpenAI API update on April 17th.
Modified files js/app.js


12/10/2023

Update Available!

(SAAS Version)

  1. Adjustment of Tiny's message in the administrative system.

  2. Implementation of the GPT Vision API, now it is possible to send an image for the chat to read

  3. Learn more: https://platform.openai.com/docs/guides/vision

Database Changes: 
3 new fields have been added to the following tables:

Recommended Actions:
Back up your database before applying updates to prevent data loss.

See here how to update your database automatically

If you prefer, run the queries below manually on your database.

Table "settings":

ALTER TABLE `settings` ADD `vision_spend_credits` INT NOT NULL DEFAULT '100' AFTER `customer_confirm_email_content`;

Table "prompts":

ALTER TABLE `prompts`
ADD COLUMN `use_vision` int(11) NOT NULL DEFAULT '0';

Modified files:

/admin/inc/footer.php  (Fix tiny's message)
/admin/modules/settings/index.php
/admin/modules/prompts/index.php
/admin/modules/prompts/form.php
/style/app.css
/js/main.js
/_chat.php
/_share.php
/modules/customer/chat-session.php
/php/api.php
/public_uploads/vision  (new folder)
/inc/footer.php

How to use:

After updating the database and physical files, configure the amount of credits to be consumed for each use of Vision.
In other words, every time a user requests image reading, you should set how many credits will be spent by adjusting this in the "Settings -> Vision" option.

Next, to activate vision in a chat, you must edit a prompt and check the "Use vision in chat" option. This will make an image upload field appear in the configured prompt's chat.

Don't forget to clear your cache after updates.


11/09/2023

Update Available!

News: (SAAS Version)

  1. We've introduced the new GPT-4 Turbo chat model with a 128k context window, and it is now available in the bot selection models.

  2. Additionally, we've incorporated the DALL·E3 API for generating images within the chat using the /img command.

Learn more at: 
https://platform.openai.com/docs/models

Database Changes: 
10 new fields have been added to the following tables:

See here how to update your database automatically

If you prefer, run the queries below manually on your database.

Table "settings":

ALTER TABLE `settings`
ADD `dalle_version` INT NOT NULL DEFAULT '3' AFTER `smtp_auth`,
ADD `dalle3_img_size` VARCHAR(10) NOT NULL DEFAULT '1024x1024' AFTER `dalle_spend_credits`,
ADD `dalle3_spend_credits` INT NOT NULL DEFAULT '500' AFTER `dalle3_img_size`;

Recommended Actions:
Back up your database before applying updates to prevent data loss.

Modified files

/admin/modules/prompts/form.php
/admin/modules/prompts/models-info.php
/admin/modules/settings/index.php
/js/main.js  (line 14  - modification only in the dall-e file path)

new file
/php/dall-e.php  

file removed
/php/dall-e2

Updates for html5 template coming soon.


09/24/2023

New Update for Aigency HTML5:
Now, the 100 prompts are also available for the Aigency HTML5 version.

Recent Update for Aigency SAAS:
New Feature: Whisper

We have modified the microphone to support the Whisper functionality from OpenAI using RecordRTC. Whisper is an automatic speech recognition (ASR) system trained on 680,000 hours of multilingual and multitask data collected from the web. With Whisper, the user can speak into the microphone with nearly 100% comprehension accuracy. The benefit of using RecordRTC on the web is its compatibility with most browsers, providing more support than webkitSpeechRecognition.

Note: The use of RTC is available only in conjunction with Whisper.

Files changes:

_chat.php
admin/modules/prompts/form.php
inc/footer.php
js/RecordRTC.js
js/main.js
php/json.php
php/whisper.php
style/app.css

Database Changes: 
1 new field was added to the prompts table

See here how to update your database automatically

If you prefer, run the queries below manually on your database.

Table "prompts":

ALTER TABLE prompts
ADD use_mic_whisper INT(11) NOT NULL DEFAULT '0';

To enable Whisper in the chat, use the option in the administrative system available in the editing of your prompt, called "Use Whisper on the microphone."

Please remember that Whisper is an OpenAI API, and its usage will consume credits from your API key. If you prefer not to use Whisper, simply uncheck this option, and the system will use the default webkitSpeechRecognition feature.
For additional information about Whisper and its pricing, please visit the website https://openai.com/research/whisper.

Don't forget to refresh your cache after updates.


08/21/2023

Update Available!

News:

  1. Ability to request user email confirmation before accessing the system.
  2. Premium voices via Google Cloud Text to Speech (Paid Version).
  3. Option to download audios from Google's API in mp3 format.
  4. Addition of 80 prompts to the standard model.

Database Changes: 
10 new fields have been added to the following tables:

See here how to update your database automatically

If you prefer, run the queries below manually on your database.

Table "customers":

ALTER TABLE customers
ADD confirm_email_token varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL;

Table "prompts":

ALTER TABLE prompts
ADD use_cloud_google_voice int(11) DEFAULT '0',
ADD display_mp3_google_cloud_text int(11) DEFAULT '0',
ADD cloud_google_voice varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
ADD cloud_google_voice_lang_code varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
ADD cloud_google_voice_gender varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL;

Table "settings":

ALTER TABLE settings
ADD google_cloud_text_to_speech_api_key varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
ADD customer_confirm_email tinyint(4) DEFAULT '0',
ADD customer_confirm_email_subject varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
ADD customer_confirm_email_content text COLLATE utf8mb4_unicode_ci;

Recommended Actions:
Back up your database before applying updates to prevent data loss.

Modified files

/.htaccess
/_chat.php
/_blog.php
/admin/class/Customers.class.php
/admin/inc/includes.php
/admin/inc/header.php
/admin/inc/footer.php
/admin/js/app.js
/admin/style/app.css
/admin/modules/prompts/action.php
/admin/modules/prompts/form.php
/admin/modules/prompts/index.php
/admin/modules/prompts/system-voices-info.php
/admin/modules/languages/form.php
/admin/modules/settings/index.php
/php/api.php
/php/google_tts.php
/php/json.php
/js/main.js
/style/app.css
/style/dark-mode.css
/modules/action/_action.php
/modules/customer/_customer-panel.php
/inc/functions.php
/img/icon-mp3.svg
Tree change structure:
├── .htaccess
├── _chat.php
├── _blog.php
│
├── admin/
│   ├── class/
│   │   └── Customers.class.php
│   │
│   ├── inc/
│   │   ├── includes.php
│   │   ├── header.php
│   │   └── footer.php
│   │
│   ├── js/
│   │   └── app.js
│   │
│   ├── style/
│   │   └── app.css
│   │
│   ├── modules/
│   │   ├── prompts/
│   │   │   ├── action.php
│   │   │   ├── form.php
│   │   │   ├── index.php
│   │   │   └── system-voices-info.php
│   │   │
│   │   ├── languages/
│   │   │   └── form.php
│   │   │
│   │   └── settings/
│   │       └── index.php
│   │
├── php/
│   ├── api.php
│   ├── google_tts.php
│   └── json.php
│
├── js/
│   └── main.js
│
├── style/
│   ├── app.css
│   └── dark-mode.css
│
├── /modules/
│   ├── action/
│   │   └── _action.php
│   │
│   └── customer/
│       └── _customer-panel.php
│
├── /inc/
│   └── functions.php
│
├── /img/
│   └── icon-mp3.svg
│

Note: Remember to increment the cache number for your js and css files in the admin panel.

Admin -> Settings -> Cache

After updating the files, fill in the new fields that have been added to the "Translate" menu by editing them in your language.
These fields are related to the user email confirmation screen.

Learn how to set up email validation by clicking here.

Learn more about Google's premium voices here.

Adding the extra prompts:
To incorporate the new prompts, access the query at the link below and execute it using the "SQL" option in your database.
Link 80 prompts



Copy the content from the link provided above.
Access your phpMyAdmin.
Select your database.
Click on the "SQL" option.
Paste the copied content.
Then, click on "Execute."


08/04/2023

We inform that an update has been made to the prompt module, where we have added a button that allows users to view the available system languages for the bots. By clicking on this button, the user will have access to the list of available languages and will be able to select the one they wish to use.

To perform the update:

Download the latest version of the script.

Replace the following files with their respective updated versions:

/admin/inc/footer.php
/admin/js/app.js
/admin/modules/prompts (Upload all folder contents)

Soon, we will be adding premium Google voices (Available through payment).


08/02/2023

New update available!
- Payments with PayPal Business
- New translation field added to languages
- Correction in the php/api.php file

Check the tutorial and requirements to use PayPal Business as a payment method at the link below:
https://documentation.polartemplates.com/aigency-saas/payment-methods#paypal

Files modified in this update:
/admin/modules/settings/index.php
/admin/modules/credits_packs/form.php
/admin/modules/credits_packs/index.php
/admin/class/CustomerCreditsPacks.class.php
/admin/modules/languages/form.php
/admin/js/app.js
/admin/inc/footer.php
/modules/customer/_customer-my-purchases.php
/modules/customer/_customer-my-purchases-details.php
/modules/customer/_customer-checkout-complete.php
/modules/customer/customer-restrict.php
/modules/customer/_new-chat.php
/modules/payment/recharge-credits/_process-payment.php
/modules/payment/recharge-credits/_process-payment.php
/inc/functions.php
/inc/includes.php
/_chat.php
/_pricing.php
/js/main.js
/paypal-webhook.php (new file)
/php/api.php

Database update required:
New fields added to the customer_credits_packs and settings tables.

Table customer_credits_packs:
New field paypal_token with definition varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL.

Table settings:
New field paypal_payment_active with definition tinyint(1) DEFAULT '0'.
New field paypal_test_mode with definition tinyint(1) NOT NULL DEFAULT '1'.
New field paypal_clientid_test with definition varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL.
New field paypal_secret_test with definition varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL.
New field paypal_clientid_production with definition varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL.
New field paypal_secret_production with definition varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL.

Please, follow the link below to update your database:
https://documentation.polartemplates.com/aigency-saas/updating-your-database


07/31/2023

We inform you that the issue some users were facing has been fixed. The following error message was being displayed:

"We could not parse the JSON body of your request. (HINT: This likely means you aren’t using your HTTP library correctly. The OpenAI API expects a JSON payload, but what was sent was not valid JSON. If you have trouble figuring out how to fix this, please contact us through our help center at help.openai.com.)"

This occurred due to a bug in the "/php/api.php" function. During the character truncation process, the system was generating a special character, resulting in JSON issues.

Fortunately, we have already corrected this problem. Please download the latest update and replace the "php/api.php" file with the new corrected file.

Bug fix in the "SMTP Configs" function.
When clicking the "Test sending email" button, the page had issues, but this problem has been resolved.
To fix it, simply download the latest version of the script and update the test-smtp.php file
located at /admin/modules/settings/test-smtp.php


07/30/2023

Minor adjustments and corrections were made to PHP error and warning alerts, along with small bug fixes. These changes do not impact the script's functionality. The files have been updated.

  • /admin/auth.php
  • /admin/login.php
  • /admin/inc/includes.php
  • /admin/inc/restrict.php
  • /admin/class/Messages.class.php
  • /admin/logout.php
  • /admin/modules/prompts/form.php
  • /admin/modules/prompts/index.php
  • /php/api.php
  • /php/clear-session.php
  • /inc/includes.php
  • /index.php
  • /_chat.php
  • /modules/customer/_customer-clear-session.php
  • /modules/customer/chat-session.php

07/28/2023

  • Suggestions for bot questions: This new feature will be integrated into the bot conversation interface, offering suggestions of questions users might ask the specific bot.
  • Function to display categories on the home page, complemented by icons.
  • Option to share a chat
  • VIP package option
  • Feature that allows you to select the number of categories displayed on the home page.
  • Maintenance mode: When enabling this mode, the site will be inaccessible to users, however, the administrator can still log in to perform tests and corrections.
  • Option in the administration panel to make the chat fill the entire screen width.
  • Sticky header: Possibility in the administration panel to activate the sticky header.
  • Overhaul of the settings: All options are now divided into tabs, and we have added an eye icon to show/hide sensitive passwords in the administrative panel.
  • Theme: A new card style option has been added for the presentation of bots, available in the themes menu.
  • Enhancements to the mobile chat interface, displaying available credits and the header.
  • Now it is possible to configure offensive words directly in the administration panel.
  • Feature to choose the number of bots displayed on the home page, with "load more" buttons.
  • Lazy loading in the bot images to optimize loading time.
  • Translation fields with Google Cloud API: Now the administrator can translate questions or the administration panel language using Google API, translating everything with just one click.
  • Option in the administration panel to insert custom JavaScript.
  • Option in the administration panel to insert custom CSS.
  • Option to show/hide dark mode, and option to enforce the use of dark mode.
  • Embedded chat: Option to share the bot conversation window on another site through an iframe.
  • New blog module, with features to write the post using the registered AI itself (chat gpt).
  • Option to display the type of model used in chat (gpt3 or gpt4) in the bot conversation window (optional).
  • Security improvements in the administration panel and for the user, now the login is done with token, IP, and browser agent check to enhance security (optional activation by the administrator).

In this update, modifications were made in a total of 88 files and 44 new files were added. Additionally, a database update was performed, including the addition of more than 30 new fields.

If you have the script with the old version and want to update, follow this tutorial:
https://documentation.polartemplates.com/aigency-saas/aigency-update-guide

If you don't have the old script and are going to perform a new installation, follow this tutorial:
https://documentation.polartemplates.com/aigency-saas/how-to-install-and-configure-the-aigency-saas


06/24/2023

  • We have added new features to the administration panel that allow you to hide or set a default value for the default language, voice tone, and writing mode of the prompt.
  • You can now also enjoy the dark mode in our application.
  • We have fixed a bug in the menu for the Arabic language, ensuring proper support for right-to-left (RTL) writing.

06/13/2023

The following new models have been added:

  • gpt-3.5-turbo-16k-0613: It has the same capabilities as the standard gpt-3.5-turbo model but with 4 times the context.
  • gpt-3.5-turbo-0613
  • gpt-4-0613
  • gpt-4-32k
  • gpt-4-32k-0613

06/05/2023

  • DALL-E has been added to Aigency SAAS (Now it's possible to save images in conversation threads, as well as configure the credit usage for images in the settings menu).
  • Now, the images do not expire and are stored in the public_html folder.
  • Settings in api.php to prevent maximum token errors per response.
  • bugs fix

06/02/2023

  • The collation of the database table has been changed to 'utf8mb4_unicode_ci' to prevent issues with languages such as Polish, Chinese, and others that have special characters.
  • The main.js file has been modified to fix microphone permission issues (line) 478.

05/28/2023

  • Added support with GPT4 model (Saas)
  • Language reading bug fix (Saas)

05/03/2023

The api.php file has been corrected to handle servers that did not have cors enabled or ran out of credits on the API. Now, the code displays an error message indicating what happened.


04/26/2023

  • Fixed Sarah Taylor's welcome message.
  • Made a small correction in the streamChat function to fix the display of error messages on some servers.

04/24/2023

A problem with the cancelSpeechSynthesis function that was failing in some browsers, specifically on line 1118 of the app.js file, has been fixed.


04/10/2023

Fix was performed on line 340 of the app.js file to correct the OpenAI error return when credits expire.


04/04/2023

  • It is now possible to select the output language when writing a message to the AI, with more than 210 languages available!
  • You can choose from over 50 different writing tones for the AI.
  • It is also possible to use over 40 available writing styles to be defined in the AI.

04/01/2023

  • The functionality to download conversations in PDF format has been implemented.
  • The issue related to special characters in German and other languages has been fixed.