-
Notifications
You must be signed in to change notification settings - Fork 250
Description
Describe the bug
Error
Invalid argument for parameter maxTokens: maxTokens must be >= 1
The error does not appear during discussions. It only happens during command execution.
The problem started last night. The system worked flawlessly all day. Around 02:30 EST last night the error message started popping up. At first the message showed up sporadically. After a while it showed up everytime I tried to run a chat.
Link to the blitz that caused the error
https://stackblitz.com/~/github.com/mission-systems/2506140409-CRM-plus-Finance
Steps to reproduce
- Paste the following into the chat box:
- Now I want to begin creating the Finance Module. This module should support basic aounting activities as well as creating invoices and tracking expenses. Income and expenses should be tracked by customer and project. The module should support basic accounting practices. It needs to be able to create invoices and track expenses and be able to assign income and expenses by customer.
To create the Finance Module, we'll need to introduce new data structures, a dedicated service for financial operations, and new pages and components to manage invoices and expenses.
The Plan
Update Data Structures:
Modify src/types/index.ts: Add new interfaces for Invoice, InvoiceItem, Expense, and ExpenseCategory. These interfaces will define the shape of the data for financial records.
Create Finance Service:
Create src/services/financeService.ts: This new service will encapsulate all logic for interacting with the IndexedDB storage for invoices and expenses. It will include methods for fetching, saving, and deleting Invoice and Expense records.
Update Module Definitions:
Modify src/services/moduleService.ts: Update the financial-management module to include a navigation item for "Expenses" alongside "Invoices" and "Financial Reports". This will ensure the new pages are accessible through the sidebar.
Create Invoices Page and Components:
Create src/pages/Invoices.tsx: This page will serve as the main view for managing invoices. It will display a list of invoices, provide filtering and search capabilities, and allow users to add new invoices.
Create src/components/Forms/InvoiceForm.tsx: This component will be a modal form for creating and editing invoice details, including line items.
Create src/components/Forms/InvoiceDetailModal.tsx: This component will display the detailed view of a selected invoice.
Create Expenses Page and Components:
Create src/pages/Expenses.tsx: This page will be similar to the Invoices page, providing a list of expenses with filtering, search, and the ability to add new expenses.
Create src/components/Forms/ExpenseForm.tsx: This component will be a modal form for creating and editing expense details.
Create src/components/Forms/ExpenseDetailModal.tsx: This component will display the detailed view of a selected expense.
Create Financial Reports Page:
Create src/pages/FinancialReports.tsx: This page will be a placeholder for future financial reporting features, such as income/expense summaries and charts.
Update Application Routing:
Modify src/App.tsx: Add new routes for /invoices, /expenses, and /financial-reports to integrate the new pages into the application's navigation.
- Attempt to run the pasted text. Action is not executed. Error appears at the bottom of the AI response.
Expected behavior
I expected the chat to be run and the relevant code to be created, as it has been over the last 24hours.
Parity with Local
- I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
Version = 1.84.0
Hash = 3b0b7194bc6b567c2eaf4c96a5759098469dcf59
WebContainer = 2e6e5e13
Browser name = Chrome
Full version = 137.0.0.0
Major version = 137
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
performance.memory = {
"totalJSHeapSize": 97149068,
"usedJSHeapSize": 92336848,
"jsHeapSizeLimit": 2248146944
}
Additional context
No response