Skip to content

Dynamic Creation of chat completion endpoints during runtime #6811

Closed Answered by dmytrostruk
Maniga asked this question in Q&A
Discussion options

You must be logged in to vote

@Maniga Got it, thanks for providing more details. I think service registration is available only during kernel construction (e.g. when using KernelBuilder or new Kernel(services). In your case, before making a request, you can create new kernel instance, import necessary plugins and services (e.g. OpenAIChatCompletionService with modelName provided by user) and execute a request. Let me know if that works for your scenario.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dmytrostruk
Comment options

Answer selected by Maniga
@Maniga
Comment options

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