Update constants from api (#607)

* fix caption ipa display

* fetch gpt/tts providers from API

* fetch remote gpt presets

* update constants

* fix conversavtion save

* refactor ipa convert

* fetch ipa mapping from api

* fix ipa mark

* fix constant

* validate camdict pron audio src
This commit is contained in:
an-lee
2024-05-14 20:37:51 +08:00
committed by GitHub
parent e5f682c6c5
commit 49dabc89a3
13 changed files with 379 additions and 198 deletions

View File

@@ -80,8 +80,8 @@ export class Client {
return this.api.post("/api/sessions", decamelizeKeys(params));
}
info(): Promise<any> {
return this.api.get("/api/info");
config(key: string): Promise<any> {
return this.api.get(`/api/config/${key}`);
}
deviceCode(provider = "github"): Promise<{