kyegomez / tree-of-thoughts

Plug in and Play Implementation of Tree of Thoughts: Deliberate Problem Solving with Large Language Models that Elevates Model Reasoning by atleast 70%
https://discord.gg/qUtxnK2NMf
Apache License 2.0
4.29k stars 361 forks source link

GPT3.5 and GPT4 Config #7

Closed kyegomez closed 1 year ago

kyegomez commented 1 year ago

Allow user to specify what model they want

model = optimizedlanguage(model="gpt4", api_key="ssk")

yhyu13 commented 1 year ago

There is a pr for this https://github.com/kyegomez/tree-of-thoughts/pull/6, you can then set api_model with gpt-4

This pr still WIP

[x] chatcompletion API handler & response handler [x] openai rate limiter