refactor: remove type cast

This commit is contained in:
Shoubhit Dash
2026-03-25 20:46:05 +05:30
parent 18d8a1365c
commit 7e2b9ac161

View File

@@ -192,7 +192,7 @@ export namespace LLM {
// from the workflow service are executed via opencode's tool system
// and results sent back over the WebSocket.
if (language instanceof GitLabWorkflowLanguageModel) {
const workflowModel = language as GitLabWorkflowLanguageModel & { systemPrompt?: string }
const workflowModel = language
workflowModel.systemPrompt = system.join("\n")
workflowModel.toolExecutor = async (toolName, argsJson, _requestID) => {
const t = tools[toolName]