Skip to content

Commit f2d2eff

Browse files
zcoderrclaude
andcommitted
fix: remove plaintext preferences fallback for GEMINI_API_KEY
Co-authored-by: Claude <noreply@anthropic.com>
1 parent dd013ae commit f2d2eff

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

api/src/ai/voice-model.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ const DEFAULT_LIVE_MODEL = 'gemini-3.1-flash-live-preview';
99
const DEFAULT_VOICE = 'Aoede';
1010

1111
export function getGeminiApiKey(): string {
12-
const key =
13-
process.env.GEMINI_API_KEY ||
14-
process.env.GOOGLE_API_KEY ||
15-
(Config.env.preferences?.gemini_api_key as string) ||
16-
'';
17-
return key;
12+
return process.env.GEMINI_API_KEY || process.env.GOOGLE_API_KEY || '';
1813
}
1914

2015
export function getGeminiLiveModel(): string {

blocklet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository:
1313
type: git
1414
url: git+https://github.com/blocklet/create-blocklet.git
1515
specVersion: 1.2.8
16-
version: 0.1.10
16+
version: 0.1.11
1717
logo: logo.png
1818
files:
1919
- dist

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "aistro-ai",
33
"private": true,
4-
"version": "0.1.10",
4+
"version": "0.1.11",
55
"scripts": {
66
"dev": "blocklet dev",
77
"lint": "tsc --noEmit && eslint src api/src --ext .mjs,.js,.jsx,.ts,.tsx",

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.10
1+
0.1.11

0 commit comments

Comments
 (0)