summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-02-05 14:47:23 +0100
committerGitHub <noreply@github.com>2024-02-05 14:47:23 +0100
commitdf48d1cc4215ef3d9658dc51309e90a36b92f78d (patch)
treeafb288183f6f6a5a12c5b58c976c59e68b8551b2
parentMerge pull request #1550 from RasyiidWho/main (diff)
parentAdded CodeLlama 70b (diff)
downloadgpt4free-0.2.1.0.tar
gpt4free-0.2.1.0.tar.gz
gpt4free-0.2.1.0.tar.bz2
gpt4free-0.2.1.0.tar.lz
gpt4free-0.2.1.0.tar.xz
gpt4free-0.2.1.0.tar.zst
gpt4free-0.2.1.0.zip
-rw-r--r--g4f/models.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/g4f/models.py b/g4f/models.py
index e58ccef2..dd8e175d 100644
--- a/g4f/models.py
+++ b/g4f/models.py
@@ -123,6 +123,12 @@ codellama_34b_instruct = Model(
best_provider = RetryProvider([HuggingChat, PerplexityLabs, DeepInfra])
)
+codellama_70b_instruct = Model(
+ name = "codellama/CodeLlama-70b-Instruct-hf",
+ base_provider = "huggingface",
+ best_provider = DeepInfra
+)
+
# Mistral
mixtral_8x7b = Model(
name = "mistralai/Mixtral-8x7B-Instruct-v0.1",
@@ -256,6 +262,7 @@ class ModelUtils:
'llama2-13b': llama2_13b,
'llama2-70b': llama2_70b,
'codellama-34b-instruct': codellama_34b_instruct,
+ 'codellama-70b-instruct': codellama_70b_instruct,
'mixtral-8x7b': mixtral_8x7b,
'mistral-7b': mistral_7b,
@@ -270,4 +277,4 @@ class ModelUtils:
'pi': pi
}
-_all_models = list(ModelUtils.convert.keys()) \ No newline at end of file
+_all_models = list(ModelUtils.convert.keys())