Skip to content

CompleteRequestSettings is insufficiently abstract #2735

Closed

Description

@douglasware

Note: I could also file this as a bug as many models do not work with SK and the Oobabooga and HuggingFace connectors because of this problem.

When I started using other completion APIs, e.g. Oobabooga, HuggingFace, the design around Microsoft.SemanticKernel.AI.TextCompletion.CompleteRequestSettings gets inconvenient quickly because behind those APIs the parameters vary, and the SK implementation is specifically shaped around OpenAI API.

Seems like this one design element is a big blocker to the vision of a pluggable system.

A simple (but not terribly robust) solution would be to get rid of CompleteRequestSettings altogether and allow the use of a name/value collection instead.

Activity

  1. markwallace-microsoft commented on Sep 7, 2023

    @markwallace-microsoft
    Contributor

    Shawn Callegari (@shawncal) I have been working on a solution for this issue, so I can take this one.

  2. added
    kernelIssues or pull requests impacting the core kernel
    ai connectorAnything related to AI connectors
    and removed on Sep 7, 2023
  3. moved this to Sprint: In Progress in Semantic Kernelon Sep 7, 2023
  4. added this to the R3: Cycle 3 milestone on Sep 7, 2023
  5. douglasware commented on Sep 8, 2023

    @douglasware
    Author

    I've added support for Function Calling in my fork this week and it's pretty obvious that the library painted itself into a corner here with ChatRequestSettings, CompleteRequestSettings, and ISKFunction. You are going to be forced to do a big refactor soon and break some stuff.

    Is there a branch I can watch to follow along?

  6. markwallace-microsoft commented on Sep 11, 2023

    @markwallace-microsoft
    Contributor

    Doug Ware (@douglasware) I'll a link to the PR once I have something to share. I expect to have something later this week.

  7. markwallace-microsoft commented on Sep 15, 2023

    @markwallace-microsoft
    Contributor

    Doug Ware (@douglasware) Here's the PR #2829. I still have more testing to do but any feedback is much appreciated.

  8. moved this from Sprint: In Progress to Sprint: In Review in Semantic Kernelon Sep 18, 2023
  9. markwallace-microsoft commented on Sep 19, 2023

    @markwallace-microsoft
    Contributor

    Doug Ware (@douglasware) Could you take a look at this comment #2829 (comment) to see does this change make sense

  10. added a commit that references this issue on Sep 20, 2023
  11. moved this from Sprint: In Review to Sprint: Done in Semantic Kernelon Sep 20, 2023
  12. added a commit that references this issue on Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ai connectorAnything related to AI connectorskernelIssues or pull requests impacting the core kernel

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions