feat(core): update Copilot for token-based billing (#30181)
This commit is contained in:
@@ -280,6 +280,8 @@ const live: Layer.Layer<
|
||||
return {
|
||||
type: "ai-sdk" as const,
|
||||
result: streamText({
|
||||
// Copilot returns the authoritative billed amount only in provider-specific response fields.
|
||||
includeRawChunks: input.model.providerID.includes("github-copilot"),
|
||||
onError(error) {
|
||||
l.error("stream error", {
|
||||
error,
|
||||
|
||||
Reference in New Issue
Block a user