We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbd5faf commit f9d99f0Copy full SHA for f9d99f0
1 file changed
packages/opencode/src/session/llm.ts
@@ -205,7 +205,11 @@ export namespace LLM {
205
// calls but no tools param is present. When there are no active tools (e.g.
206
// during compaction), inject a stub tool to satisfy the validation requirement.
207
// The stub description explicitly tells the model not to call it.
208
- if (isLiteLLMProxy && Object.keys(tools).length === 0 && hasToolCalls(input.messages)) {
+ if (
209
+ (isLiteLLMProxy || input.model.providerID.includes("github-copilot")) &&
210
+ Object.keys(tools).length === 0 &&
211
+ hasToolCalls(input.messages)
212
+ ) {
213
tools["_noop"] = tool({
214
description: "Do not call this tool. It exists only for API compatibility and must never be invoked.",
215
inputSchema: jsonSchema({
0 commit comments