Skip to content

Commit

Permalink
document APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
end-4 committed May 11, 2024
1 parent 8b13519 commit e58fe54
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/content/docs/en/i-i/02.usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- <sub><sub>Why not just use the web interface, you ask? Because the hidden pics 💦 are allowed in the API</sub></sub>


# Workspace Groups

## Introduction
Expand Down
21 changes: 21 additions & 0 deletions src/content/docs/vi/i-i/02.usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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ố đó
- <sub><sub>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</sub></sub>


# Nhóm workspace

## Giới thiệu
Expand Down

0 comments on commit e58fe54

Please sign in to comment.