Skip to content

Commit

Permalink
Update (g4f/models.py g4f/Provider/Airforce.py g4f/Provider/__init__.…
Browse files Browse the repository at this point in the history
…py g4f/Provider/LLMPlayground.py)
  • Loading branch information
kqlio67 committed Nov 27, 2024
1 parent 0076928 commit 4182141
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion g4f/Provider/LLMPlayground.py → g4f/Provider/Airforce.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def split_message(message: str, max_length: int = 1000) -> list[str]:
chunks.append(message)
return chunks

class LLMPlayground(AsyncGeneratorProvider, ProviderModelMixin):
class Airforce(AsyncGeneratorProvider, ProviderModelMixin):
label = "LLM Playground"
url = "https://llmplayground.net"
api_endpoint_completions = "https://api.airforce/chat/completions"
Expand Down
2 changes: 1 addition & 1 deletion g4f/Provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .not_working import *
from .local import *

from .Airforce import Airforce
from .AmigoChat import AmigoChat
from .Blackbox import Blackbox
from .ChatGpt import ChatGpt
Expand All @@ -25,7 +26,6 @@
from .GizAI import GizAI
from .HuggingChat import HuggingChat
from .Liaobots import Liaobots
from .LLMPlayground import LLMPlayground
from .MagickPen import MagickPen
from .PerplexityLabs import PerplexityLabs
from .Pi import Pi
Expand Down
64 changes: 32 additions & 32 deletions g4f/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
HuggingChat,
HuggingFace,
Liaobots,
LLMPlayground,
Airforce,
MagickPen,
Mhystical,
MetaAI,
Expand Down Expand Up @@ -67,7 +67,7 @@ def __all__() -> list[str]:
Blackbox,
Free2GPT,
DeepInfraChat,
LLMPlayground,
Airforce,
ChatGptEs,
Cloudflare,
DarkAI,
Expand All @@ -85,32 +85,32 @@ def __all__() -> list[str]:
gpt_35_turbo = Model(
name = 'gpt-3.5-turbo',
base_provider = 'OpenAI',
best_provider = IterListProvider([LLMPlayground])
best_provider = IterListProvider([Airforce])
)

# gpt-4
gpt_4o = Model(
name = 'gpt-4o',
base_provider = 'OpenAI',
best_provider = IterListProvider([Blackbox, ChatGptEs, DarkAI, ChatGpt, AmigoChat, LLMPlayground, Liaobots, OpenaiChat])
best_provider = IterListProvider([Blackbox, ChatGptEs, DarkAI, ChatGpt, AmigoChat, Airforce, Liaobots, OpenaiChat])
)

gpt_4o_mini = Model(
name = 'gpt-4o-mini',
base_provider = 'OpenAI',
best_provider = IterListProvider([DDG, ChatGptEs, Pizzagpt, ChatGpt, AmigoChat, LLMPlayground, RubiksAI, MagickPen, Liaobots, OpenaiChat])
best_provider = IterListProvider([DDG, ChatGptEs, Pizzagpt, ChatGpt, AmigoChat, Airforce, RubiksAI, MagickPen, Liaobots, OpenaiChat])
)

gpt_4_turbo = Model(
name = 'gpt-4-turbo',
base_provider = 'OpenAI',
best_provider = IterListProvider([Liaobots, LLMPlayground])
best_provider = IterListProvider([Liaobots, Airforce])
)

gpt_4 = Model(
name = 'gpt-4',
base_provider = 'OpenAI',
best_provider = IterListProvider([DDG, Copilot, OpenaiChat, Liaobots, LLMPlayground])
best_provider = IterListProvider([DDG, Copilot, OpenaiChat, Liaobots, Airforce])
)

# o1
Expand Down Expand Up @@ -144,7 +144,7 @@ def __all__() -> list[str]:
llama_2_7b = Model(
name = "llama-2-7b",
base_provider = "Meta Llama",
best_provider = IterListProvider([Cloudflare, LLMPlayground])
best_provider = IterListProvider([Cloudflare, Airforce])
)
# llama 3
llama_3_8b = Model(
Expand All @@ -157,13 +157,13 @@ def __all__() -> list[str]:
llama_3_1_8b = Model(
name = "llama-3.1-8b",
base_provider = "Meta Llama",
best_provider = IterListProvider([Blackbox, DeepInfraChat, Cloudflare, LLMPlayground, PerplexityLabs])
best_provider = IterListProvider([Blackbox, DeepInfraChat, Cloudflare, Airforce, PerplexityLabs])
)

llama_3_1_70b = Model(
name = "llama-3.1-70b",
base_provider = "Meta Llama",
best_provider = IterListProvider([DDG, DeepInfraChat, Blackbox, TeachAnything, DarkAI, LLMPlayground, RubiksAI, HuggingChat, HuggingFace, PerplexityLabs])
best_provider = IterListProvider([DDG, DeepInfraChat, Blackbox, TeachAnything, DarkAI, Airforce, RubiksAI, HuggingChat, HuggingFace, PerplexityLabs])
)

llama_3_1_405b = Model(
Expand Down Expand Up @@ -227,13 +227,13 @@ def __all__() -> list[str]:
hermes_2_dpo = Model(
name = "hermes-2-dpo",
base_provider = "NousResearch",
best_provider = LLMPlayground
best_provider = Airforce
)

hermes_2_pro = Model(
name = "hermes-2-pro",
base_provider = "NousResearch",
best_provider = LLMPlayground
best_provider = Airforce
)

hermes_3 = Model(
Expand All @@ -245,14 +245,14 @@ def __all__() -> list[str]:
mixtral_8x7b_dpo = Model(
name = "mixtral-8x7b-dpo",
base_provider = "NousResearch",
best_provider = IterListProvider([AmigoChat, LLMPlayground])
best_provider = IterListProvider([AmigoChat, Airforce])
)

### Microsoft ###
phi_2 = Model(
name = "phi-2",
base_provider = "Microsoft",
best_provider = IterListProvider([LLMPlayground])
best_provider = IterListProvider([Airforce])
)

phi_3_5_mini = Model(
Expand Down Expand Up @@ -407,7 +407,7 @@ def __all__() -> list[str]:
deepseek_coder = Model(
name = 'deepseek-coder',
base_provider = 'DeepSeek',
best_provider = LLMPlayground
best_provider = Airforce
)

### WizardLM ###
Expand All @@ -428,7 +428,7 @@ def __all__() -> list[str]:
openchat_3_5 = Model(
name = 'openchat-3.5',
base_provider = 'OpenChat',
best_provider = LLMPlayground
best_provider = Airforce
)


Expand Down Expand Up @@ -477,36 +477,36 @@ def __all__() -> list[str]:
openhermes_2_5 = Model(
name = 'openhermes-2.5',
base_provider = 'Teknium',
best_provider = LLMPlayground
best_provider = Airforce
)

### Liquid ###
lfm_40b = Model(
name = 'lfm-40b',
base_provider = 'Liquid',
best_provider = IterListProvider([LLMPlayground, PerplexityLabs])
best_provider = IterListProvider([Airforce, PerplexityLabs])
)


### DiscoResearch ###
german_7b = Model(
name = 'german-7b',
base_provider = 'DiscoResearch',
best_provider = LLMPlayground
best_provider = Airforce
)

### HuggingFaceH4 ###
zephyr_7b = Model(
name = 'zephyr-7b',
base_provider = 'HuggingFaceH4',
best_provider = LLMPlayground
best_provider = Airforce
)

### Inferless ###
neural_7b = Model(
name = 'neural-7b',
base_provider = 'inferless',
best_provider = LLMPlayground
best_provider = Airforce
)

### Gryphe ###
Expand Down Expand Up @@ -541,7 +541,7 @@ def __all__() -> list[str]:
any_uncensored = Model(
name = 'any-uncensored',
base_provider = 'llmplayground.net',
best_provider = LLMPlayground
best_provider = Airforce
)

#############
Expand All @@ -552,7 +552,7 @@ def __all__() -> list[str]:
sdxl = Model(
name = 'sdxl',
base_provider = 'Stability AI',
best_provider = IterListProvider([ReplicateHome, LLMPlayground])
best_provider = IterListProvider([ReplicateHome, Airforce])

)

Expand All @@ -576,13 +576,13 @@ def __all__() -> list[str]:
flux = Model(
name = 'flux',
base_provider = 'Flux AI',
best_provider = IterListProvider([Blackbox, LLMPlayground])
best_provider = IterListProvider([Blackbox, Airforce])
)

flux_pro = Model(
name = 'flux-pro',
base_provider = 'Flux AI',
best_provider = LLMPlayground
best_provider = Airforce
)

flux_dev = Model(
Expand All @@ -594,37 +594,37 @@ def __all__() -> list[str]:
flux_realism = Model(
name = 'flux-realism',
base_provider = 'Flux AI',
best_provider = IterListProvider([LLMPlayground, AmigoChat])
best_provider = IterListProvider([Airforce, AmigoChat])
)

flux_anime = Model(
name = 'flux-anime',
base_provider = 'Flux AI',
best_provider = LLMPlayground
best_provider = Airforce
)

flux_3d = Model(
name = 'flux-3d',
base_provider = 'Flux AI',
best_provider = LLMPlayground
best_provider = Airforce
)

flux_disney = Model(
name = 'flux-disney',
base_provider = 'Flux AI',
best_provider = LLMPlayground
best_provider = Airforce
)

flux_pixel = Model(
name = 'flux-pixel',
base_provider = 'Flux AI',
best_provider = LLMPlayground
best_provider = Airforce
)

flux_4o = Model(
name = 'flux-4o',
base_provider = 'Flux AI',
best_provider = LLMPlayground
best_provider = Airforce
)

### OpenAI ###
Expand All @@ -645,7 +645,7 @@ def __all__() -> list[str]:
any_dark = Model(
name = 'any-dark',
base_provider = 'Other',
best_provider = LLMPlayground
best_provider = Airforce
)

class ModelUtils:
Expand Down

0 comments on commit 4182141

Please sign in to comment.