Skip to content

Allow custom semantic backend? #115

Closed

Description

Hi folks, currently semantic kernel only allows us to use either OpenAI or Azure OpenAI as TextCompletion or Embedding backends. Is it possible for your team to add support for a customized TextCompletion backend? It will be helpful for developers who host their own GPT or AICG service.

use case

// my customized semantic backend
ITextCompletionClient myGossipTextClientInstance

IBackendConfig myGossipTextClientConfig

// suggested API to add config to kernel
kernel.Config.AddTextCompletionBackend(myGossipTextClientConfig, myGossipTextClientInstance)

Activity

  1. timlaverty commented on Mar 20, 2023

    @timlaverty

    Hi Xiaoyun Zhang (@LittleLittleCloud) , thanks for sending feedback. We are actively working on better multi-model and multi-modal support and will have an update on this shortly.

  2. LittleLittleCloud commented on Mar 20, 2023

    @LittleLittleCloud
    ContributorAuthor

    Tim Laverty (@timlaverty) Thanks, looking forward to having this functionality in semantic kernel.

  3. dluc commented on Mar 20, 2023

    @dluc
    Contributor

    Xiaoyun Zhang (@LittleLittleCloud) as Tim Laverty (@timlaverty) we're actively working on this.

    In the meantime, just in case you are blocked, by the design the kernel allows to plug in any function that implements the ISKFunction interface. So, only if this is urgent, this is one available path to integrate any model not yet supported.

  4. craigomatic commented on Mar 30, 2023

    @craigomatic
    Contributor

    Devis Lucato (@dluc) This is now supported as of this PR #161 right?

  5. evchaki commented on Apr 4, 2023

    @evchaki
    Contributor

    This is now in the main branch, Xiaoyun Zhang (@LittleLittleCloud) thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions