mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-06 23:44:36 +00:00
fix(coding-agent,ai): restore main syntax and apply biome formatting
This commit is contained in:
parent
2b1fc90cd7
commit
76f6f8cb8b
3 changed files with 5 additions and 3 deletions
|
|
@ -225,7 +225,8 @@ export const streamGoogleVertex: StreamFunction<"google-vertex", GoogleVertexOpt
|
|||
|
||||
if (chunk.usageMetadata) {
|
||||
output.usage = {
|
||||
input: (chunk.usageMetadata.promptTokenCount || 0) - (chunk.usageMetadata.cachedContentTokenCount || 0),
|
||||
input:
|
||||
(chunk.usageMetadata.promptTokenCount || 0) - (chunk.usageMetadata.cachedContentTokenCount || 0),
|
||||
output:
|
||||
(chunk.usageMetadata.candidatesTokenCount || 0) + (chunk.usageMetadata.thoughtsTokenCount || 0),
|
||||
cacheRead: chunk.usageMetadata.cachedContentTokenCount || 0,
|
||||
|
|
|
|||
|
|
@ -211,7 +211,8 @@ export const streamGoogle: StreamFunction<"google-generative-ai", GoogleOptions>
|
|||
|
||||
if (chunk.usageMetadata) {
|
||||
output.usage = {
|
||||
input: (chunk.usageMetadata.promptTokenCount || 0) - (chunk.usageMetadata.cachedContentTokenCount || 0),
|
||||
input:
|
||||
(chunk.usageMetadata.promptTokenCount || 0) - (chunk.usageMetadata.cachedContentTokenCount || 0),
|
||||
output:
|
||||
(chunk.usageMetadata.candidatesTokenCount || 0) + (chunk.usageMetadata.thoughtsTokenCount || 0),
|
||||
cacheRead: chunk.usageMetadata.cachedContentTokenCount || 0,
|
||||
|
|
|
|||
|
|
@ -788,7 +788,7 @@ export async function main(args: string[]) {
|
|||
time("resolveModelScope");
|
||||
|
||||
// Create session manager based on CLI flags
|
||||
let sessionManager = await createSessionManager(parsed, cwd, extensionsResult,
|
||||
let sessionManager = await createSessionManager(parsed, cwd, extensionsResult, settingsManager);
|
||||
time("createSessionManager");
|
||||
|
||||
// Handle --resume: show session picker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue