Skip to content

Commit

Permalink
The DarkAI provider is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kqlio67 committed Feb 3, 2025
1 parent de3a710 commit c3e4a7c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 28 deletions.
7 changes: 2 additions & 5 deletions docs/providers-and-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ This document provides an overview of various AI providers and models, including
|[chatgptt.me](https://chatgptt.me)|No auth required|`g4f.Provider.ChatGptt`|`gpt-4, gpt-4o, gpt-4o-mini`||||![](https://img.shields.io/badge/Active-brightgreen)|
|[playground.ai.cloudflare.com](https://playground.ai.cloudflare.com)|[Automatic cookies](https://playground.ai.cloudflare.com)|`g4f.Provider.Cloudflare`|`llama-2-7b, llama-3-8b, llama-3.1-8b, llama-3.2-1b, qwen-1.5-7b`||||![Error](https://img.shields.io/badge/Active-brightgreen)||
|[copilot.microsoft.com](https://copilot.microsoft.com)|Optional API key|`g4f.Provider.Copilot`|`gpt-4, gpt-4o`||||![](https://img.shields.io/badge/Active-brightgreen)|
|[darkai.foundation](https://darkai.foundation)|No auth required|`g4f.Provider.DarkAI`|`gpt-3.5-turbo, gpt-4o, llama-3.1-70b`||||![](https://img.shields.io/badge/Active-brightgreen)|
|[duckduckgo.com/aichat](https://duckduckgo.com/aichat)|No auth required|`g4f.Provider.DDG`|`gpt-4, gpt-4o-mini, claude-3-haiku, llama-3.1-70b, mixtral-8x7b`||||![](https://img.shields.io/badge/Active-brightgreen)|
|[deepinfra.com/chat](https://deepinfra.com/chat)|No auth required|`g4f.Provider.DeepInfraChat`|`llama-3.1-8b, llama-3.1-70b, deepseek-chat, qwq-32b, wizardlm-2-8x22b, wizardlm-2-7b, qwen-2.5-72b, qwen-2.5-coder-32b, nemotron-70b`||||![](https://img.shields.io/badge/Active-brightgreen)|
|[chat10.free2gpt.xyz](https://chat10.free2gpt.xyz)|No auth required|`g4f.Provider.Free2GPT`|`mistral-7b`||||![](https://img.shields.io/badge/Active-brightgreen)|
Expand Down Expand Up @@ -125,10 +124,8 @@ This document provides an overview of various AI providers and models, including
### Text Models
| Model | Base Provider | Providers | Website |
|-------|---------------|-----------|---------|
|gpt-3|OpenAI|1+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-3-5-turbo)|
|gpt-3.5-turbo|OpenAI|1+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-3-5-turbo)|
|gpt-4|OpenAI|10+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4)|
|gpt-4o|OpenAI|8+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-4o)|
|gpt-4o|OpenAI|7+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-4o)|
|gpt-4o-mini|OpenAI|9+ Providers|[platform.openai.com](https://platform.openai.com/docs/models/gpt-4o-mini)|
|o1|OpenAI|1+ Providers|[openai.com](https://openai.com/index/introducing-openai-o1-preview/)|
|o1-preview|OpenAI|1+ Providers|[openai.com](https://openai.com/index/introducing-openai-o1-preview/)|
Expand All @@ -140,7 +137,7 @@ This document provides an overview of various AI providers and models, including
|llama-3-8b|Meta Llama|2+ Providers|[ai.meta.com](https://ai.meta.com/blog/meta-llama-3/)|
|llama-3-70b|Meta Llama|1+ Providers|[huggingface.co](https://huggingface.co/meta-llama/Meta-Llama-3-70B)|
|llama-3.1-8b|Meta Llama|7+ Providers|[ai.meta.com](https://ai.meta.com/blog/meta-llama-3-1/)|
|llama-3.1-70b|Meta Llama|6+ Providers|[ai.meta.com](https://ai.meta.com/blog/meta-llama-3-1/)|
|llama-3.1-70b|Meta Llama|5+ Providers|[ai.meta.com](https://ai.meta.com/blog/meta-llama-3-1/)|
|llama-3.1-405b|Meta Llama|2+ Providers|[huggingface.co](https://huggingface.co/meta-llama/Llama-3.1-405B)|
|llama-3.2-1b|Meta Llama|1+ Providers|[huggingface.co](https://huggingface.co/meta-llama/Llama-3.2-1B)|
|llama-3.2-3b|Meta Llama|1+ Providers|[huggingface.co](https://huggingface.co/meta-llama/Llama-3.2-3B)|
Expand Down
1 change: 0 additions & 1 deletion g4f/Provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from .ChatGptt import ChatGptt
from .Cloudflare import Cloudflare
from .Copilot import Copilot
from .DarkAI import DarkAI
from .DDG import DDG
from .DeepInfraChat import DeepInfraChat
from .Free2GPT import Free2GPT
Expand Down
11 changes: 6 additions & 5 deletions g4f/Provider/DarkAI.py → g4f/Provider/not_working/DarkAI.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
import json
from aiohttp import ClientSession, ClientTimeout, StreamReader

from ..typing import AsyncResult, Messages
from ..requests.raise_for_status import raise_for_status
from .base_provider import AsyncGeneratorProvider, ProviderModelMixin
from .helper import format_prompt
from ...typing import AsyncResult, Messages
from ...requests.raise_for_status import raise_for_status
from ..base_provider import AsyncGeneratorProvider, ProviderModelMixin
from ..helper import format_prompt

class DarkAI(AsyncGeneratorProvider, ProviderModelMixin):
url = "https://darkai.foundation/chat"
api_endpoint = "https://darkai.foundation/chat"
working = True

working = False
supports_stream = True

default_model = 'llama-3-70b'
Expand Down
1 change: 1 addition & 0 deletions g4f/Provider/not_working/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from .Chatgpt4o import Chatgpt4o
from .Chatgpt4Online import Chatgpt4Online
from .ChatgptFree import ChatgptFree
from .DarkAI import DarkAI
from .FlowGpt import FlowGpt
from .FreeNetfly import FreeNetfly
from .Koala import Koala
Expand Down
19 changes: 2 additions & 17 deletions g4f/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
ChatGptt,
Cloudflare,
Copilot,
DarkAI,
DDG,
DeepInfraChat,
HuggingSpace,
Expand Down Expand Up @@ -87,7 +86,6 @@ class VisionModel(Model):
Jmuz,
CablyAI,
OIVSCode,
DarkAI,
OpenaiChat,
Cloudflare,
])
Expand All @@ -113,13 +111,6 @@ class VisionModel(Model):
###################

### OpenAI ###
# gpt-3.5
gpt_35_turbo = Model(
name = 'gpt-3.5-turbo',
base_provider = 'OpenAI',
best_provider = DarkAI
)

# gpt-4
gpt_4 = Model(
name = 'gpt-4',
Expand All @@ -131,7 +122,7 @@ class VisionModel(Model):
gpt_4o = VisionModel(
name = 'gpt-4o',
base_provider = 'OpenAI',
best_provider = IterListProvider([ChatGptt, Jmuz, ChatGptEs, PollinationsAI, DarkAI, Copilot, Liaobots, OpenaiChat])
best_provider = IterListProvider([ChatGptt, Jmuz, ChatGptEs, PollinationsAI, Copilot, Liaobots, OpenaiChat])
)

gpt_4o_mini = Model(
Expand Down Expand Up @@ -209,7 +200,7 @@ class VisionModel(Model):
llama_3_1_70b = Model(
name = "llama-3.1-70b",
base_provider = "Meta Llama",
best_provider = IterListProvider([DDG, Blackbox, Glider, Jmuz, TeachAnything, DarkAI])
best_provider = IterListProvider([DDG, Blackbox, Glider, Jmuz, TeachAnything])
)

llama_3_1_405b = Model(
Expand Down Expand Up @@ -608,12 +599,6 @@ class ModelUtils:
############

### OpenAI ###
# gpt-3
'gpt-3': gpt_35_turbo,

# gpt-3.5
gpt_35_turbo.name: gpt_35_turbo,

# gpt-4
gpt_4.name: gpt_4,

Expand Down

0 comments on commit c3e4a7c

Please sign in to comment.