llama_index
llama_index copied to clipboard
how charge openai api url
my app connect by proxy to openai, so the openai addres not api.openai.com. how charge it ?
Just set the OPENAI_API_BASE environment variable like this
OPENAI_API_BASE = 'https://domain.com/api'
Just set the
OPENAI_API_BASEenvironment variable like thisOPENAI_API_BASE = 'https://domain.com/api'
I tried it and it doesn't seem to work
Duplicate of https://github.com/jerryjliu/llama_index/issues/640
It works by setting env vars, but the env var has to be set before importing llama_index libs