fix(route/chub): Update api url (#19179)

* Update api url

* remove trailing '
This commit is contained in:
flameleaf 2025-05-22 16:38:39 -07:00 committed by GitHub
parent 5a9d5b5947
commit 4ab7785e2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions

View File

@ -13,11 +13,11 @@ export const route: Route = {
async function handler() {
const hostURL = 'https://www.chub.ai/characters';
const apiURL = 'https://api.chub.ai/api/characters/search';
const data = await ofetch(apiURL, {
const apiURL = 'https://api.chub.ai/search';
const { data } = await ofetch(apiURL, {
headers: { Accept: 'application/json' },
query: {
query: '',
search: '',
first: 200,
page: 1,
sort: 'last_activity_at',
@ -31,8 +31,6 @@ async function handler() {
require_alternate_greetings: 'false',
require_custom_prompt: 'false',
exclude_mine: 'false',
venus: 'true',
chub: 'true',
min_tokens: 50,
require_expressions: 'false',
require_lore: 'false',