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:
Patrick Erichsen 2025-08-12 21:00:51 -07:00
parent 217aa2d265
commit b8e4e95487
2 changed files with 4 additions and 1 deletions

View file

@ -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"],
},

View file

@ -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,
},
});
}