Skip to content

How to get the "raw" prompt being sent to OpenAI #1239

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

You must be logged in to vote

It already is. If there are things that don't work with it and it's important that they do, we need to fix them to work with it.

As far as I can see, the main reason why developers use IChatCompletionService directly is because they want access to ChatHistory object directly, and Kernel doesn't work with this object yet. I believe if we add support for it, then there would be no reason to do kernel.GetRequiredService<IChatCompletionService>() for simple cases. It will be possible to do kernel.InvokeAsync(chatHistory), and then all features, including extended telemetry, will work as expected, without need to duplicate prompt logging in all connectors. And we still can have logging for O…

Replies: 11 comments 28 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@roalexan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@amadorcarlosa
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dmytrostruk
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
18 replies
@GKrivosheev-rms
Comment options

@dmytrostruk
Comment options

@stephentoub
Comment options

@dmytrostruk
Comment options

Answer selected by sophialagerkranspandey
@stephentoub
Comment options

@dmytrostruk
Comment options

@dmytrostruk
Comment options

Comment options

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

@MithrilMan
Comment options

@dmytrostruk
Comment options

@MithrilMan
Comment options

@dmytrostruk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet