Skip to content

Commit

Permalink
all gpt-4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Mar 16, 2024
1 parent f20bd1d commit a0e7122
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cortext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


# version must stay on line 22
__version__ = "3.2.8"
__version__ = "3.2.9"
version_split = __version__.split(".")
__spec_version__ = (
(1000 * int(version_split[0]))
Expand Down
1 change: 1 addition & 0 deletions test_scripts/t2t/test_claude.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ async def call_claude(messages, max_tokens, model):
# Send final message to close the stream
print("\n")


# non streaming
# async def call_claude(messages, max_tokens, model):
# filtered_messages = []
Expand Down
8 changes: 4 additions & 4 deletions validators/text_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def start_query(self, available_uids, metagraph) -> tuple[list, dict]:
query_tasks = []
uid_to_question = {}
# Randomly choose the provider based on specified probabilities
providers = ["OpenAI"] * 70 + ["Anthropic"] * 0 + ["Gemini"] * 0 + ["Claude"] * 30
providers = ["OpenAI"] * 100 + ["Anthropic"] * 0 + ["Gemini"] * 0 + ["Claude"] * 0
self.provider = random.choice(providers)

if self.provider == "Anthropic":
Expand All @@ -86,8 +86,8 @@ async def start_query(self, available_uids, metagraph) -> tuple[list, dict]:
# gemini models = ["gemini-pro"]
self.model = "anthropic.claude-v2:1"
elif self.provider == "OpenAI":
# self.model = "gpt-4-1106-preview"
self.model = "gpt-3.5-turbo"
self.model = "gpt-4-1106-preview"
# self.model = "gpt-3.5-turbo"

elif self.provider == "Gemini":
self.model = "gemini-pro"
Expand Down Expand Up @@ -118,7 +118,7 @@ async def start_query(self, available_uids, metagraph) -> tuple[list, dict]:

def should_i_score(self):
random_number = random.random()
will_score_all = random_number < 1 / 2
will_score_all = random_number < 1 / 12
bt.logging.info(f"Random Number: {random_number}, Will score text responses: {will_score_all}")
return will_score_all

Expand Down

0 comments on commit a0e7122

Please sign in to comment.