Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/server/llm/client-pure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ async function buildChatCompletionCreateParams(
...(request.toolChoice ? { tool_choice: request.toolChoice as ChatCompletionToolChoiceOption } : {}),
temperature,
max_tokens: maxTokens,
top_p: topP,
...(topP !== undefined && { top_p: topP }),
stream: isStreaming,
...(isStreaming ? { stream_options: { include_usage: true } } : {}),
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/llm/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export function createLLMClient(config: Config, initialBackend: Backend = 'unkno
},
}
} catch (error) {
logger.error('LLM stream error', { error })
logger.error('LLM stream error', { error: String(error) })
yield {
type: 'error',
error: error instanceof Error ? error.message : 'Unknown LLM error',
Expand Down
6 changes: 5 additions & 1 deletion src/server/tools/project-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ export const projectTasksTool = createTool<ProjectTasksArgs>(
action: { type: 'string', enum: VALID_ACTIONS, description: 'The action to perform' },
taskId: { type: 'string', description: 'Target task id (edit, move, set_gate_value, delete)' },
prompt: { type: 'string', description: 'The prompt/instruction executed when the task launches' },
attachments: { type: 'array', description: 'Optional attachments (same shape as chat attachments)' },
attachments: {
type: 'array',
description: 'Optional attachments (same shape as chat attachments)',
items: {},
},
agentId: { type: 'string', description: 'Selected agent id' },
providerId: { type: 'string', description: 'Provider id used when a session is spawned' },
model: { type: 'string', description: 'Model label used when a session is spawned' },
Expand Down
Loading