Skip to content

Commit 3103361

Browse files
committed
debugging and fixing pyright errors
1 parent ba2c641 commit 3103361

16 files changed

+1492
-99
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ For formatting and linting use:
2727
```bash
2828
uv run ruff format
2929
uv run ruff check
30+
uv run pyright
3031
```
3132

3233
### OpenAI API Key
@@ -47,11 +48,14 @@ uv run python -m tests.models
4748
```
4849

4950
This will generate two `json` files in a `data` folder within the root directory.
50-
To trim this list down to models that work correctly, run:
51+
Note that free models are subject to the following rate limits:
5152

52-
```bash
53-
uv run python -m tests.working_models
54-
```
53+
* 20 requests per minute.
54+
* 200 requests per day.
55+
56+
All models should function correctly, in principle, but some models may return errors.
57+
If you wish to trim the list of free models down to working models, you can run the `tests/working_models.py` script.
58+
Note, however, that this will bring you closer to the daily rate limit on the free models since there are around 27 models listed as free.
5559

5660
The two main endpoints for interacting with the models are:
5761

@@ -75,6 +79,7 @@ uv run python -m tests.chat_completion --mode default
7579

7680
When running the `default` mode, a set of predefined prompts will be used.
7781
In the `interactive` mode you can manually enter new `user` prompts, with any previous model responses being kept as `assistant` responses.
82+
To exit the `interactive` mode simply write `exit`.
7883

7984
## Consensus Learning
8085

@@ -97,7 +102,7 @@ The input parameters for running a single-node multi-model instance of Consensus
97102
Once the `src/input.json` file is set, to run the algorithm use:
98103

99104
```bash
100-
uv run python -m src.main
105+
uv run start-consensus
101106
```
102107

103108
## References and Potential Directions

data/final_consensus.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/data/chat_response.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@
66
},
77
{
88
"role": "user",
9-
"content": "Who is the second best Pokemon trainer in the original 'Pokemon the Series'?"
9+
"content": "Who is the second best Pokemon trainerin the original 'Pokemon the Series'?"
1010
},
1111
{
1212
"role": "assistant",
13-
"content": "The second best Pokemon trainer in the original 'Pokemon the Series' is Brock. He is known for his expertise in rock-type Pokemon and his role as the leader of the Pokemon Gym in Pewter City."
13+
"content": "The second best Pokemon trainer in the original \"Pokemon the Series\" is Brock. He is known for his expertise in rock-type Pokemon and his role as the leader of the Pokemon Gym in Pewter City."
1414
},
1515
{
1616
"role": "user",
1717
"content": "Can you improve on your previous answers with more precise arguments?"
1818
},
1919
{
2020
"role": "assistant",
21-
"content": "Certainly! In the original 'Pokemon the Series', Brock is the second best Pokemon trainer. He is known for his exceptional knowledge and skills in rock-type Pokemon, which he has honed through his role as the leader of the Pewter City Gym. His dedication to Pokemon and his ability to train and battle with rock-type Pokemon make him a formidable opponent and a respected figure in the world of Pokemon."
21+
"content": "Certainly! In the original \"Pokemon the Series,\" Brock is widely recognized as the second best trainer due to his exceptional skills and dedication to the art of Pokemon training. Here are some precise arguments that support this claim:\n\n1. **Expertise in Rock-type Pokemon**: Brock is known for his mastery of rock-type Pokemon, which is a significant advantage in the world of Pokemon. His knowledge and experience in this area have made him a formidable opponent in battles.\n\n2. **Leadership in Pewter City**: As the leader of the Pewter City Gym, Brock has demonstrated his ability to train and lead Pokemon effectively. His gym is one of the toughest in the region, and he has successfully defended it against numerous challenges.\n\n3. **Competitive Spirit**: Brock's competitive spirit and determination to win battles are evident throughout the series. He has consistently shown a willingness to push himself and his Pokemon to their limits, which is a hallmark of a great trainer.\n\n4. **Team Composition**: Brock's team is well-rounded and includes a variety of Pokemon, which showcases his ability to train and utilize different types of Pokemon effectively. This versatility is crucial in the dynamic world of Pokemon battles.\n\n5. **Influence on the Series**: Brock's character has had a significant impact on the series, influencing the development of other characters and the overall narrative. His presence in the series has added depth and realism to the world of Pokemon.\n\nIn summary, Brock's expertise, leadership, competitive spirit, team composition, and influence on the series collectively make him the second best trainer in the original \"Pokemon the Series.\""
2222
},
2323
{
2424
"role": "user",
2525
"content": "Can you improve on your previous answers with more precise arguments?"
2626
},
2727
{
2828
"role": "assistant",
29-
"content": "Brock is the second best Pokemon trainer in the original 'Pokemon the Series' because of his exceptional skills and knowledge in rock-type Pokemon. He is the leader of the Pewter City Gym and has a deep understanding of rock-type Pokemon, which he has honed through years of training and battle. His dedication to Pokemon and his ability to train and battle with rock-type Pokemon make him a formidable opponent and a respected figure in the world of Pokemon."
29+
"content": "Certainly! Here are more precise arguments to support the claim that Brock is the second best trainer in the original \"Pokemon the Series\":\n\n1. **Rock-type Mastery**: Brock's specialization in rock-type Pokemon is unparalleled. His knowledge of rock moves and strategies is extensive, making him a formidable opponent in battles. His ability to counter and exploit the weaknesses of other Pokemon types is a testament to his expertise.\n\n2. **Gym Leader**: As the leader of the Pewter City Gym, Brock has demonstrated his ability to train and lead Pokemon effectively. His gym is one of the toughest in the region, and he has successfully defended it against numerous challenges, showcasing his strategic prowess and the strength of his team.\n\n3. **Competitive Spirit**: Brock's competitive spirit and determination to win battles are evident throughout the series. He has consistently shown a willingness to push himself and his Pokemon to their limits, which is a hallmark of a great trainer. His unwavering commitment to victory has inspired many other trainers in the series.\n\n4. **Team Composition**: Brock's team is well-rounded and includes a variety of Pokemon, which showcases his ability to train and utilize different types of Pokemon effectively. This versatility is crucial in the dynamic world of Pokemon battles, where a well-balanced team can adapt to various situations and strategies.\n\n5. **Influence on the Series**: Brock's character has had a significant impact on the series, influencing the development of other characters and the overall narrative. His presence in the series has added depth and realism to the world of Pokemon, making him a beloved and influential figure among fans.\n\nIn conclusion, Brock's expertise in rock-type Pokemon, his leadership as a Gym leader, his competitive spirit, his well-rounded team, and his influence on the series collectively make him the second best trainer in the original \"Pokemon the Series.\""
3030
}
3131
]
3232
}

0 commit comments

Comments
 (0)