Skip to content
Discussion options

You must be logged in to vote

Hi @akordowski !

It is possible to add multiple services of the same type to the kernel (e.g. chat completion, text to image, ...)

Yes, you can add multiple services of the same type (e.g. multiple IChatCompletionService services).

Can this be done or should it be prevented?

This can be done, and it's especially useful when you want to switch to different chat completion endpoint in specific period of application runtime.

If it is possible how the kernel decides which one service to use?

We have IAIServiceSelector abstraction, which is responsible for service selection. If you don't specify any explicitly, default OrderedAIServiceSelector will be used. But it is possible to override…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by akordowski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants