Comments (1)
๐ค To solve this task, you need to implement the following:
File: modules/summaries.js
In order to implement the task, you need to change the generateAndWriteFileSummary
function in the modules/summaries.js
file to use the SUMMARY_MODEL
variable from the .env file instead of the CHEAP_MODEL
variable.
First, you need to import the SUMMARY_MODEL
variable from the .env file at the beginning of the modules/summaries.js
file:
const SUMMARY_MODEL = process.env.SUMMARY_MODEL;
Then, update the generateAndWriteFileSummary
function to use the SUMMARY_MODEL
variable when calling the fileSummary
function:
async function generateAndWriteFileSummary(codeBaseDirectory, filePathRelative, fileContent, model) {
const fileSummary = require('../agents/indexer');
// ...
try {
const summary = await fileSummary(fileContent, SUMMARY_MODEL);
// ...
} catch (error) {
console.error(`Error processing file: ${filePathRelative}`, error);
}
}
By making these changes, the agent that processes summaries will use the model specified in the SUMMARY_MODEL
environment variable.
from autopilot.
Related Issues (20)
- No matching files found in the database. Indexing is required. HOT 1
- No matching files found in the database. Indexing is required. HOT 6
- Error processing file. Headers is not defined HOT 1
- limit token usage HOT 1
- Exclude binary files HOT 1
- Swap to typescript HOT 3
- Github Issues Operations support HOT 3
- Fails to Index CODE_DIR HOT 4
- Missing table "files" HOT 5
- Autopilot suggesting changes to its own files HOT 2
- Autopilot
- I am getting Indexing is required error HOT 3
- source code contain `// comments` will causing JSON Parser Error HOT 2
- 429 Rate Limiting HOT 5
- Add OPENAI_BASE_PATH into env HOT 2
- ไธญๆๅ่ฟไธช้กน็ฎ
- SyntaxError: Unterminated string in JSON HOT 1
- TypeError: cookies is not iterable HOT 1
- trigger HOT 1
- Add support for gpt-4-turbo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autopilot.