From d7d92ed881aab7e3c8abbbec7e36a6d54919f14c Mon Sep 17 00:00:00 2001 From: ThioJoe <12518330+ThioJoe@users.noreply.github.com> Date: Thu, 20 Jul 2023 18:30:42 -0700 Subject: [PATCH] Change default model, improve messaging Changes the default text model to gpt-3.5-turbo because everyone has access to it, unlike GPT-4. Also added additional clarification to error message if user does not have access to gpt-4 --- AIMemeGenerator.py | 7 ++++--- assets/settings_default.ini | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/AIMemeGenerator.py b/AIMemeGenerator.py index c2108bd..3ae4f33 100644 --- a/AIMemeGenerator.py +++ b/AIMemeGenerator.py @@ -3,7 +3,7 @@ # Creates start-to-finish memes using various AI service APIs. OpenAI's chatGPT to generate the meme text and image prompt, and several optional image generators for the meme picture. Then combines the meme text and image into a meme using Pillow. # Author: ThioJoe # Project Page: https://github.com/ThioJoe/Full-Stack-AI-Meme-Generator -version = "1.0.3" +version = "1.0.4" # Import installed libraries import openai @@ -770,8 +770,9 @@ def single_meme_generation_loop(): #if 'gpt-4' in str(irx): if str(irx) == "The model `gpt-4` does not exist": print(" (!) Note: This error actually means you do not have access to the GPT-4 model yet.") - print(" (!) You can see more about the current GPT-4 requirements here: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4") - print(" (!) Also ensure your country is supported: https://platform.openai.com/docs/supported-countries") + print(" (!) - You can see more about the current GPT-4 requirements here: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4") + print(" (!) - Also ensure your country is supported: https://platform.openai.com/docs/supported-countries") + print(" (!) - You can try the 'gpt-3.5-turbo' model instead. See more here: https://platform.openai.com/docs/models/overview)") else: print(" > Either the model name is incorrect, or you do not have access to it.") print(" > See this page to see the model names to use in the API: https://platform.openai.com/docs/models/overview") diff --git a/assets/settings_default.ini b/assets/settings_default.ini index bb27032..1eb78ac 100644 --- a/assets/settings_default.ini +++ b/assets/settings_default.ini @@ -17,8 +17,9 @@ Image_Special_Instructions = The images should be photographic. [AI Settings] # The model used by OpenAI to generate the text. - # Default and recommended is GPT-4. Other possible options include "gpt-3.5-turbo-16k" -Text_Model = gpt-4 + # Default is 'gpt-3.5-turbo' because everyone can access it. If you have access, GPT-4 is recommended. + # See this page for more info about the other models: https://platform.openai.com/docs/quickstart +Text_Model = gpt-3.5-turbo # Controls the randomness of the AI text generation. # Lowering results in less random completions. Higher temperature results in more random completions.