Skip to content

Commit a21ce92

Browse files
committed
feat(model): updated the model used for completion
1 parent e2b89a3 commit a21ce92

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

src/handlers/front-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Follow TDD Process:
100100
Use the testRunner tool with mode: "generate" to create tests, and mode: "run" to execute them.`;
101101

102102
// Get the solution with retries and verification
103-
const solution = await context.adapters.openai.completions.createCompletion(prompt, "anthropic/claude-3.5-sonnet", workingDir);
103+
const solution = await context.adapters.openai.completions.createCompletion(prompt, "deepseek/deepseek-r1", workingDir);
104104

105105
if (!solution) {
106106
logger.error("No solution was generated");

src/types/tool.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,36 @@ export interface Tool<T = unknown> {
3737
execute(args: Record<string, unknown>): Promise<ToolResult<T>>;
3838
}
3939

40-
export interface OpenAITool<T = unknown> {
40+
export interface OpenAIToolDefinition {
4141
type: "function";
4242
function: {
4343
name: string;
4444
description: string;
4545
parameters: JSONSchemaDefinition;
46-
execute?(args: Record<string, unknown>): Promise<ToolResult<T>>;
4746
};
4847
}
4948

50-
export function convertToOpenAITool<T>(tool: Tool<T>): OpenAITool<T> {
49+
export interface OpenAIToolCall {
50+
type: "function";
51+
function: {
52+
name: string;
53+
arguments: string;
54+
};
55+
id: string;
56+
}
57+
58+
export interface OpenAIToolResult {
59+
tool_call_id: string;
60+
output: string;
61+
}
62+
63+
export function convertToOpenAITool<T>(tool: Tool<T>): OpenAIToolDefinition {
5164
return {
5265
type: "function",
5366
function: {
5467
name: tool.name,
5568
description: tool.description,
5669
parameters: tool.parameters,
57-
execute: tool.execute,
5870
},
5971
};
6072
}

0 commit comments

Comments
 (0)