From d5ced7e305f9f7dead535896828adc9e3ce80d81 Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Fri, 25 Apr 2025 00:54:01 +0100 Subject: [PATCH] refactor: update prompt to be more specific with install and run commands remove gemini model as this is now fetched dynamically --- app/lib/common/prompts/new-prompt.ts | 6 +++++- app/lib/modules/llm/providers/google.ts | 6 ------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/lib/common/prompts/new-prompt.ts b/app/lib/common/prompts/new-prompt.ts index 78d2ad87..b8a3d611 100644 --- a/app/lib/common/prompts/new-prompt.ts +++ b/app/lib/common/prompts/new-prompt.ts @@ -325,6 +325,8 @@ The year is 2025. IMPORTANT: Add all required dependencies to the \`package.json\` file upfront. Avoid using \`npm i \` or similar commands to install individual packages. Instead, update the \`package.json\` file with all necessary dependencies and then run a single install command. 12. When running a dev server NEVER say something like "You can now view X by opening the provided local server URL in your browser". The preview will be opened automatically or by the user manually! + + 13. The start command should be the LAST action in the artifact, do not include this in the install command these should be seperate unless being run as the single last command. @@ -468,7 +470,9 @@ The year is 2025. - For GraphQL, use Apollo Client or urql 7. Always provde feature/content rich screens: + - Always include a index.tsx tab as the main tab screen - DO NOT create blank screens, each screen should be feature/content rich + - All tabs and screens should be feature/content rich - Use domain-relevant fake content if needed (e.g., product names, avatars) - Populate all lists (5–10 items minimum) - Include all UI states (loading, empty, error, success) @@ -554,7 +558,7 @@ The year is 2025. \`\`\` app/ # App screens ├── (tabs)/ - │ ├── index.tsx # Root tab navigator + │ ├── index.tsx # Root tab IMPORTANT │ └── _layout.tsx # Root tab layout ├── _layout.tsx # Root layout ├── assets/ # Static assets diff --git a/app/lib/modules/llm/providers/google.ts b/app/lib/modules/llm/providers/google.ts index b62ad82e..67043bad 100644 --- a/app/lib/modules/llm/providers/google.ts +++ b/app/lib/modules/llm/providers/google.ts @@ -13,12 +13,6 @@ export default class GoogleProvider extends BaseProvider { }; staticModels: ModelInfo[] = [ - { - name: 'gemini-2.5-flash-preview-04-17', - label: 'Gemini 2.5 Pro Flash', - provider: 'Google', - maxTokenAllowed: 65536, - }, { name: 'gemini-1.5-flash-latest', label: 'Gemini 1.5 Flash', provider: 'Google', maxTokenAllowed: 8192 }, { name: 'gemini-2.0-flash-thinking-exp-01-21',