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.32k stars 130 forks source link

How to modify OpenAI API endpoint? #255

Open overheat opened 9 months ago

overheat commented 9 months ago

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

pwh-pwh commented 8 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