Skip to content

Commit eeab156

Browse files
committed
Fix the duplicate code generation issue
1 parent 8e9b509 commit eeab156

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

dspy_code/commands/interactive_command.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -289,20 +289,6 @@ def start(self):
289289

290290
self._process_input(user_input)
291291

292-
# If no slash command match, process as natural language for code generation
293-
# But first check if model is connected
294-
if not self.llm_connector.current_model:
295-
console.print()
296-
show_warning_message("Model connection required for code generation.")
297-
console.print()
298-
console.print("[yellow]💡 Please connect to a model first:[/yellow]")
299-
console.print(" [cyan]/connect ollama llama3.1:8b[/cyan]")
300-
console.print(" [cyan]/models[/cyan] - See all available models")
301-
console.print()
302-
continue
303-
304-
self._process_input(user_input)
305-
306292
except KeyboardInterrupt:
307293
console.print("\n[yellow]Use 'exit' to quit[/yellow]")
308294
continue

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)