diff --git a/src/content/docs/en/i-i/02.usage.md b/src/content/docs/en/i-i/02.usage.md index 231f866..095f476 100644 --- a/src/content/docs/en/i-i/02.usage.md +++ b/src/content/docs/en/i-i/02.usage.md @@ -42,6 +42,28 @@ Press `Super` or `Super`+`Tab` to open. - Click on a workspace to focus - Click side button (on gaming mice) to toggle special workspace (scratchpad) + +# APIs + +_Available on the left sidebar_ + +## AI services +- Each AI service requires an API key + - If you don't have one, there will be a prompt that takes you to the provider's website when you click it + - Once you've followed the instructions on that whatever website and got yourself a key, simply paste and send the key in the sidebar chatbox and it'll be saved. The above prompt should disappear and you should be able to use the API + - In case you need to change the key, use the `/key` command. It'll tell you what to do. + +## Waifu services +- No API key required, yay! +- For the "Waifus" tab, enter a category. See its docs for a list: https://waifu.pics/docs +- For the "Anime Booru" tab: + - `/yandere` to switch to yande.re mode (for general pics) [ Default ] + - `/konachan` to switch to Konachan (for wallpapers) + - Enter space separated tags and you'll get 20 pics (default, configurable) + - Include a number to go to that page + - Why not just use the web interface, you ask? Because the hidden pics 💦 are allowed in the API + + # Workspace Groups ## Introduction diff --git a/src/content/docs/vi/i-i/02.usage.md b/src/content/docs/vi/i-i/02.usage.md index 1cff328..1d9d995 100644 --- a/src/content/docs/vi/i-i/02.usage.md +++ b/src/content/docs/vi/i-i/02.usage.md @@ -42,6 +42,27 @@ Bản dịch này đã cũ và cần được cập nhật. Bản gốc (tiếng - Ấn vào workspace để focus - Ấn nút cạnh chuột (trên chuột gaming) để chuyển sang special workspace (scratchpad) +# Các API + +_Có trên sidebar bên trái_ + +## Các dịch vụ AI +- Mỗi dịch vụ cần một API key + - Nếu bạn không có, giao diện sẽ bảo bạn đến trang web của nhà cung cấp dịch vụ. Bấm vào đó. + - Khi đã làm theo chỉ dẫn trên trang web và lấy được API key, paste và gửi vào hộp chat trên sidebar. Sau đó bạn có thể dùng API + - Nếu bạn cần thay đổi API key, chạy `/key` + +## Các dịch vụ Waifu +- Không cần API key, yay! +- Với tab "Waifus", nhập một category để lấy 1 ảnh. Xem các tag ở đây: https://waifu.pics/docs +- Với tab "Anime Booru": + - `/yandere` để chuyển sang chế độ yande.re (cho ảnh bình thường) [ Mặc định ] + - `/konachan` để chuyển sang chế độ Konachan (cho hình nền) + - Nhập các tag ngăn cách bởi khoảng trống để lấy 20 ảnh (mặc định, có thể chỉnh được) + - Thêm vào một số để đi đến trang số đó + - Sao không dùng luôn trang web? Bởi vì mấy ảnh bị giấu 💦 có hiện lên trong API + + # Nhóm workspace ## Giới thiệu