Skip to content

✨ feat: configurable api - #252

Merged
SimonShiki merged 5 commits into
dev/3.2from
feat/configurable-api
Aug 16, 2026
Merged

✨ feat: configurable api#252
SimonShiki merged 5 commits into
dev/3.2from
feat/configurable-api

Conversation

@SimonShiki

@SimonShiki SimonShiki commented Aug 14, 2026

Copy link
Copy Markdown
Member

Description

Made TTS/translate service's api entrypoint configurable.

Proposed Changes

  1. Make two extension's api entrypoint configurable
  2. Now defaults to trampoline.simonshiki.top, to bypass cors and region network limits.
  3. Provides new options in settings to customize them for people
  4. Fix settings merge problem

Test Coverage

None

Additional Context

Signed-off-by: SimonShiki <sinangentoo@gmail.com>
Signed-off-by: SimonShiki <sinangentoo@gmail.com>
Comment thread packages/gui/src/reducers/settings.ts Outdated

@alexcui03 alexcui03 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additionally, useScratchOfficialApi should be true by default

@SimonShiki

SimonShiki commented Aug 15, 2026

Copy link
Copy Markdown
Member Author

additionally, useScratchOfficialApi should be true by default

since clipcc is primarily aimed at Chinese users, and the official api is inaccessible in China, is using the official source by default a good idea?

@alexcui03

Copy link
Copy Markdown
Member

additionally, useScratchOfficialApi should be true by default

since clipcc is primarily aimed at Chinese users, and the official api is inaccessible in China, is using the official source by default a good idea?

same with #253, the editor itself shouldn't assume the running environment. for community's editor or a specific platform, it is ok to override the settings by default, through external json config or by other ways. however the editor itself should behave as scratch, we just provide a way to change api.

Signed-off-by: SimonShiki <sinangentoo@gmail.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 15, 2026

Copy link
Copy Markdown

Deploying clipcc-preview with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0241096
Status: ✅  Deploy successful!
Preview URL: https://97e599a8.clipcc-preview.pages.dev
Branch Preview URL: https://feat-configurable-api.clipcc-preview.pages.dev

View logs

Signed-off-by: SimonShiki <sinangentoo@gmail.com>
@SimonShiki
SimonShiki requested a review from alexcui03 August 15, 2026 09:26
Signed-off-by: SimonShiki <sinangentoo@gmail.com>

@alexcui03 alexcui03 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gltm. in the future, we may consider to migrate these settings into extensions.

@SimonShiki
SimonShiki merged commit 75151bc into dev/3.2 Aug 16, 2026
9 checks passed
@SimonShiki
SimonShiki deleted the feat/configurable-api branch August 16, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants