mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
27 lines
755 B
Go
27 lines
755 B
Go
package settings
|
|
|
|
import (
|
|
"fmt"
|
|
"wis-free-v3/internal/config"
|
|
)
|
|
|
|
// ShowSettings displays current settings
|
|
func ShowSettings(cfg *config.Config) {
|
|
fmt.Println("\n=== wis-free-v3 Settings ===")
|
|
fmt.Printf("API Key: %s...%s\n", cfg.APIKey[:8], cfg.APIKey[len(cfg.APIKey)-4:])
|
|
fmt.Printf("Whisper Model: %s\n", cfg.WhisperModel)
|
|
fmt.Printf("AI Model: %s\n", cfg.AIModel)
|
|
fmt.Printf("Shortcut: %s\n", cfg.Shortcut)
|
|
fmt.Println("===========================")
|
|
}
|
|
|
|
// EditSettings provides a simple way to modify settings
|
|
func EditSettings(cfg *config.Config) error {
|
|
// For now, just return the config
|
|
// In a full implementation, this would open a dialog or prompt
|
|
fmt.Println("To edit settings, modify: ~/.wis-free-v3/config.json")
|
|
return nil
|
|
}
|
|
|
|
|