Skip to content

Commit

Permalink
Update trace function and add cache configuration in genai script
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 27, 2024
1 parent 2966fff commit 499fb65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,6 @@ export async function executeChatSession(

export function tracePromptResult(trace: MarkdownTrace, resp: RunPromptResult) {
const { json, text } = resp
trace.detailsFenced(`🔠 output`, text, `markdown`)
trace.details(`🔠 output`, text)
if (resp.json) trace.detailsFenced("📩 JSON (parsed)", json, "json")
}
1 change: 1 addition & 0 deletions packages/sample/genaisrc/gai.genai.mts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ script({
},
system: ["system", "system.files"],
flexTokens: 30000,
cache: "gai",
})

// Assign the 'workflow' parameter from environment variables
Expand Down

0 comments on commit 499fb65

Please sign in to comment.