You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(These APIs are experimental and may change in the future.)
181
180
Args:
182
181
max_actions_per_step (int): the maximum number of actions that the optimizer can take in one step.
183
-
config_file_or_env: path or environment of the OpenAI api configs.
184
-
config_file_location: the location of the OpenAI config file.
182
+
llm_config (dict): llm inference configuration.
183
+
Please refer to [OpenAIWrapper.create](/docs/reference/oai/client#create) for available options.
184
+
When using OpenAI or Azure OpenAI endpoints, please specify a non-empty 'model' either in `llm_config` or in each config of 'config_list' in `llm_config`.
185
185
optimizer_model: the model used for the optimizer.
186
186
"""
187
187
self.max_actions_per_step=max_actions_per_step
@@ -199,14 +199,17 @@ def __init__(
199
199
self._failure_functions_performance= []
200
200
self._best_performance=-1
201
201
202
-
config_list=autogen.config_list_from_json(
203
-
config_file_or_env,
204
-
file_location=config_file_location,
205
-
filter_dict={"model": [self.optimizer_model]},
202
+
assertisinstance(llm_config, dict), "llm_config must be a dict"
0 commit comments