mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-06 03:10:42 -07:00
fix(policy): ensure user policies are loaded when policyPaths is empty (#22090)
This commit is contained in:
@@ -1039,7 +1039,9 @@ export const useGeminiStream = (
|
||||
return;
|
||||
}
|
||||
|
||||
const finishReasonMessages: Record<FinishReason, string | undefined> = {
|
||||
const finishReasonMessages: Partial<
|
||||
Record<FinishReason, string | undefined>
|
||||
> = {
|
||||
[FinishReason.FINISH_REASON_UNSPECIFIED]: undefined,
|
||||
[FinishReason.STOP]: undefined,
|
||||
[FinishReason.MAX_TOKENS]: 'Response truncated due to token limits.',
|
||||
|
||||
Reference in New Issue
Block a user