Skip to content

Commit

Permalink
use apu key function
Browse files Browse the repository at this point in the history
  • Loading branch information
WaelKarkoub committed Mar 15, 2024
1 parent cf02c1a commit a250c3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def api_key():
def dalle_config() -> Dict[str, Any]:
config_list = openai_utils.config_list_from_models(model_list=["dall-e-2"], exclude="aoai")
if not config_list:
config_list = [{"model": "dall-e-2", "api_key": MOCK_OPEN_AI_API_KEY}]
config_list = [{"model": "dall-e-2", "api_key": api_key()}]
return {"config_list": config_list, "timeout": 120, "cache_seed": None}


Expand Down

0 comments on commit a250c3d

Please sign in to comment.