fix: resolve TypeScript errors after dev data schema changes
- Update test data to use modelName instead of modelTitle in log.vitest.ts - Add missing modelProvider and modelName to nextEditWithHistory event logging Resolves CI failures from schema standardization changes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
217aa2d265
commit
b8e4e95487
2 changed files with 4 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ const TEST_AGENT_INTERACTION_EVENT: DevDataLogEvent = {
|
|||
prompt: "Hello, world!",
|
||||
completion: "Hello, world!",
|
||||
modelProvider: "openai",
|
||||
modelTitle: "gpt-4",
|
||||
modelName: "gpt-4",
|
||||
sessionId: "1234",
|
||||
tools: ["test-tool1"],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ export const processNextEditData = async ({
|
|||
// undefined;
|
||||
|
||||
const modelName = "Codestral";
|
||||
const modelProvider = "mistral";
|
||||
const maxPromptTokens = randomNumberBetween(500, 12000);
|
||||
|
||||
const autocompleteContext = await getAutocompleteContext(
|
||||
|
|
@ -124,6 +125,8 @@ export const processNextEditData = async ({
|
|||
beforeCursorPos: cursorPosBeforeEdit,
|
||||
afterCursorPos: cursorPosAfterPrevEdit,
|
||||
context: autocompleteContext,
|
||||
modelProvider,
|
||||
modelName,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue