update
This commit is contained in:
1 parent
8e63341afc
commit
dd7afeeb71
3 files changed
+5
-7
No files matched your search
@@ -1,3 +0,0 @@
|
||||
# Environment variables
|
||||
DATABASE_URL="file:./dev.db"
|
||||
API_KEY="zzz"
|
||||
+3
-2
@@ -1,13 +1,13 @@
|
||||
// @ts-ignore
|
||||
import index from './ui/index.html'
|
||||
import { Hono } from 'hono'
|
||||
import { serveStatic } from 'hono/bun'
|
||||
import { cors } from 'hono/cors'
|
||||
import asset from './api/asset'
|
||||
import character from './api/character'
|
||||
import equipment from './api/equipment'
|
||||
import generation from './api/generation'
|
||||
import extract from './api/extract'
|
||||
import generation from './api/generation'
|
||||
import index from './ui/index.html'
|
||||
|
||||
const app = new Hono()
|
||||
|
||||
@@ -47,6 +47,7 @@ const server = Bun.serve({
|
||||
'/*': index,
|
||||
},
|
||||
development: process.env.NODE_ENV !== 'production',
|
||||
idleTimeout: 300,
|
||||
})
|
||||
|
||||
console.log(`🚀 Server running at ${server.url}`)
|
||||
+2
-2
@@ -17,7 +17,7 @@ export class GeminiService implements AIService {
|
||||
|
||||
// Generates JSON output from text and images using Gemini
|
||||
async generateText<T>(prompt: string, images: File[] = [], schema?: z.ZodType<T>): Promise<T> {
|
||||
const model = 'gemini-1.5-flash' // Or 'gemini-2.0-flash-exp' if available for faster responses
|
||||
const model = 'gemini-3-pro-preview'
|
||||
|
||||
const parts: Array<{ text: string } | { inlineData: { mimeType: string; data: string } }> = []
|
||||
|
||||
@@ -92,7 +92,7 @@ export class GeminiService implements AIService {
|
||||
parts.push({ text: prompt })
|
||||
|
||||
const result = await this.genAI.models.generateContent({
|
||||
model: 'gemini-2.0-flash-exp', // Using a known capable model
|
||||
model: 'gemini-2.5-flash-image',
|
||||
contents: { parts },
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user