Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Update model providers
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-victor committed Jul 29, 2023
1 parent 557c151 commit 777dad4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions client/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
<div class="buttons">
<div class="field">
<select class="dropdown" name="model" id="model">
<option value="gpt-3.5-turbo" selected>GPT-3.5</option>
<option value="gpt-3.5-turbo">GPT-3.5</option>
<option value="gpt-3.5-turbo-16k">GPT-3.5-turbo-16k</option>
<option value="gpt-4">GPT-4</option>
<option value="gpt-4" selected>GPT-4</option>
</select>
</div>
<div class="field">
Expand Down
8 changes: 2 additions & 6 deletions g4f/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class model:
class gpt_35_turbo:
name: str = 'gpt-3.5-turbo'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.DeepAi
best_provider: Provider.Provider = Provider.AiService

class gpt_35_turbo_0613:
name: str = 'gpt-3.5-turbo-0613'
Expand All @@ -30,7 +30,7 @@ class gpt_35_turbo_16k_0613:
class gpt_35_turbo_16k:
name: str = 'gpt-3.5-turbo-16k'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Ezcht
best_provider: Provider.Provider = Provider.ChatFree

class gpt_4_dev:
name: str = 'gpt-4-for-dev'
Expand Down Expand Up @@ -163,10 +163,6 @@ class palm:
base_provider: str = 'google'
best_provider: Provider.Provider = Provider.Bard

""" 'falcon-40b': Model.falcon_40b,
'falcon-7b': Model.falcon_7b,
'llama-13b': Model.llama_13b,"""

class falcon_40b:
name: str = 'falcon-40b'
base_provider: str = 'huggingface'
Expand Down
1 change: 0 additions & 1 deletion server/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def _conversation(self):
# Generate response
response = ChatCompletion.create(
model=model,
stream=True,
chatId=conversation_id,
messages=messages
)
Expand Down

0 comments on commit 777dad4

Please sign in to comment.