Propagate prompt (#5033)

This commit is contained in:
owenofbrien
2025-08-01 14:37:56 -05:00
committed by GitHub
parent e5ce7d4872
commit 8484730cd6
11 changed files with 245 additions and 102 deletions

View File

@@ -32,6 +32,7 @@ import {
export interface CAGenerateContentRequest {
model: string;
project?: string;
user_prompt_id?: string;
request: VertexGenerateContentRequest;
}
@@ -115,12 +116,14 @@ export function fromCountTokenResponse(
export function toGenerateContentRequest(
req: GenerateContentParameters,
userPromptId: string,
project?: string,
sessionId?: string,
): CAGenerateContentRequest {
return {
model: req.model,
project,
user_prompt_id: userPromptId,
request: toVertexGenerateContentRequest(req, sessionId),
};
}