mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-29 17:20:21 -05:00
🎯 Remove AI preference from general setup (only for publishing)
This commit is contained in:
14
binder
14
binder
@@ -1135,7 +1135,7 @@ class BookBinder:
|
||||
release_choice = input().strip().lower()
|
||||
create_release = release_choice in ['y', 'yes']
|
||||
|
||||
# Ask about AI release notes
|
||||
# Ask about AI release notes (only for publishing)
|
||||
use_ai_notes = False
|
||||
if create_release:
|
||||
# Get user preference for AI
|
||||
@@ -1143,7 +1143,7 @@ class BookBinder:
|
||||
ai_default = preferences.get('ai_default', True)
|
||||
ai_default_text = "y" if ai_default else "n"
|
||||
|
||||
console.print("\n[blue]📝 Generate release notes with AI?[/blue]")
|
||||
console.print("\n[blue]🤖 AI Release Notes (requires Ollama):[/blue]")
|
||||
console.print(f"[bold]Use AI for release notes? (y/n) [{ai_default_text}]: [/bold]", end="")
|
||||
ai_choice = input().strip().lower()
|
||||
if not ai_choice:
|
||||
@@ -2040,13 +2040,6 @@ Format as markdown with clear sections."""
|
||||
'default': 'y',
|
||||
'options': ['y', 'n'],
|
||||
'description': '🌐 Browser Preferences:'
|
||||
},
|
||||
{
|
||||
'key': 'binder.ai-default',
|
||||
'prompt': 'Use AI for release notes by default? (y/n)',
|
||||
'default': 'y',
|
||||
'options': ['y', 'n'],
|
||||
'description': '🤖 AI Features:'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -2111,12 +2104,13 @@ Format as markdown with clear sections."""
|
||||
else:
|
||||
preferences['auto_open'] = True
|
||||
|
||||
# Get AI default setting
|
||||
# Get AI default setting (only used in publish flow)
|
||||
result = subprocess.run(['git', 'config', '--global', 'binder.ai-default'],
|
||||
capture_output=True, text=True)
|
||||
if result.returncode == 0:
|
||||
preferences['ai_default'] = result.stdout.strip() == 'true'
|
||||
else:
|
||||
# Default to True for AI features (only used in publish)
|
||||
preferences['ai_default'] = True
|
||||
|
||||
# Get GitHub username
|
||||
|
||||
Reference in New Issue
Block a user