sobelio / llm-chain

`llm-chain` is a powerful rust crate for building chains in large language models allowing you to summarise text and complete complex tasks
https://llm-chain.xyz
MIT License
1.35k stars 130 forks source link

chore(openai): add all openai models to Model enum #136

Closed joshka closed 1 year ago

joshka commented 1 year ago

Use https://crates.io/crates/strum for the FromStr implementation, and include a few useful overrides that make it easy to specify a model from a user provided string.

Note: strum contains a ToString implementation too, but it doesn't currently handle writing the contents of a default Tuple-like enum (Model::Other(String)), but there is a PR for fixing that at:

joshka commented 1 year ago
image
joshka commented 1 year ago

Thanks :)