mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 23:21:27 -07:00
Fix build. Revert work-around.
This commit is contained in:
@@ -137,18 +137,14 @@ export function toGenerateContentRequest(
|
||||
export function fromGenerateContentResponse(
|
||||
res: CaGenerateContentResponse,
|
||||
): GenerateContentResponse {
|
||||
const out = new GenerateContentResponse();
|
||||
out.responseId = res.traceId;
|
||||
const inres = res.response;
|
||||
if (!inres) {
|
||||
out.candidates = [];
|
||||
return out;
|
||||
}
|
||||
out.candidates = inres.candidates ?? [];
|
||||
const out = new GenerateContentResponse();
|
||||
out.candidates = inres.candidates;
|
||||
out.automaticFunctionCallingHistory = inres.automaticFunctionCallingHistory;
|
||||
out.promptFeedback = inres.promptFeedback;
|
||||
out.usageMetadata = inres.usageMetadata;
|
||||
out.modelVersion = inres.modelVersion;
|
||||
out.responseId = res.traceId;
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ import {
|
||||
recordConversationOffered,
|
||||
} from './telemetry.js';
|
||||
import { getClientMetadata } from './experiments/client_metadata.js';
|
||||
import { debugLogger } from 'src/utils/debugLogger.js';
|
||||
import { debugLogger } from '../utils/debugLogger.js';
|
||||
/** HTTP options to be used in each of the requests. */
|
||||
export interface HttpOptions {
|
||||
/** Additional HTTP headers to be sent with the request. */
|
||||
|
||||
Reference in New Issue
Block a user