Update Gemini model to gemini-3.1-pro-preview
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f4e4412bf2
commit
f7fb6fc361
2 changed files with 4 additions and 4 deletions
6
App.tsx
6
App.tsx
|
|
@ -139,7 +139,7 @@ export default function App() {
|
|||
`;
|
||||
|
||||
const response = await ai.models.generateContent({
|
||||
model: 'gemini-3-flash-preview',
|
||||
model: 'gemini-3.1-pro-preview',
|
||||
contents: prompt,
|
||||
config: {
|
||||
responseMimeType: "application/json",
|
||||
|
|
@ -193,7 +193,7 @@ export default function App() {
|
|||
Format as a simple comma-separated list of items found.`;
|
||||
|
||||
const response = await ai.models.generateContent({
|
||||
model: 'gemini-3-flash-preview',
|
||||
model: 'gemini-3.1-pro-preview',
|
||||
contents: {
|
||||
parts: [
|
||||
{ inlineData: { data: base64Data, mimeType: file.type } },
|
||||
|
|
@ -333,7 +333,7 @@ export default function App() {
|
|||
- Tone: Professional, senior, strategic, everyday English.
|
||||
- Formatting: Use Markdown.
|
||||
`;
|
||||
const response = await ai.models.generateContent({ model: 'gemini-3-flash-preview', contents: prompt });
|
||||
const response = await ai.models.generateContent({ model: 'gemini-3.1-pro-preview', contents: prompt });
|
||||
setAuditText(response.text || "Audit unavailable.");
|
||||
} catch (error) {
|
||||
setAuditText("Error generating AI audit.");
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ Built with React 19, TypeScript, and Vite. No backend required — everything ru
|
|||
|
||||
### AI Integration
|
||||
|
||||
Uses Google Gemini 2.0 Flash for three distinct capabilities:
|
||||
Uses Google Gemini 3.1 Pro (`gemini-3.1-pro-preview`) for three distinct capabilities:
|
||||
|
||||
- **Scope Analysis** — Analyzes a project brief and matches it to assets in the catalog
|
||||
- **Image OCR** — Extracts text from uploaded screenshots of briefs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue