LostRuins / koboldcpp

A simple one-file way to run various GGML and GGUF models with KoboldAI's UI
https://github.com/lostruins/koboldcpp
GNU Affero General Public License v3.0
4.35k stars 312 forks source link

hide API key when blurred #861

Closed netsgnut closed 1 month ago

netsgnut commented 1 month ago

Hi!

This is a quick hack to implement a fix for #851. It adds an isPassword parameter to inputBox; when it loses focus, it changes itself to a password field hiding the input. It is similar to the current implementation of focus_api_keys and hide_api_keys.

I'm sorry, but this is my first time working on the codebase, and I may be missing something. Thanks!

netsgnut commented 1 month ago

Ah got it. Thanks for the heads-up. I will keep that in mind.