theoforger / mastermind

An LLM-powered CLI tool to help you be a better spymaster in Codenames
GNU General Public License v3.0
3 stars 2 forks source link

[Feature] Multiple language models at once #16

Closed theoforger closed 1 month ago

theoforger commented 1 month ago

Description

Currently, the project only handles one output, therefore only allows one language model option. This issue requests support for multiple language models. The output should be an aggregated table of clues and their respective sources

Tasks

Expected Result

Run:

mastermind link.txt avoid.txt -m gemma2-9b-it mixtral-8x7b-32768

Output:

╭───────┬───────┬───────────────────────────────────┬────────────────────╮
│  Clue ┆ Count ┆       Linked Words                ┆       Source       │
╞═══════╪═══════╪═══════════════════════════════════╪════════════════════╡
│ bond  ┆   5   ┆ sound, penny, bee, walrus, tokyo  ┆ mixtral-8x7b-32768 │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ sound ┆   4   ┆ bond, bee, park, tokyo            ┆ mixtral-8x7b-32768 │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ park  ┆   3   ┆ scuba, walrus, hospital           ┆ gemma2-9b-it       │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ bond  ┆   3   ┆ bee, tokyo, penny                 ┆ gemma2-9b-it       │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ sound ┆   2   ┆ bee, walrus                       ┆ gemma2-9b-it       │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ large ┆   2   ┆ walrus, tokyo                     ┆ mixtral-8x7b-32768 │
╰───────┴───────┴───────────────────────────────────┴────────────────────╯
theoforger commented 1 month ago

Implemented by commit d6d8bfcc2a4e0116122fff0eca83a5412f5b1496