Skip to content

Commit

Permalink
Change default model, improve messaging
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ThioJoe committed Jul 21, 2023
1 parent 8a0b532 commit d7d92ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions AIMemeGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down
5 changes: 3 additions & 2 deletions assets/settings_default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d7d92ed

Please sign in to comment.