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.18k stars 353 forks source link

how to use my own base url for openai API? #5

Closed Clearave closed 1 year ago

Clearave commented 1 year ago

How to customize the base URL when calling the OpenAI API?

yhyu13 commented 1 year ago

There is a pr on this https://github.com/kyegomez/tree-of-thoughts/pull/6

yhyu13 commented 1 year ago

@Clearave that pr was merged, you can set by OPENAI_API_BASE="https://api.openai.com/v1" or pass that variable as api_base into model argument