Skip to content

Commit

Permalink
Update docstring for oai.completion. (#1113)
Browse files Browse the repository at this point in the history
Specify the details of how **config is used in Completion.
  • Loading branch information
LeoLjl authored Jul 10, 2023
1 parent 255faf9 commit 45c37b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flaml/autogen/oai/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def yes_or_no_filter(context, config, response):
raise_error (bool, Optional): Whether to raise error when all configs fail.
When set to False, -1 will be returned when all configs fail.
**config: Configuration for the completion.
**config: Configuration for the openai API call. This is used as parameters for calling openai API.
Besides the parameters for the openai API call, it can also contain a seed (int) for the cache.
This is useful when implementing "controlled randomness" for the completion.
Also, the "prompt" or "messages" parameter can contain a template (str or Callable) which will be instantiated with the context.
Expand Down

0 comments on commit 45c37b5

Please sign in to comment.