You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

OAI_CONFIG_LIST_sample 1.4 kB

123456789101112131415161718192021222324
  1. // Please modify the content, remove these four lines of comment and rename this file to OAI_CONFIG_LIST to run the sample code.
  2. // If using pyautogen v0.1.x with Azure OpenAI, please replace "base_url" with "api_base" (line 13 and line 20 below). Use "pip list" to check version of pyautogen installed.
  3. //
  4. // NOTE: This configuration lists GPT-4 as the default model, as this represents our current recommendation, and is known to work well with AutoGen. If you use a model other than GPT-4, you may need to revise various system prompts (especially if using weaker models like GPT-3.5-turbo). Moreover, if you use models other than those hosted by OpenAI or Azure, you may incur additional risks related to alignment and safety. Proceed with caution if updating this default.
  5. [
  6. {
  7. "model": "gpt-4",
  8. "api_key": "<your OpenAI API key here>"
  9. },
  10. {
  11. "model": "<your Azure OpenAI deployment name>",
  12. "api_key": "<your Azure OpenAI API key here>",
  13. "base_url": "<your Azure OpenAI API base here>",
  14. "api_type": "azure",
  15. "api_version": "2024-02-15-preview"
  16. },
  17. {
  18. "model": "<your Azure OpenAI deployment name>",
  19. "api_key": "<your Azure OpenAI API key here>",
  20. "base_url": "<your Azure OpenAI API base here>",
  21. "api_type": "azure",
  22. "api_version": "2024-02-15-preview"
  23. }
  24. ]