Skip to content

Commit

Permalink
update default gpt-3.5-turbo models
Browse files Browse the repository at this point in the history
by default, only OpenAI was enabled, more models enable for more flexibility.

new provider `Koala` added, to watch out as it could be unstable.
  • Loading branch information
xtekky committed Apr 12, 2024
1 parent 0b712c2 commit a107d3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions g4f/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def create(
ignore_working,
ignore_stream,
)

stop = [stop] if isinstance(stop, str) else stop
response = provider.create_completion(
model, messages,
Expand Down
10 changes: 8 additions & 2 deletions g4f/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dataclasses import dataclass

from .Provider import RetryProvider, ProviderType
from .Provider import (
from .Provider import (
Chatgpt4Online,
PerplexityLabs,
GeminiProChat,
Expand All @@ -19,6 +19,7 @@
Llama2,
Vercel,
Gemini,
Koala,
Bing,
You,
Pi,
Expand Down Expand Up @@ -71,7 +72,12 @@ def __all__() -> list[str]:
gpt_35_turbo = Model(
name = 'gpt-3.5-turbo',
base_provider = 'openai',
best_provider = OpenaiChat
best_provider = RetryProvider([
FreeGpt,
You,
ChatgptNext,
Koala,
])
)

gpt_4 = Model(
Expand Down

0 comments on commit a107d3f

Please sign in to comment.