openmates 0.9.0-alpha.7 → 0.9.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-IU5NXWSL.js → chunk-IZYE5MAJ.js} +12 -2
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -958,7 +958,8 @@ var CHAT_MODELS = [
|
|
|
958
958
|
{ id: "gemini-3-flash-preview", name: "Gemini 3 Flash" },
|
|
959
959
|
{ id: "gemini-3-pro-image-preview", name: "Gemini 3 Pro" },
|
|
960
960
|
{ id: "gemini-3.1-pro-preview", name: "Gemini 3.1 Pro" },
|
|
961
|
-
{ id: "deepseek-
|
|
961
|
+
{ id: "deepseek-v4-pro", name: "DeepSeek V4 Pro" },
|
|
962
|
+
{ id: "deepseek-v4-flash", name: "DeepSeek V4 Flash" },
|
|
962
963
|
{ id: "qwen3-235b-a22b-2507", name: "Qwen 3 256b" },
|
|
963
964
|
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
|
964
965
|
{ id: "kimi-k2.6", name: "Kimi K2.6" },
|
|
@@ -1687,6 +1688,7 @@ var MATE_NAMES = {
|
|
|
1687
1688
|
onboarding_support: "Suki"
|
|
1688
1689
|
};
|
|
1689
1690
|
var DEFAULT_API_URL = process.env.OPENMATES_API_URL ?? "https://api.openmates.org";
|
|
1691
|
+
var SETTINGS_GET_RATE_LIMIT_RETRY_MS = 61e3;
|
|
1690
1692
|
function deriveAppUrl(apiUrl) {
|
|
1691
1693
|
if (process.env.OPENMATES_APP_URL) {
|
|
1692
1694
|
return process.env.OPENMATES_APP_URL.replace(/\/$/, "");
|
|
@@ -2617,10 +2619,18 @@ var OpenMatesClient = class _OpenMatesClient {
|
|
|
2617
2619
|
async settingsGet(path) {
|
|
2618
2620
|
this.requireSession();
|
|
2619
2621
|
const normalizedPath = this.normalizePath(path);
|
|
2620
|
-
|
|
2622
|
+
let response = await this.http.get(
|
|
2621
2623
|
normalizedPath,
|
|
2622
2624
|
this.getCliRequestHeaders()
|
|
2623
2625
|
);
|
|
2626
|
+
if (response.status === 429) {
|
|
2627
|
+
process.stderr.write(
|
|
2628
|
+
`Rate limited by settings API; retrying in ${Math.ceil(SETTINGS_GET_RATE_LIMIT_RETRY_MS / 1e3)}s...
|
|
2629
|
+
`
|
|
2630
|
+
);
|
|
2631
|
+
await new Promise((resolve4) => setTimeout(resolve4, SETTINGS_GET_RATE_LIMIT_RETRY_MS));
|
|
2632
|
+
response = await this.http.get(normalizedPath, this.getCliRequestHeaders());
|
|
2633
|
+
}
|
|
2624
2634
|
if (!response.ok) {
|
|
2625
2635
|
throw new Error(`Settings GET failed with HTTP ${response.status}`);
|
|
2626
2636
|
}
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED