diff options
| author | Jacob Richman <[email protected]> | 2025-05-02 09:31:18 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-02 09:31:18 -0700 |
| commit | 539ab947a49b0351759df5192ed44f17d217b2f1 (patch) | |
| tree | eb45ee25f24077745456215cb7e9578d79983404 /packages/server/src/core/client.ts | |
| parent | a7679db6e99f971306bc4b27c603e93bc67ac254 (diff) | |
Use parameter properties where possible. (#242)
Diffstat (limited to 'packages/server/src/core/client.ts')
| -rw-r--r-- | packages/server/src/core/client.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/server/src/core/client.ts b/packages/server/src/core/client.ts index a1cec704..d4bcdeca 100644 --- a/packages/server/src/core/client.ts +++ b/packages/server/src/core/client.ts @@ -23,7 +23,6 @@ import { ReadManyFilesTool } from '../tools/read-many-files.js'; // Import ReadM import { getResponseText } from '../utils/generateContentResponseUtilities.js'; export class GeminiClient { - private config: Config; private client: GoogleGenAI; private model: string; private generateContentConfig: GenerateContentConfig = { @@ -32,9 +31,8 @@ export class GeminiClient { }; private readonly MAX_TURNS = 100; - constructor(config: Config) { + constructor(private config: Config) { this.client = new GoogleGenAI({ apiKey: config.getApiKey() }); - this.config = config; this.model = config.getModel(); } |
