llm-chain icon indicating copy to clipboard operation
llm-chain copied to clipboard

How to modify OpenAI API endpoint?

Open overheat opened this issue 1 year ago • 1 comments

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

overheat avatar Jan 09 '24 00:01 overheat

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

pwh-pwh avatar Feb 01 '24 13:02 pwh-pwh