Skip to content

Commit

Permalink
Disabled provider 'GPROChat'
Browse files Browse the repository at this point in the history
  • Loading branch information
kqlio67 committed Feb 3, 2025
1 parent c3e4a7c commit 197f491
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/providers-and-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ This document provides an overview of various AI providers and models, including
|gemini|Google DeepMind|1+|[deepmind.google](http://deepmind.google/technologies/gemini/)|
|gemini-exp|Google DeepMind|1+ Providers|[blog.google](https://blog.google/feed/gemini-exp-1206/)|
|gemini-1.5-flash|Google DeepMind|5+ Providers|[deepmind.google](https://deepmind.google/technologies/gemini/flash/)|
|gemini-1.5-pro|Google DeepMind|6+ Providers|[deepmind.google](https://deepmind.google/technologies/gemini/pro/)|
|gemini-1.5-pro|Google DeepMind|5+ Providers|[deepmind.google](https://deepmind.google/technologies/gemini/pro/)|
|gemini-2.0-flash|Google DeepMind|2+ Providers|[deepmind.google](https://deepmind.google/technologies/gemini/flash/)|
|gemini-2.0-flash-thinking|Google DeepMind|1+ Providers|[ai.google.dev](https://ai.google.dev/gemini-api/docs/thinking-mode)|
|claude-3-haiku|Anthropic|2+ Providers|[anthropic.com](https://www.anthropic.com/news/claude-3-haiku)|
Expand Down
1 change: 0 additions & 1 deletion g4f/Provider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from .FreeGpt import FreeGpt
from .GizAI import GizAI
from .Glider import Glider
from .GPROChat import GPROChat
from .ImageLabs import ImageLabs
from .Jmuz import Jmuz
from .Liaobots import Liaobots
Expand Down
17 changes: 4 additions & 13 deletions g4f/Provider/GPROChat.py → g4f/Provider/not_working/GPROChat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
import hashlib
from aiohttp import ClientSession

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

class GPROChat(AsyncGeneratorProvider, ProviderModelMixin):
url = "https://gprochat.com"
api_endpoint = "https://gprochat.com/api/generate"

working = True
working = False
supports_stream = True
supports_message_history = True
default_model = 'gemini-1.5-pro'
Expand All @@ -24,15 +24,6 @@ def generate_signature(timestamp: int, message: str) -> str:
signature = hashlib.sha256(hash_input.encode('utf-8')).hexdigest()
return signature

@classmethod
def get_model(cls, model: str) -> str:
if model in cls.models:
return model
elif model in cls.model_aliases:
return cls.model_aliases[model]
else:
return cls.default_model

@classmethod
async def create_async_generator(
cls,
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 @@ -13,6 +13,7 @@
from .DarkAI import DarkAI
from .FlowGpt import FlowGpt
from .FreeNetfly import FreeNetfly
from .GPROChat import GPROChat
from .Koala import Koala
from .MagickPen import MagickPen
from .MyShell import MyShell
Expand Down
3 changes: 1 addition & 2 deletions g4f/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
DeepInfraChat,
HuggingSpace,
Glider,
GPROChat,
ImageLabs,
Jmuz,
Liaobots,
Expand Down Expand Up @@ -314,7 +313,7 @@ class VisionModel(Model):
gemini_1_5_pro = Model(
name = 'gemini-1.5-pro',
base_provider = 'Google DeepMind',
best_provider = IterListProvider([Blackbox, Jmuz, GPROChat, Gemini, GeminiPro, Liaobots])
best_provider = IterListProvider([Blackbox, Jmuz, Gemini, GeminiPro, Liaobots])
)

# gemini-2.0
Expand Down

0 comments on commit 197f491

Please sign in to comment.