Skip to content

Commit 4b0305b

Browse files
committed
Update docs: correct Gemini model name and refresh dates
1 parent 1cdb48e commit 4b0305b

8 files changed

Lines changed: 11 additions & 11 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,6 @@ All contributors will be recognized in:
638638

639639
- Project README
640640
- Release notes
641-
- AUTHORS.md file (coming soon)
641+
- GitHub Contributors page
642642

643643
Thank you for contributing to OpenSafe and helping make open source safer!

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,4 @@ Security of these services is managed by their respective providers.
194194

195195
---
196196

197-
**Last Updated**: 2025-10-30
197+
**Last Updated**: 2025-11-03

app/api/scan-gemini/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export async function GET(): Promise<NextResponse> {
239239
status: 'online',
240240
message: 'OpenSafe Repository Scanner API (Gemini-powered)',
241241
provider: 'Google Gemini API',
242-
model: 'gemini-2.5-flash-lite',
242+
model: 'gemini-2.5-flash',
243243
rateLimits: {
244244
free: '10 requests/minute, 250 requests/day',
245245
tokenLimit: '250,000 tokens/minute',

docs/API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ curl https://www.opensafe.app/api/scan-gemini
460460
"status": "online",
461461
"message": "OpenSafe Repository Scanner API (Gemini-powered)",
462462
"provider": "Google Gemini API",
463-
"model": "gemini-2.5-flash-lite",
463+
"model": "gemini-2.5-flash",
464464
"rateLimits": {
465465
"free": "10 requests/minute, 250 requests/day",
466466
"tokenLimit": "250,000 tokens/minute"
@@ -541,5 +541,5 @@ For API issues, questions, or feature requests:
541541

542542
---
543543

544-
**Last Updated**: 2025-11-07
544+
**Last Updated**: 2025-11-20
545545
**API Version**: 1.0

docs/ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,6 @@ All configuration is managed via environment variables. See `.env.example` for f
10391039

10401040
---
10411041

1042-
**Last Updated**: 2025-01-19
1042+
**Last Updated**: 2025-11-10
10431043
**OpenSafe Version**: 1.0.0
10441044
**Maintained by**: OpenSafe Team

lib/ai/gemini/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ import { GeminiScanWorkflow } from '@/lib/ai/gemini/scan-workflow';
8686
const workflow = new GeminiScanWorkflow({
8787
geminiApiKey: process.env.GEMINI_API_KEY!,
8888
githubToken: process.env.GITHUB_TOKEN,
89-
geminiModel: 'gemini-2.5-flash', // Optional
89+
geminiModel: 'gemini-2.5-flash', // Optional (this is the default)
9090
});
9191

9292
const result = await workflow.scanRepository(repoUrl);

lib/ai/gemini/gemini-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export { SchemaType };
4949
* ```typescript
5050
* const service = new GeminiService({
5151
* apiKey: process.env.GEMINI_API_KEY,
52-
* model: 'gemini-2.5-flash-lite'
52+
* model: 'gemini-2.5-flash'
5353
* });
5454
*
5555
* // Simple text generation
@@ -73,7 +73,7 @@ export class GeminiService {
7373
*
7474
* @param config - Configuration for the Gemini service
7575
* @param config.apiKey - Google Gemini API key
76-
* @param config.model - Optional model name (default: 'gemini-2.5-flash-lite')
76+
* @param config.model - Optional model name (default: 'gemini-2.5-flash')
7777
*/
7878
constructor(config: GeminiServiceConfig) {
7979
this.genAI = new GoogleGenerativeAI(config.apiKey);

lib/ai/gemini/scan-workflow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import type { PackageJson, GitHubRepoMetadata } from '@/types/github';
5555
* const workflow = new GeminiScanWorkflow({
5656
* geminiApiKey: process.env.GEMINI_API_KEY,
5757
* githubToken: process.env.GITHUB_TOKEN,
58-
* geminiModel: 'gemini-2.5-flash-lite'
58+
* geminiModel: 'gemini-2.5-flash'
5959
* });
6060
*
6161
* const result = await workflow.scanRepository('https://github.com/facebook/react');
@@ -74,7 +74,7 @@ export class GeminiScanWorkflow {
7474
* @param config - Configuration for the workflow
7575
* @param config.geminiApiKey - Google Gemini API key
7676
* @param config.githubToken - GitHub personal access token (optional, for higher rate limits)
77-
* @param config.geminiModel - Gemini model to use (default: 'gemini-2.5-flash-lite')
77+
* @param config.geminiModel - Gemini model to use (default: 'gemini-2.5-flash')
7878
*/
7979
constructor(config: GeminiWorkflowConfig) {
8080
this.config = config;

0 commit comments

Comments
 (0)