autogen icon indicating copy to clipboard operation
autogen copied to clipboard

Add support for changing system message role - this allows using o1-preview and o1-mini models

Open faisalil opened this issue 1 year ago • 3 comments

Why are these changes needed?

To use the o1-preview and o1-mini models, we cannot send messages with role "system", to deal with this, I allowed controlling the role of the system message via an optional param.

Related issue number

N/A

Checks

  • [ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
  • [ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
  • [X] I've made sure all auto checks have passed.

faisalil avatar Oct 01 '24 21:10 faisalil

@faisalil please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

faisalil avatar Oct 01 '24 21:10 faisalil

I see https://github.com/microsoft/autogen/pull/3530/files just now - happy to close this one if not needed

faisalil avatar Oct 01 '24 21:10 faisalil

Thanks for the PR, we're still working on O1 support. Did you want to try out that other PR or provide feedback?

jackgerrits avatar Oct 01 '24 22:10 jackgerrits

This PR is against AutoGen 0.2. AutoGen 0.2 has been moved to the 0.2 branch. Please rebase your PR on the 0.2 branch or update it to work with the new AutoGen 0.4 that is now in main.

rysweet avatar Oct 10 '24 21:10 rysweet