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

Home Page:https://llm-chain.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to modify OpenAI API endpoint?

overheat opened this issue · comments

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

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