Skip to content

Commit

Permalink
Updated to the latest the GPT-3 model and now using GPT-4o by default.
Browse files Browse the repository at this point in the history
Added missing strings to the translations (but to be translated).
Updated the default config file to account for new providers.
  • Loading branch information
JusticeRage committed Jun 7, 2024
1 parent 2525c60 commit 7e2aa5d
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 7 deletions.
28 changes: 24 additions & 4 deletions gepetto/config.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Gepetto]
MODEL = gpt-3.5-turbo-1106
MODEL = gpt-4o

# Specify the program language. It can be "fr_FR", "zh_CN", or any folder in locales. Defaults to English.
LANGUAGE =
Expand All @@ -8,11 +8,31 @@ LANGUAGE =
# Set your API key here, or put it in the OPENAI_API_KEY environment variable.
API_KEY =

# Set your OpenAI proxy here. It will be used for all protocols.
# Can also be provided via the OPENAI_BASE_URL environment variable.
# Example: OPENAI_PROXY = 127.0.0.1:7890
# Set your OpenAI proxy here. Example: OPENAI_PROXY = 127.0.0.1:7890
OPENAI_PROXY =

# Base URL if you want to redirect requests to a different / local model.
# Can also be provided via the OPENAI_BASE_URL environment variable.
# Leave blank unless you know what you are doing :)
BASE_URL =

[Groq]
# OPTIONAL, create a Groq account only if you want to use the LLaMA models.
# Set your API key here, or put it in the GROQ_API_KEY environment variable.
API_KEY =

# Set your Groq proxy here. It will be used for all protocols.
GROQ_PROXY =

# Base URL if you want to redirect requests to a different / local model.
# Can also be provided via the GROQ_BASE_URL environment variable.
BASE_URL =

[Together]
# Optional, create a Together account only if you want to use the Mistral models.
# Set your API key here, or put it in the TOGETHER_API_KEY environment variable.
API_KEY =

# Base URL if you want to redirect requests to a different / local model.
# Can also be provided via the TOGETHER_BASE_URL environment variable.
BASE_URL =
3 changes: 3 additions & 0 deletions gepetto/locales/ca_ES/LC_MESSAGES/gepetto.po
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,6 @@ msgstr "Sol·licitud enviada a {model}..."
msgid "Please edit the configuration file to insert your {api_provider} API key!"
msgstr ""
"Si us plau, editeu aquest script per inserir la vostra clau d'API de {api_provider}!"

msgid "Couldn't change model to {model}: {error}"
msgstr ""
3 changes: 3 additions & 0 deletions gepetto/locales/es_ES/LC_MESSAGES/gepetto.po
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,6 @@ msgstr "Solicitud enviada a {model}..."

msgid "Please edit the configuration file to insert your {api_provider} API key!"
msgstr "¡Edite este script para insertar su clave de API de {api_provider}!"

msgid "Couldn't change model to {model}: {error}"
msgstr ""
3 changes: 3 additions & 0 deletions gepetto/locales/it_IT/LC_MESSAGES/gepetto.po
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,6 @@ msgstr "Richiesta inviata a {model}..."

msgid "Please edit the configuration file to insert your {api_provider} API key!"
msgstr "Per favore, modifica lo script insendo la tua {api_provider} API key!"

msgid "Couldn't change model to {model}: {error}"
msgstr ""
3 changes: 3 additions & 0 deletions gepetto/locales/ko_KR/LC_MESSAGES/gepetto.po
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,6 @@ msgstr ""

msgid "Please edit the configuration file to insert your {api_provider} API key!"
msgstr ""

msgid "Couldn't change model to {model}: {error}"
msgstr ""
3 changes: 3 additions & 0 deletions gepetto/locales/ru/LC_MESSAGES/gepetto.po
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,6 @@ msgstr "Запрос к {model} отправлен..."
msgid "Please edit the configuration file to insert your {api_provider} API key!"
msgstr ""
"Пожалуйста, отредактируйте этот скрипт, чтобы добавить свой {api_provider} API ключ!"

msgid "Couldn't change model to {model}: {error}"
msgstr ""
3 changes: 3 additions & 0 deletions gepetto/locales/tr/LC_MESSAGES/gepetto.po
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,6 @@ msgstr "{model}'a istek gönderildi..."

msgid "Please edit the configuration file to insert your {api_provider} API key!"
msgstr "{api_provider} API anahtarınızı eklemek için lütfen bu betiği düzenleyin!"

msgid "Couldn't change model to {model}: {error}"
msgstr ""
3 changes: 3 additions & 0 deletions gepetto/locales/zh_CN/LC_MESSAGES/gepetto.po
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ msgstr ""

msgid "Please edit the configuration file to insert your {api_provider} API key!"
msgstr ""

msgid "Couldn't change model to {model}: {error}"
msgstr ""
2 changes: 2 additions & 0 deletions gepetto/locales/zh_TW/LC_MESSAGES/gepetto.po
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ msgstr "已向 {model} 送出請求"
msgid "Please edit the configuration file to insert your {api_provider} API key!"
msgstr "請編輯程式碼以新增您的 {api_provider} API 金鑰!"

msgid "Couldn't change model to {model}: {error}"
msgstr ""
6 changes: 3 additions & 3 deletions gepetto/models/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import abc

GPT3_MODEL_NAME = "gpt-3.5-turbo-1106"
GPT3_MODEL_NAME = "gpt-3.5-turbo-0125"
GPT4_MODEL_NAME = "gpt-4-turbo"
GPT4o_MODEL_NAME = "gpt-4o"
GROQ_MODEL_NAME = "llama3-70b-8192"
Expand Down Expand Up @@ -29,6 +29,6 @@ def get_model(model):
from gepetto.models.together import Together
return Together(model)
else:
print(f"Warning: {model} does not exist! Using default model ({GPT3_MODEL_NAME}).")
print(f"Warning: {model} does not exist! Using default model ({GPT4o_MODEL_NAME}).")
from gepetto.models.openai import GPT
return GPT(GPT3_MODEL_NAME)
return GPT(GPT4o_MODEL_NAME)

0 comments on commit 7e2aa5d

Please sign in to comment.