Skip to content

Commit

Permalink
Update optillm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
codelion committed Oct 5, 2024
1 parent 1d84b2f commit 575692f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optillm.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def proxy():
operation, approaches, model = parse_combined_approach(model, known_approaches, plugin_approaches)
logger.info(f'Using approach(es) {approaches}, operation {operation}, with model {model}')

if bearer_token != "" and bearer_token.startswith("sk-") and model.startswith("gpt"):
if bearer_token != "" and bearer_token.startswith("sk-"):
api_key = bearer_token
if base_url != "":
client = OpenAI(api_key=api_key, base_url=base_url)
Expand Down

0 comments on commit 575692f

Please sign in to comment.