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.36k stars 132 forks source link

How to modify OpenAI API endpoint? #255

Open overheat opened 10 months ago

overheat commented 10 months ago

We have a proxy for OpenAI API. How to modify OpenAI API endpoint?

pwh-pwh commented 9 months ago

he used async-openai crate as the openai api client.just set this environment variable OPENAI_API_BASE likeexport OPENAI_API_BASE="https://api.openai.com/v1". specific code reference https://github.com/64bit/async-openai/blob/main/async-openai/src/config.rs