We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 476719c commit 23e48efCopy full SHA for 23e48ef
optillm.py
@@ -43,8 +43,13 @@
43
44
def get_config():
45
API_KEY = None
46
+ if os.environ.get("OPTILLM_API_KEY"):
47
+ # Use local inference engine
48
+ from optillm.inference import create_inference_client
49
+ API_KEY = os.environ.get("OPTILLM_API_KEY")
50
+ default_client = create_inference_client()
51
# OpenAI, Azure, or LiteLLM API configuration
- if os.environ.get("OPENAI_API_KEY"):
52
+ elif os.environ.get("OPENAI_API_KEY"):
53
API_KEY = os.environ.get("OPENAI_API_KEY")
54
base_url = server_config['base_url']
55
if base_url != "":
0 commit comments