routing: the default routing is called Quota first, not Smart (@canlee886)
The groups magpie finds on its own (auto/<model>) hold one model served by
several providers, and with no rules they follow their Routing, whose
default was labelled Smart / 智能. @canlee886 read that as "judges how hard
the task is and sends easy ones to a cheap model". It does not: the member
whose allowance renews soonest goes first, ties in list order, the next takes
over on a failure.
A cheap-model rule cannot be a built-in default for these groups: their
members are the same model, so there is no cheaper member to send an easy
request to. The mechanism for hard-to-strong, easy-to-cheap exists (the
"Hard to strong, easy to cheap" template and rules with an intent) but it
needs members of different strength, which the user picks. So the honest fix
is the label.
- The mode is "Quota first" (额度优先, 額度優先, 枠優先, Kontingent zuerst) in
every picker, chip, tooltip and hint, in all five languages (the English
key text and each translation).
- The no-rules line now says it does not judge how hard a task is.
- docs/reference.md, gateway-routing.md and the routing-groups site pages
(en, zh, ja) name it the same. The stored value ("") is unchanged, so no
saved group or provider changes behaviour and nothing needs migrating.
Run (mica, node --test, chromium and webkit, five languages): 19 GUI files
(routing-rule-example, routing-save, routing-group-strategy, routing-manual,
routing-weight-chip, rotate-figure, account-weight, routing-key-windows,
routing-free-expiring, builtins, i18n-keys, i18n-en-no-cjk and the routing
Smart-text files): 440 of 446 pass. The 6 reds (account-arrange 1 and 2,
key-weight 17 to 20) fail identically on origin/main 87a933e50, filed
separately. The tests assert the new label and hint; run against the old
assets they fail on the old text. Not run: the full Go suite and the full GUI
suite (run after the tag); not tried in the Linux WebKitGTK app.
This commit is contained in:
+10
-10
@@ -2264,7 +2264,7 @@ result for every request: who went first, and why.
|
||||
of a window (100% In order). *Stays: Strict* does, and asks no other:
|
||||
the conversation stays on its account, resting, spent or past its cap,
|
||||
and its errors go to the agent.
|
||||
With *Stays: Session* or *Strict* under Smart, Least used first or
|
||||
With *Stays: Session* or *Strict* under Quota first, Least used first or
|
||||
Use before expiry, a new conversation goes to the account the fewest other
|
||||
conversations of the last 30 minutes are on (of those not resting and
|
||||
under 90%), so sessions side by side each keep an account of their own;
|
||||
@@ -2274,13 +2274,13 @@ So routing decides who goes first only for a conversation nobody has
|
||||
answered yet. An account that has used 90% goes behind the others for new
|
||||
conversations, but a conversation already on it stays there until 98%.
|
||||
|
||||
**The routings.** Smart, Least used first and Use before expiry go by the share
|
||||
**The routings.** Quota first, Least used first and Use before expiry go by the share
|
||||
used of the fullest window that counts the model, the 5-hour window
|
||||
included. Smart and Use before expiry put an account behind the others once a
|
||||
included. Quota first and Use before expiry put an account behind the others once a
|
||||
window is at 90% or more, and behind those once one is at 98% or more,
|
||||
each of these groups ordered by the share used.
|
||||
|
||||
- **Smart** (the default): of the accounts under 90%, the one whose
|
||||
- **Quota first** (the default): of the accounts under 90%, the one whose
|
||||
allowance renews soonest goes first, because what it has left is lost at
|
||||
the reset. It is not load balancing: every new conversation goes to that
|
||||
account too, the others showing "one renewing sooner goes first" on the
|
||||
@@ -2343,7 +2343,7 @@ each of these groups ordered by the share used.
|
||||
counts. Accounts whose
|
||||
pace is within a tenth of the highest in their band count as alike, and
|
||||
among them the one magpie sent the fewest tokens lately goes first. A
|
||||
Claude or ChatGPT account not known goes first once, as in Smart (a
|
||||
Claude or ChatGPT account not known goes first once, as in Quota first (a
|
||||
ChatGPT one while another is known); another unknown account counts as
|
||||
a fresh week. A ChatGPT account whose usage
|
||||
page can't be read is known from the week its answers tell, until a
|
||||
@@ -2381,16 +2381,16 @@ each of these groups ordered by the share used.
|
||||
are kept for the long requests only they can take. A member whose window
|
||||
the request is longer than is left out before it is asked, as under every
|
||||
routing, and asked only once every one with room is out of its
|
||||
allowance. Members of one size go as Smart orders them, a member all but
|
||||
allowance. Members of one size go as Quota first orders them, a member all but
|
||||
used up still goes after those with room, and one whose window isn't
|
||||
known goes after every known one. The window is the one you set for the
|
||||
model, else the model list's. The Routing page says why the first went
|
||||
first: "Composer 2.5's 200K context window is the smallest that holds
|
||||
this request".
|
||||
|
||||
The routings besides Smart are the built-in plugin `rotation` (Routing
|
||||
The routings besides Quota first are the built-in plugin `rotation` (Routing
|
||||
strategies in Plugins › Built-in). It stays on while a provider or group is
|
||||
routed by one of them. Turned off, the pickers offer Smart alone, and a
|
||||
routed by one of them. Turned off, the pickers offer Quota first alone, and a
|
||||
provider or group still set to one of them is tried in its listed order.
|
||||
|
||||
Your own routing groups are the built-in plugin `groups` (Routing groups in
|
||||
@@ -2406,12 +2406,12 @@ depends on the routing:
|
||||
| --- | --- |
|
||||
| In order | Everything: the first takes every request it can. |
|
||||
| In turn | Where the rotation goes next. |
|
||||
| Smart | Only between accounts whose windows all renew in the same hours, or whose shares used are equal. |
|
||||
| Quota first | Only between accounts whose windows all renew in the same hours, or whose shares used are equal. |
|
||||
| Least used first | Only between accounts with the same share used and the same tokens sent lately. |
|
||||
| Use before expiry | Only between accounts in the same pace band that magpie sent the same tokens lately, in practice none since magpie started. |
|
||||
| Speed first | Only between those within a tenth of each other's speed, and among those not measured lately. |
|
||||
| Cheapest first | Only between those that cost the same now, and among those with no known price. |
|
||||
| Small context first | Only between those whose context windows are the same size, after Smart's order, and among those whose window isn't known. |
|
||||
| Small context first | Only between those whose context windows are the same size, after Quota first's order, and among those whose window isn't known. |
|
||||
|
||||
For Claude Code and Codex, *Make first* also signs the agent in to that
|
||||
account, because the account the agent is signed in to is first. With
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -12414,7 +12414,7 @@ function kindTag(c, kind) {
|
||||
// renderRouting: spread over keys or accounts and stickiness, staged in
|
||||
// the draft and made with Save (01huadalang on Discord)
|
||||
const ROUTINGS = [
|
||||
["", "Smart", "Not load balancing: every request, new conversations too, goes to the one account whose quota renews soonest, since what it has left is lost then, until it runs low or can't answer. Keys go in their order. To spread requests evenly, pick In turn or Least used first. One out of credit sits out half an hour, one out of quota until it resets, one rate limited as long as the vendor asks, and one that fails a minute, longer each time it fails again."],
|
||||
["", "Quota first", "Not load balancing: every request, new conversations too, goes to the one account whose quota renews soonest, since what it has left is lost then, until it runs low or can't answer. Keys go in their order. To spread requests evenly, pick In turn or Least used first. One out of credit sits out half an hour, one out of quota until it resets, one rate limited as long as the vendor asks, and one that fails a minute, longer each time it fails again."],
|
||||
["order", "In order", "Requests go to the first; the next takes over when the one before runs out of quota, hits a rate limit or fails."],
|
||||
// dzxx0496 on Discord: free accounts one after another, the first not
|
||||
// taking the requests back once it renews (routes.Drain)
|
||||
|
||||
+16
-16
@@ -1217,7 +1217,7 @@ const I18N = {
|
||||
"Send each request's traces and metrics to an OpenTelemetry collector, such as Langfuse": "把每个请求的追踪和指标发送到 OpenTelemetry 收集器,比如 Langfuse",
|
||||
"Sending to a collector": "正在发送到收集器",
|
||||
"Routing strategies": "路由策略",
|
||||
"The routings besides Smart: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first": "智能以外的路由方式:按顺序、用完再换、轮流、用量少的优先、到期前用完、按权重、免费优先、速度优先和最便宜优先",
|
||||
"The routings besides Quota first: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first": "额度优先以外的路由方式:按顺序、用完再换、轮流、用量少的优先、到期前用完、按权重、免费优先、速度优先和最便宜优先",
|
||||
"1 provider or group routed so": "1 个提供商或路由组在用",
|
||||
"{n} providers and groups routed so": "{n} 个提供商和路由组在用",
|
||||
"Run the JavaScript gateway plugins: middleware on agents' requests and replies, routings and usage observers": "运行 JavaScript 网关插件:Agent 请求和回复上的中间件、路由方式和用量观察者",
|
||||
@@ -2311,7 +2311,7 @@ const I18N = {
|
||||
"{agent} stays on this account even when it runs low. Requests through magpie still follow Routing.": "额度快用完时,{agent} 也不换账号。经 magpie 的请求仍按「路由」分配。",
|
||||
"{agent} stays signed in to the first account": "{agent} 将始终登录首选账号",
|
||||
"magpie moves {agent} to an account with room again": "首选账号额度不足时,会再把 {agent} 切到有余量的账号",
|
||||
"Smart": "智能",
|
||||
"Quota first": "额度优先",
|
||||
"Not load balancing: every request, new conversations too, goes to the one account whose quota renews soonest, since what it has left is lost then, until it runs low or can't answer. Keys go in their order. To spread requests evenly, pick In turn or Least used first. One out of credit sits out half an hour, one out of quota until it resets, one rate limited as long as the vendor asks, and one that fails a minute, longer each time it fails again.": "不是负载均衡:所有请求(新会话也一样)都给额度最先重置的那一个账号(它剩下的额度到时就作废),直到它快用完或无法响应才换下一个;密钥按顺序。要平均分摊,请选“轮流”或“用量少的优先”。欠费的暂停半小时,额度用完的暂停到重置,被限流的按厂商要求暂停,出错的暂停一分钟,再出错则逐次延长。",
|
||||
"{user} is first in the order; {routing} still goes by each account's quota, so the order only settles ties. In order uses the first first.": "{user} 已排在首位;{routing} 仍按各账号的额度挑选,顺序只在条件相同时起作用。想先用完首选账号,请选「按顺序」。",
|
||||
"In order": "按顺序",
|
||||
@@ -2334,7 +2334,7 @@ const I18N = {
|
||||
"Speed first: {who} hasn't answered {model} lately, so it takes this request to be measured \u2014 one request in five goes to one not measured.": "速度优先:{who} 最近没回答过 {model},所以这个请求给它,好测一下速度——每五个请求有一个给没测过的。",
|
||||
"Speed first: none has answered {model} lately, so {who}, first in the list, goes first and its answer measures it.": "速度优先:最近都没回答过 {model},所以按列出的顺序先用 {who},它的回答会测出速度。",
|
||||
"Free quota by expiry": "免费额度先到期先用",
|
||||
"Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Smart orders them.": "免费额度先到期先用:免费套餐的账号,或模型在那里不花钱的,先用,其中免费额度最先失效的最先——在下次重置时,或其额度包更早过期时;用完了就换下一个。只有所有免费的都没有额度了,才用付费的,付费的按智能的顺序。",
|
||||
"Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Quota first orders them.": "免费额度先到期先用:免费套餐的账号,或模型在那里不花钱的,先用,其中免费额度最先失效的最先——在下次重置时,或其额度包更早过期时;用完了就换下一个。只有所有免费的都没有额度了,才用付费的,付费的按额度优先的顺序。",
|
||||
"its free quota is lost soonest, in {d}.": "它的免费额度最先失效,还有 {d}。",
|
||||
"Free quota by expiry: {who}'s free quota is lost soonest, in {d}, so it's spent first.": "免费额度先到期先用:{who} 的免费额度最先失效,还有 {d},所以先用它。",
|
||||
"it has free quota left, so it's spent before any paid one.": "它还有免费额度,所以先于任何付费的使用。",
|
||||
@@ -2351,7 +2351,7 @@ const I18N = {
|
||||
"Cheapest first: no price is known for {model} on {who}, so it goes in its listed place after every one that has a price.": "最便宜优先:不知道 {model} 在 {who} 上的价格,所以它排在所有有价格的后面,按列出的位置。",
|
||||
"Small context first": "小上下文优先",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; one whose window it is longer than is left out.": "小上下文优先:每个请求交给能装下它、上下文窗口最小的成员,大窗口的留给长请求;窗口比请求短的不参与。",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Smart orders them, and one whose window isn't known goes last.": "小上下文优先:每个请求交给能装下它、上下文窗口最小的成员,大窗口的留给长请求;窗口比请求短的成员不参与。窗口一样大的按智能的顺序,窗口未知的排最后。",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Quota first orders them, and one whose window isn't known goes last.": "小上下文优先:每个请求交给能装下它、上下文窗口最小的成员,大窗口的留给长请求;窗口比请求短的成员不参与。窗口一样大的按额度优先的顺序,窗口未知的排最后。",
|
||||
"its {n} context window is the smallest that holds this request.": "它 {n} 的上下文窗口是能装下这个请求的最小的。",
|
||||
"Small context first: {who}'s {n} context window is the smallest that holds this request.": "小上下文优先:{who} 的 {n} 上下文窗口是能装下这个请求的最小的。",
|
||||
"Small context first: no member with a known context window can take this request, so {who} is next.": "小上下文优先:没有已知窗口的成员能接这个请求,所以轮到 {who}。",
|
||||
@@ -6735,7 +6735,7 @@ const I18N = {
|
||||
"Send each request's traces and metrics to an OpenTelemetry collector, such as Langfuse": "把每個請求的追蹤和指標傳送到 OpenTelemetry 收集器,例如 Langfuse",
|
||||
"Sending to a collector": "正在傳送到收集器",
|
||||
"Routing strategies": "路由策略",
|
||||
"The routings besides Smart: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first": "智慧以外的路由方式:按順序、用完再換、輪流、用量少的優先、到期前用完、按權重、免費優先、速度優先和最便宜優先",
|
||||
"The routings besides Quota first: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first": "額度優先以外的路由方式:按順序、用完再換、輪流、用量少的優先、到期前用完、按權重、免費優先、速度優先和最便宜優先",
|
||||
"1 provider or group routed so": "1 個提供商或路由組在用",
|
||||
"{n} providers and groups routed so": "{n} 個提供商和路由組在用",
|
||||
"Run the JavaScript gateway plugins: middleware on agents' requests and replies, routings and usage observers": "執行 JavaScript 閘道外掛:Agent 請求和回覆上的中介軟體、路由方式和用量觀察者",
|
||||
@@ -7816,7 +7816,7 @@ const I18N = {
|
||||
"{agent} stays on this account even when it runs low. Requests through magpie still follow Routing.": "額度快用完時,{agent} 也不換帳號。經 magpie 的請求仍按「路由」分配。",
|
||||
"{agent} stays signed in to the first account": "{agent} 將始終登入首選帳號",
|
||||
"magpie moves {agent} to an account with room again": "首選帳號額度不足時,會再把 {agent} 切到有餘量的帳號",
|
||||
"Smart": "智慧",
|
||||
"Quota first": "額度優先",
|
||||
"Not load balancing: every request, new conversations too, goes to the one account whose quota renews soonest, since what it has left is lost then, until it runs low or can't answer. Keys go in their order. To spread requests evenly, pick In turn or Least used first. One out of credit sits out half an hour, one out of quota until it resets, one rate limited as long as the vendor asks, and one that fails a minute, longer each time it fails again.": "不是負載平衡:所有請求(新對話也一樣)都給額度最先重置的那一個帳號(它剩下的額度到時就作廢),直到它快用完或無法回應才換下一個;金鑰按順序。要平均分攤,請選「輪流」或「用量少的優先」。欠費的暫停半小時,額度用完的暫停到重置,被限流的按廠商要求暫停,出錯的暫停一分鐘,再出錯則逐次延長。",
|
||||
"{user} is first in the order; {routing} still goes by each account's quota, so the order only settles ties. In order uses the first first.": "{user} 已排在首位;{routing} 仍按各帳號的額度挑選,順序只在條件相同時起作用。想先用完首選帳號,請選「按順序」。",
|
||||
"In order": "按順序",
|
||||
@@ -7839,7 +7839,7 @@ const I18N = {
|
||||
"Speed first: {who} hasn't answered {model} lately, so it takes this request to be measured \u2014 one request in five goes to one not measured.": "速度優先:{who} 最近沒回答過 {model},所以這個請求給它,好測一下速度——每五個請求有一個給沒測過的。",
|
||||
"Speed first: none has answered {model} lately, so {who}, first in the list, goes first and its answer measures it.": "速度優先:最近都沒回答過 {model},所以按列出的順序先用 {who},它的回答會測出速度。",
|
||||
"Free quota by expiry": "免費額度先到期先用",
|
||||
"Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Smart orders them.": "免費額度先到期先用:免費方案的帳號,或模型在那裡不花錢的,先用,其中免費額度最先失效的最先——在下次重置時,或其額度包更早到期時;用完了就換下一個。只有所有免費的都沒有額度了,才用付費的,付費的按智慧的順序。",
|
||||
"Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Quota first orders them.": "免費額度先到期先用:免費方案的帳號,或模型在那裡不花錢的,先用,其中免費額度最先失效的最先——在下次重置時,或其額度包更早到期時;用完了就換下一個。只有所有免費的都沒有額度了,才用付費的,付費的按額度優先的順序。",
|
||||
"its free quota is lost soonest, in {d}.": "它的免費額度最先失效,還有 {d}。",
|
||||
"Free quota by expiry: {who}'s free quota is lost soonest, in {d}, so it's spent first.": "免費額度先到期先用:{who} 的免費額度最先失效,還有 {d},所以先用它。",
|
||||
"it has free quota left, so it's spent before any paid one.": "它還有免費額度,所以先於任何付費的使用。",
|
||||
@@ -7856,7 +7856,7 @@ const I18N = {
|
||||
"Cheapest first: no price is known for {model} on {who}, so it goes in its listed place after every one that has a price.": "最便宜優先:不知道 {model} 在 {who} 上的價格,所以它排在所有有價格的後面,按列出的位置。",
|
||||
"Small context first": "小上下文優先",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; one whose window it is longer than is left out.": "小上下文優先:每個請求交給能裝下它、上下文視窗最小的成員,大視窗的留給長請求;視窗比請求短的不參與。",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Smart orders them, and one whose window isn't known goes last.": "小上下文優先:每個請求交給能裝下它、上下文視窗最小的成員,大視窗的留給長請求;視窗比請求短的成員不參與。視窗一樣大的按智慧的順序,視窗未知的排最後。",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Quota first orders them, and one whose window isn't known goes last.": "小上下文優先:每個請求交給能裝下它、上下文視窗最小的成員,大視窗的留給長請求;視窗比請求短的成員不參與。視窗一樣大的按額度優先的順序,視窗未知的排最後。",
|
||||
"its {n} context window is the smallest that holds this request.": "它 {n} 的上下文視窗是能裝下這個請求的最小的。",
|
||||
"Small context first: {who}'s {n} context window is the smallest that holds this request.": "小上下文優先:{who} 的 {n} 上下文視窗是能裝下這個請求的最小的。",
|
||||
"Small context first: no member with a known context window can take this request, so {who} is next.": "小上下文優先:沒有已知視窗的成員能接這個請求,所以輪到 {who}。",
|
||||
@@ -12219,7 +12219,7 @@ const I18N = {
|
||||
"Send each request's traces and metrics to an OpenTelemetry collector, such as Langfuse": "各リクエストのトレースとメトリクスを Langfuse などの OpenTelemetry コレクターに送ります",
|
||||
"Sending to a collector": "コレクターに送信中",
|
||||
"Routing strategies": "ルーティング戦略",
|
||||
"The routings besides Smart: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first": "スマート以外のルーティング:順番、使い切ってから次へ、交互、使用量が最少のものを優先、期限前に使い切る、重み付け、無料優先、速度優先、最安優先",
|
||||
"The routings besides Quota first: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first": "枠優先以外のルーティング:順番、使い切ってから次へ、交互、使用量が最少のものを優先、期限前に使い切る、重み付け、無料優先、速度優先、最安優先",
|
||||
"1 provider or group routed so": "1 個のプロバイダーまたはグループが使用中",
|
||||
"{n} providers and groups routed so": "{n} 個のプロバイダーとグループが使用中",
|
||||
"Run the JavaScript gateway plugins: middleware on agents' requests and replies, routings and usage observers": "JavaScript ゲートウェイプラグインを実行します:エージェントのリクエストと応答のミドルウェア、ルーティング、使用量オブザーバー",
|
||||
@@ -13290,7 +13290,7 @@ const I18N = {
|
||||
"{agent} stays on this account even when it runs low. Requests through magpie still follow Routing.": "残量が少なくなっても、{agent} はこのアカウントのままです。magpie 経由のリクエストは「ルーティング」に従います。",
|
||||
"{agent} stays signed in to the first account": "{agent} は最初のアカウントにサインインしたままになります",
|
||||
"magpie moves {agent} to an account with room again": "magpie は {agent} を再び残量のあるアカウントに切り替えます",
|
||||
"Smart": "スマート",
|
||||
"Quota first": "枠優先",
|
||||
"Not load balancing: every request, new conversations too, goes to the one account whose quota renews soonest, since what it has left is lost then, until it runs low or can't answer. Keys go in their order. To spread requests evenly, pick In turn or Least used first. One out of credit sits out half an hour, one out of quota until it resets, one rate limited as long as the vendor asks, and one that fails a minute, longer each time it fails again.": "負荷分散ではありません。リクエストは一度に 1 つのアカウント、枠が最も早くリセットされるもの(残りはその時点で失われるため)に送られます(新しい会話も同じ)。残りが少なくなるか応答できなくなるまで次には移りません。キーは順番どおりです。均等に分けるには「交互」か「使用量が最少のものを優先」を選んでください。残高切れは 30 分、枠切れはリセットまで、レート制限はベンダーの指定どおり休み、失敗したものは 1 分、失敗が続くたびに長く休みます。",
|
||||
"{user} is first in the order; {routing} still goes by each account's quota, so the order only settles ties. In order uses the first first.": "{user} が順番の先頭になりました。{routing} は引き続き各アカウントの枠で選ぶため、順番は条件が同じときだけ効きます。先頭から使い切るには「順番」を選んでください。",
|
||||
"In order": "順番",
|
||||
@@ -13313,7 +13313,7 @@ const I18N = {
|
||||
"Speed first: {who} hasn't answered {model} lately, so it takes this request to be measured \u2014 one request in five goes to one not measured.": "速度優先:{who} は最近 {model} に応答していないため、測るためにこのリクエストを受けます。5 件に 1 件は測っていないものに回ります。",
|
||||
"Speed first: none has answered {model} lately, so {who}, first in the list, goes first and its answer measures it.": "速度優先:最近 {model} に応答したものがないため、並び順で最初の {who} が先に使われ、その応答で速さを測ります。",
|
||||
"Free quota by expiry": "無料枠を期限順に",
|
||||
"Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Smart orders them.": "無料枠を期限順に:無料プランのアカウントや、そこではモデルが無料のものを先に使い、そのうち無料枠が最も早く失われるものから使います——次のリセット時、またはクレジットの期限がそれより早ければその時です。使い切ったら次へ。有料のものは、どの無料のものにも枠が残っていないときだけ使い、有料どうしはスマートの順です。",
|
||||
"Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Quota first orders them.": "無料枠を期限順に:無料プランのアカウントや、そこではモデルが無料のものを先に使い、そのうち無料枠が最も早く失われるものから使います——次のリセット時、またはクレジットの期限がそれより早ければその時です。使い切ったら次へ。有料のものは、どの無料のものにも枠が残っていないときだけ使い、有料どうしは枠優先の順です。",
|
||||
"its free quota is lost soonest, in {d}.": "無料枠が最も早く失われます(残り {d})。",
|
||||
"Free quota by expiry: {who}'s free quota is lost soonest, in {d}, so it's spent first.": "無料枠を期限順に:{who} の無料枠が最も早く失われる(残り {d})ので、先に使います。",
|
||||
"it has free quota left, so it's spent before any paid one.": "無料枠が残っているので、有料のものより先に使います。",
|
||||
@@ -13330,7 +13330,7 @@ const I18N = {
|
||||
"Cheapest first: no price is known for {model} on {who}, so it goes in its listed place after every one that has a price.": "最安優先:{who} での {model} の価格が分からないため、価格のあるものすべての後ろ、設定順の位置に入ります。",
|
||||
"Small context first": "小さいコンテキスト優先",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; one whose window it is longer than is left out.": "小さいコンテキスト優先:各リクエストは、それが収まる中でコンテキストウィンドウが最も小さいメンバーに送られ、大きいものは長いリクエストのために残します。ウィンドウより長いリクエストはそのメンバーに送りません。",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Smart orders them, and one whose window isn't known goes last.": "小さいコンテキスト優先:各リクエストは、それが収まる中でコンテキストウィンドウが最も小さいメンバーに送られ、大きいものは長いリクエストのために残します。リクエストがウィンドウより長いメンバーは外します。同じ大きさのメンバーはスマートの順で、ウィンドウが分からないものは最後です。",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Quota first orders them, and one whose window isn't known goes last.": "小さいコンテキスト優先:各リクエストは、それが収まる中でコンテキストウィンドウが最も小さいメンバーに送られ、大きいものは長いリクエストのために残します。リクエストがウィンドウより長いメンバーは外します。同じ大きさのメンバーは枠優先の順で、ウィンドウが分からないものは最後です。",
|
||||
"its {n} context window is the smallest that holds this request.": "{n} のコンテキストウィンドウが、このリクエストが収まる最小のものです。",
|
||||
"Small context first: {who}'s {n} context window is the smallest that holds this request.": "小さいコンテキスト優先:{who} の {n} のコンテキストウィンドウが、このリクエストが収まる最小のものです。",
|
||||
"Small context first: no member with a known context window can take this request, so {who} is next.": "小さいコンテキスト優先:ウィンドウの分かるメンバーではこのリクエストを受けられないため、次は {who} です。",
|
||||
@@ -17720,7 +17720,7 @@ const I18N = {
|
||||
"Send each request's traces and metrics to an OpenTelemetry collector, such as Langfuse": "Traces und Metriken jeder Anfrage an einen OpenTelemetry-Collector senden, etwa Langfuse",
|
||||
"Sending to a collector": "Sendet an einen Collector",
|
||||
"Routing strategies": "Routing-Strategien",
|
||||
"The routings besides Smart: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first": "Die Routings neben Intelligent: Der Reihe nach, Bis aufgebraucht, Abwechselnd, Am wenigsten genutzte zuerst, Vor Ablauf aufbrauchen, Nach Gewicht, Kostenlos zuerst, Schnellste zuerst und Günstigste zuerst",
|
||||
"The routings besides Quota first: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first": "Die Routings neben Kontingent zuerst: Der Reihe nach, Bis aufgebraucht, Abwechselnd, Am wenigsten genutzte zuerst, Vor Ablauf aufbrauchen, Nach Gewicht, Kostenlos zuerst, Schnellste zuerst und Günstigste zuerst",
|
||||
"1 provider or group routed so": "1 Anbieter oder Gruppe so geroutet",
|
||||
"{n} providers and groups routed so": "{n} Anbieter und Gruppen so geroutet",
|
||||
"Run the JavaScript gateway plugins: middleware on agents' requests and replies, routings and usage observers": "Die JavaScript-Gateway-Plugins ausführen: Middleware auf Anfragen und Antworten der Agenten, Routings und Nutzungsbeobachter",
|
||||
@@ -18807,7 +18807,7 @@ const I18N = {
|
||||
"{agent} stays on this account even when it runs low. Requests through magpie still follow Routing.": "{agent} bleibt bei diesem Konto, auch wenn es knapp wird. Anfragen über magpie folgen weiter der „Weiterleitung“.",
|
||||
"{agent} stays signed in to the first account": "{agent} bleibt beim ersten Konto angemeldet",
|
||||
"magpie moves {agent} to an account with room again": "magpie wechselt {agent} wieder zu einem Konto mit freiem Kontingent",
|
||||
"Smart": "Intelligent",
|
||||
"Quota first": "Kontingent zuerst",
|
||||
"Not load balancing: every request, new conversations too, goes to the one account whose quota renews soonest, since what it has left is lost then, until it runs low or can't answer. Keys go in their order. To spread requests evenly, pick In turn or Least used first. One out of credit sits out half an hour, one out of quota until it resets, one rate limited as long as the vendor asks, and one that fails a minute, longer each time it fails again.": "Kein Lastausgleich: Jede Anfrage, auch neuer Unterhaltungen, geht an das eine Konto, dessen Kontingent am frühesten zurückgesetzt wird (was es übrig hat, verfällt dann), bis es knapp wird oder nicht antworten kann. Schlüssel gehen der Reihe nach. Für gleichmäßige Verteilung „Abwechselnd“ oder „Am wenigsten genutzte zuerst“ wählen. Eines ohne Guthaben pausiert eine halbe Stunde, eines ohne Kontingent bis zum Zurücksetzen, eines mit Ratenlimit so lange, wie der Anbieter verlangt, und eines, das fehlschlägt, eine Minute, bei jedem weiteren Fehlschlag länger.",
|
||||
"{user} is first in the order; {routing} still goes by each account's quota, so the order only settles ties. In order uses the first first.": "{user} steht jetzt an erster Stelle; {routing} geht weiter nach dem Kontingent jedes Kontos, die Reihenfolge entscheidet nur bei Gleichstand. Der Reihe nach verbraucht zuerst das erste.",
|
||||
"In order": "Der Reihe nach",
|
||||
@@ -18830,7 +18830,7 @@ const I18N = {
|
||||
"Speed first: {who} hasn't answered {model} lately, so it takes this request to be measured \u2014 one request in five goes to one not measured.": "Schnellste zuerst: {who} hat {model} zuletzt nicht beantwortet und bekommt diese Anfrage, um gemessen zu werden — eine von fünf Anfragen geht an einen nicht Gemessenen.",
|
||||
"Speed first: none has answered {model} lately, so {who}, first in the list, goes first and its answer measures it.": "Schnellste zuerst: Keiner hat {model} zuletzt beantwortet, daher geht {who}, der Erste in der Liste, zuerst, und seine Antwort misst ihn.",
|
||||
"Free quota by expiry": "Gratiskontingent nach Ablauf",
|
||||
"Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Smart orders them.": "Gratiskontingent nach Ablauf: Konten mit einem Gratistarif, oder deren Modell dort nichts kostet, kommen zuerst, und zwar das, dessen Gratiskontingent am frühesten verfällt — bei seinem nächsten Zurücksetzen, oder wenn seine Guthaben früher ablaufen; ist es aufgebraucht, das nächste. Ein bezahltes nimmt Anfragen erst, wenn keinem Gratiskonto mehr Kontingent bleibt, die bezahlten in der Reihenfolge von Smart.",
|
||||
"Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Quota first orders them.": "Gratiskontingent nach Ablauf: Konten mit einem Gratistarif, oder deren Modell dort nichts kostet, kommen zuerst, und zwar das, dessen Gratiskontingent am frühesten verfällt — bei seinem nächsten Zurücksetzen, oder wenn seine Guthaben früher ablaufen; ist es aufgebraucht, das nächste. Ein bezahltes nimmt Anfragen erst, wenn keinem Gratiskonto mehr Kontingent bleibt, die bezahlten in der Reihenfolge von Smart.",
|
||||
"its free quota is lost soonest, in {d}.": "Sein Gratiskontingent verfällt am frühesten, in {d}.",
|
||||
"Free quota by expiry: {who}'s free quota is lost soonest, in {d}, so it's spent first.": "Gratiskontingent nach Ablauf: Das Gratiskontingent von {who} verfällt am frühesten, in {d}, also wird es zuerst verbraucht.",
|
||||
"it has free quota left, so it's spent before any paid one.": "Es hat noch Gratiskontingent, also wird es vor jedem bezahlten verbraucht.",
|
||||
@@ -18847,7 +18847,7 @@ const I18N = {
|
||||
"Cheapest first: no price is known for {model} on {who}, so it goes in its listed place after every one that has a price.": "Günstigste zuerst: Für {model} bei {who} ist kein Preis bekannt, daher kommt es an seinem Platz in der Liste hinter alle mit Preis.",
|
||||
"Small context first": "Kleiner Kontext zuerst",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; one whose window it is longer than is left out.": "Kleiner Kontext zuerst: Jede Anfrage geht an das Mitglied mit dem kleinsten Kontextfenster, in das sie passt, sodass die großen für lange Anfragen bleiben; eines, dessen Fenster sie übersteigt, wird ausgelassen.",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Smart orders them, and one whose window isn't known goes last.": "Kleiner Kontext zuerst: Jede Anfrage geht an das Mitglied mit dem kleinsten Kontextfenster, in das sie passt, sodass die großen für lange Anfragen bleiben; ein Mitglied, dessen Fenster die Anfrage übersteigt, wird ausgelassen. Mitglieder gleicher Größe gehen in der Reihenfolge von „Intelligent“, eines mit unbekanntem Fenster zuletzt.",
|
||||
"Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Quota first orders them, and one whose window isn't known goes last.": "Kleiner Kontext zuerst: Jede Anfrage geht an das Mitglied mit dem kleinsten Kontextfenster, in das sie passt, sodass die großen für lange Anfragen bleiben; ein Mitglied, dessen Fenster die Anfrage übersteigt, wird ausgelassen. Mitglieder gleicher Größe gehen in der Reihenfolge von „Kontingent zuerst“, eines mit unbekanntem Fenster zuletzt.",
|
||||
"its {n} context window is the smallest that holds this request.": "sein Kontextfenster von {n} ist das kleinste, in das diese Anfrage passt.",
|
||||
"Small context first: {who}'s {n} context window is the smallest that holds this request.": "Kleiner Kontext zuerst: Das Kontextfenster von {who} mit {n} ist das kleinste, in das diese Anfrage passt.",
|
||||
"Small context first: no member with a known context window can take this request, so {who} is next.": "Kleiner Kontext zuerst: Kein Mitglied mit bekanntem Kontextfenster kann diese Anfrage annehmen, daher ist {who} als Nächstes dran.",
|
||||
|
||||
@@ -782,7 +782,7 @@ function routingPage(part) {
|
||||
const tryOk = (tr) => tr.status < 400 && !tr.fail;
|
||||
const API = { anthropic: "Anthropic", chat: "OpenAI", responses: "OpenAI Responses", gemini: "Gemini" };
|
||||
const MODES = {
|
||||
"": ["Smart", "Smart: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last."],
|
||||
"": ["Quota first", "Quota first: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last."],
|
||||
order: ["In order", "In order: the first answers everything until it can't; then the next."],
|
||||
drain: ["Until used up", "Until used up: one answers everything until its quota is used up; then the next, which keeps them even after the one before renews."],
|
||||
// the unit that goes round is the user's message (Wing8Aqua on X)
|
||||
@@ -796,7 +796,7 @@ function routingPage(part) {
|
||||
weight: ["By weight", "Requests spread over the keys or accounts by the weight set beside each: one weighing 3 takes three requests for every one weighing 1 takes, evenly over a few requests. One that fails is passed over while it rests, and the others share its requests; a conversation stays with it as Stays says."],
|
||||
free: ["Free first", "Requests go to what costs nothing first: the models their vendor serves at no cost to this subscription's allowance or credits, in their listed order, and only when those can't answer to one that spends them. Nothing that cost nothing is left unused."],
|
||||
cheap: ["Cheapest first", "Requests go to the member whose model costs least now, by its price a million tokens in and out at this hour — a vendor's peak hours count double where it bills them so, as DeepSeek and Ollama Cloud do — and the cheaper cache read when two cost the same; those that cost the same keep their listed order, and one with no known price goes last."],
|
||||
expiring: ["Free quota by expiry", "Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Smart orders them."],
|
||||
expiring: ["Free quota by expiry", "Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Quota first orders them."],
|
||||
fit: ["Small context first", "Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; one whose window it is longer than is left out."],
|
||||
fast: ["Speed first", "Requests go to the one that has answered this model fastest lately, by its time to the first token and how fast it writes; those within a tenth of each other keep their listed order. One not measured lately gets one request in five, so it is measured again, and one that fails is passed over while it rests."],
|
||||
};
|
||||
@@ -810,7 +810,7 @@ function routingPage(part) {
|
||||
const GROUP_ORDER = "In order: member by member, the first model the group names until it can't answer, each over its own accounts or keys as its provider routes them.";
|
||||
// a group routed by weight (#1910): its members, not its keys
|
||||
const GROUP_WEIGHT = "By weight: each model takes its share of the requests by the weight set beside it — one weighing 3 three for every one a model weighing 1 takes, spread out rather than in bursts. One resting after a failure leaves the round and the others share its requests; the next model is the fallback when one fails.";
|
||||
const KEYS_SMART = "Smart: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.";
|
||||
const KEYS_SMART = "Quota first: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.";
|
||||
const LONE = "Only one account or key is on for this, so routing has nothing to choose between. Turn on a second in the provider's editor, and how it routes is set under Several accounts or keys below.";
|
||||
|
||||
const agentOf = (id) => (state.clients || state.agents).find((a) => a.id === id);
|
||||
@@ -5261,7 +5261,7 @@ function routingPage(part) {
|
||||
// how it routes, only where it routes over several, and a way to
|
||||
// where that is set
|
||||
const ic = w.icon || w.preset || "generic", nm = w.name || w.provider;
|
||||
const mode = poolOf(prov) ? t(w.kind === "key" && !w.routing ? "Smart" : modeOf(list.find((x) => x.w.provider === prov && !x.w.fallback)?.w.routing || "")[0]) : null;
|
||||
const mode = poolOf(prov) ? t(w.kind === "key" && !w.routing ? "Quota first" : modeOf(list.find((x) => x.w.provider === prov && !x.w.fallback)?.w.routing || "")[0]) : null;
|
||||
// kept from one drawing to the next while it says the same: this
|
||||
// runs each second (countdown), and a new heading's <img> asks
|
||||
// for its icon again whether or not patch keeps the old one, five
|
||||
@@ -6371,7 +6371,7 @@ function routingPage(part) {
|
||||
};
|
||||
window.routingGroupsHome();
|
||||
if (gHome()) byWidth(gHome(), { max520: (w) => w <= 520 });
|
||||
const ROUTE_OPTS = [["", "Smart"], ["order", "In order"], ["drain", "Until used up"], ["rotate", "In turn"], ["usage", "Least used first"], ["pace", "Use before expiry"], ["free", "Free first"], ["fast", "Speed first"]];
|
||||
const ROUTE_OPTS = [["", "Quota first"], ["order", "In order"], ["drain", "Until used up"], ["rotate", "In turn"], ["usage", "Least used first"], ["pace", "Use before expiry"], ["free", "Free first"], ["fast", "Speed first"]];
|
||||
// a group may also be routed by hand: every request to the member the
|
||||
// user picks on its card (provider.Manual, #317) — a provider's keys can't
|
||||
// and by its members' weights, as a provider's keys are (#1910)
|
||||
@@ -6429,7 +6429,7 @@ function routingPage(part) {
|
||||
strict: "A conversation stays with the account or key that answered it and never moves to another, even past its usage cap: when that one is rate limited or out of quota, the error goes to the agent. New conversations are routed as usual.",
|
||||
};
|
||||
const GROUP_HINT = {
|
||||
"": "Smart, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.",
|
||||
"": "Quota first, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.",
|
||||
order: "In order: the first model until it can't answer, then the next — each over its own accounts or keys as its provider routes them.",
|
||||
drain: "Until used up: one account or key, across the members, takes every request until it is used up; then the next in the list, which keeps them even after an earlier one renews. One rate limited or failing is passed over only while it rests.",
|
||||
rotate: "In turn: each message you send goes to the next member's account or key, round the list; the agent's tool calls for it stay on the same one. A move costs some prompt cache; with Stays on Session, a whole conversation stays on one instead.",
|
||||
@@ -6439,15 +6439,15 @@ function routingPage(part) {
|
||||
free: "Free first: the members whose model its vendor serves at no cost to the subscription's allowance or credits go first, then the rest — each whole, over its own accounts or keys as its provider routes them. The free ones are tried before any that spends, so nothing that costs nothing is left unused.",
|
||||
fast: "Speed first: the member that answered fastest lately goes first, by its time to the first token and how fast it writes, each of its accounts or keys weighed on its own; those within a tenth keep their listed order, and one not measured lately gets one request in five, so it is measured again.",
|
||||
cheap: "Cheapest first: the member whose model costs least now goes first, by its price a million tokens in and out at this hour — so a model billed double in its vendor's peak hours, as DeepSeek's own API and Ollama Cloud's DeepSeek models are, goes behind a provider charging less then, and ahead of it off-peak. Those that cost the same keep their listed order; one with no known price goes last.",
|
||||
expiring: "Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Smart orders them.",
|
||||
fit: "Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Smart orders them, and one whose window isn't known goes last.",
|
||||
expiring: "Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Quota first orders them.",
|
||||
fit: "Small context first: each request goes to the member with the smallest context window that holds it, so the big ones are kept for long requests; a member whose window the request is longer than is left out. Members of one size go as Quota first orders them, and one whose window isn't known goes last.",
|
||||
manual: "Manual: every request goes to the model you pick on the group's card, over its own accounts or keys; the others, and the rules, wait until you pick another — none takes over when it fails.",
|
||||
};
|
||||
// a group in the group, and a provider set to route other than Smart, is
|
||||
// routed by its own routing, whatever this one's (planLevel, #576,
|
||||
// ownRouting); a group in it left on Smart takes this one's where this
|
||||
// one pools (provider.Group.Within, #3847)
|
||||
const GROUP_NEST = "A group among the models, and a model whose provider routes its accounts or keys other than Smart, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Smart is routed as this group is, unless this one goes In order, By weight or Manual.";
|
||||
const GROUP_NEST = "A group among the models, and a model whose provider routes its accounts or keys other than Quota first, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Quota first is routed as this group is, unless this one goes In order, By weight or Manual.";
|
||||
const EFFORTS = ["low", "medium", "high", "xhigh", "max"]; // provider.Efforts
|
||||
// what a rule matches, in words
|
||||
function ruleText(r) {
|
||||
@@ -8736,7 +8736,7 @@ function routingPage(part) {
|
||||
rHint2.textContent = d.members.length < 2 ? t("With two models or more, a rule can send some turns to one of them first.")
|
||||
: d.routing === "manual" ? t("The rules wait while you pick the model by hand.")
|
||||
: none ? (d.routing ? t("No rules: the members go by the routing set under Advanced, {mode}; if one fails, the next takes over.", { mode: t((GROUP_ROUTE_OPTS.find((o) => o[0] === d.routing) || ["", d.routing])[1]) })
|
||||
: t("No rules: Smart routing. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.")) : "";
|
||||
: t("No rules: Quota first, which doesn't judge how hard a task is. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.")) : "";
|
||||
rHint2.hidden = !rHint2.textContent;
|
||||
let focus = null;
|
||||
d.rules.forEach((r, i) => {
|
||||
|
||||
@@ -403,7 +403,7 @@ magpie.strings({
|
||||
"As a turn begins, Jev is asked once which of the intents the message is, and how hard the turn is when it picks the effort. An intent it isn't sure of matches no rule. Its calls show in the usage as magpie’s own.": "每轮开始时问 Jev 一次消息意图;若由它选推理强度,同时问本轮难度。没把握的意图不命中任何规则。其调用在用量中记为 magpie 自身的。",
|
||||
"It was told turn {prev} reasoned at {level}, which a message that only carries on from it needs too.": "并告知它第 {prev} 轮按 {level} 推理,仅承接上一轮的消息也需同等强度。",
|
||||
"Add an example rule": "添加示例规则",
|
||||
"No rules: Smart routing. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.": "没有规则:按智能路由。额度最先重置的成员优先,相同则按列表顺序;失败时由下一个接手。",
|
||||
"No rules: Quota first, which doesn't judge how hard a task is. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.": "没有规则:额度优先,不判断任务难易。额度最先重置的成员优先,相同则按列表顺序;失败时由下一个接手。",
|
||||
"No rules: the members go by the routing set under Advanced, {mode}; if one fails, the next takes over.": "没有规则:成员按高级里设置的路由({mode})排序;失败时由下一个接手。",
|
||||
"planning, design, or a hard problem to think through": "规划、设计,或需要深入思考的难题",
|
||||
"With two models or more, a rule can send some turns to one of them first.": "组内有两个及以上模型时,可用规则将某些轮次先发给其中一个。",
|
||||
@@ -435,12 +435,12 @@ magpie.strings({
|
||||
"each provider routes over its own": "各供应商在自己的账号或 Key 间路由",
|
||||
"Change how {name} routes": "改 {name} 的路由方式",
|
||||
"Only one account or key is on for this, so routing has nothing to choose between. Turn on a second in the provider's editor, and how it routes is set under Several accounts or keys below.": "这里只开了一个账号或 Key,路由没有可选的。在供应商的编辑页再开一个,路由方式就在下面的「多账号 / 多 Key」里设置。",
|
||||
"Smart, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.": "智能:成员的账号和 Key 统一排序。有余量的订阅中额度最先重置的排第一,以周额度为准;只有 5 小时额度的账号(如 Claude Enterprise)按 5 小时重置,排在更晚重置的周额度之前;月额度已来不及靠每周额度用完的按周重置;失败后休息中的排最后。",
|
||||
"Quota first, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.": "额度优先:成员的账号和 Key 统一排序。有余量的订阅中额度最先重置的排第一,以周额度为准;只有 5 小时额度的账号(如 Claude Enterprise)按 5 小时重置,排在更晚重置的周额度之前;月额度已来不及靠每周额度用完的按周重置;失败后休息中的排最后。",
|
||||
"In order: the first model until it can't answer, then the next — each over its own accounts or keys as its provider routes them.": "按顺序:先用第一个模型,无法响应再换下一个;各成员按其供应商的路由在自己的账号或 Key 间分配。",
|
||||
"In turn: each message you send goes to the next member's account or key, round the list; the agent's tool calls for it stay on the same one. A move costs some prompt cache; with Stays on Session, a whole conversation stays on one instead.": "轮流:你每发一条消息,就按列表顺序交给下一个成员的账号或 Key;Agent 为这条消息做的工具调用留在同一个上。每换一次会损失部分提示词缓存;会话保持选「整个会话」时,改为整个会话固定在一个上。",
|
||||
"Least used first: the account or key with the most of its allowance left goes first.": "最少使用优先:剩余额度最多的账号或 Key 排第一。",
|
||||
"Use before expiry: the account with the most left per hour until it is lost goes first — its week at its reset, or credits in it that expire sooner — so less of each member's allowance is lost; an account with five hours and no week (Claude Enterprise) by what its five hours have left per hour until they renew, so almost always first; a key by the tokens magpie sent it lately.": "到期前用完:按剩余额度 ÷ 距作废小时数排序,越高越先用——周额度在重置时作废,更早过期的积分按过期时间算。只有 5 小时额度的账号(如 Claude Enterprise)按 5 小时窗口计算,几乎总排第一;Key 按最近发给它的 token 数排。",
|
||||
"A group among the models, and a model whose provider routes its accounts or keys other than Smart, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Smart is routed as this group is, unless this one goes In order, By weight or Manual.": "成员中的路由组,以及服务商路由不是“智能”的模型,都保留自己的路由:本组只在它与其他成员间选择(按它会先用的账号或 Key 比较),选中后按其自身顺序整体尝试。成员中路由留在“智能”的路由组,按本组的路由走,除非本组是“按顺序”“按权重”或“手动”。",
|
||||
"A group among the models, and a model whose provider routes its accounts or keys other than Quota first, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Quota first is routed as this group is, unless this one goes In order, By weight or Manual.": "成员中的路由组,以及服务商路由不是“额度优先”的模型,都保留自己的路由:本组只在它与其他成员间选择(按它会先用的账号或 Key 比较),选中后按其自身顺序整体尝试。成员中路由留在“额度优先”的路由组,按本组的路由走,除非本组是“按顺序”“按权重”或“手动”。",
|
||||
"errors your agent saw": "Agent 收到的错误",
|
||||
"It said: {error}": "原话:{error}",
|
||||
"Copilot's Auto picked {model} ({via})": "Copilot 的 Auto 选了 {model}({via})",
|
||||
@@ -503,8 +503,8 @@ magpie.strings({
|
||||
"Another magpie serves the gateway; its routing plays live in that magpie's window.": "网关由另一个 magpie 提供,它的路由在那个 magpie 的窗口里实时播放。",
|
||||
"The gateway isn't running, so nothing is routed.": "网关没有运行,因此没有任何路由。",
|
||||
"The gateway is served by a magpie without a window (magpie serve), so its routing can't be watched. Stop it and let this magpie serve the gateway to see routing live.": "网关由无窗口的 magpie(magpie serve)提供,无法在此查看路由。停止它并由当前 magpie 提供网关,即可实时查看。",
|
||||
"Smart: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last.": "智能:有余量的账号中额度最先重置的排第一,以免剩余额度在重置时作废。以周额度为准;只有 5 小时额度的账号按 5 小时重置,月额度已来不及靠每周额度用完的按周重置。用到 90% 以上的,等其他都无法响应时才用;失败后休息中的排最后。",
|
||||
"Smart: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.": "智能:适合此请求的 Key(为该模型原生 API 准备的)排前,其余按顺序。失败后休息中的排最后。",
|
||||
"Quota first: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last.": "额度优先:有余量的账号中额度最先重置的排第一,以免剩余额度在重置时作废。以周额度为准;只有 5 小时额度的账号按 5 小时重置,月额度已来不及靠每周额度用完的按周重置。用到 90% 以上的,等其他都无法响应时才用;失败后休息中的排最后。",
|
||||
"Quota first: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.": "额度优先:适合此请求的 Key(为该模型原生 API 准备的)排前,其余按顺序。失败后休息中的排最后。",
|
||||
"In order: the first answers everything until it can't; then the next.": "按顺序:第一个处理所有请求,无法响应时再换下一个。",
|
||||
"In turn: each message you send goes to the next account, round the list; the agent's tool calls for it stay on the same one. With Stays on Session, a whole conversation stays on one instead.": "轮流:你每发一条消息,就按列表顺序交给下一个账号;Agent 为这条消息做的工具调用留在同一个上。会话保持选「整个会话」时,改为整个会话固定在一个上。",
|
||||
"Least used first: the account with the most of its allowance left goes first; a key by the tokens magpie sent it lately.": "最少使用优先:剩余额度最多的账号排第一;Key 按 magpie 最近发给它的 token 数排。",
|
||||
@@ -1173,7 +1173,7 @@ magpie.strings({
|
||||
"As a turn begins, Jev is asked once which of the intents the message is, and how hard the turn is when it picks the effort. An intent it isn't sure of matches no rule. Its calls show in the usage as magpie’s own.": "每輪開始時問 Jev 一次訊息意圖;若由它選推理強度,同時問本輪難度。沒把握的意圖不命中任何規則。其呼叫在用量中記為 magpie 自身的。",
|
||||
"It was told turn {prev} reasoned at {level}, which a message that only carries on from it needs too.": "並告知它第 {prev} 輪按 {level} 推理,僅承接上一輪的訊息也需同等強度。",
|
||||
"Add an example rule": "新增範例規則",
|
||||
"No rules: Smart routing. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.": "沒有規則:依智慧路由。額度最先重置的成員優先,相同則依清單順序;失敗時由下一個接手。",
|
||||
"No rules: Quota first, which doesn't judge how hard a task is. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.": "沒有規則:額度優先,不判斷任務難易。額度最先重置的成員優先,相同則依清單順序;失敗時由下一個接手。",
|
||||
"No rules: the members go by the routing set under Advanced, {mode}; if one fails, the next takes over.": "沒有規則:成員依進階中設定的路由({mode})排序;失敗時由下一個接手。",
|
||||
"planning, design, or a hard problem to think through": "規劃、設計,或需要深入思考的難題",
|
||||
"With two models or more, a rule can send some turns to one of them first.": "組內有兩個及以上模型時,可用規則將某些輪次先發給其中一個。",
|
||||
@@ -1205,12 +1205,12 @@ magpie.strings({
|
||||
"each provider routes over its own": "各供應商在自己的帳號或 Key 間路由",
|
||||
"Change how {name} routes": "改 {name} 的路由方式",
|
||||
"Only one account or key is on for this, so routing has nothing to choose between. Turn on a second in the provider's editor, and how it routes is set under Several accounts or keys below.": "這裡只開了一個帳號或 Key,路由沒有可選的。在供應商的編輯頁再開一個,路由方式就在下面的「多帳號 / 多 Key」裡設定。",
|
||||
"Smart, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.": "智慧:成員的帳號和 Key 統一排序。有餘量的訂閱中額度最先重置的排第一,以週額度為準;只有 5 小時額度的帳號(如 Claude Enterprise)按 5 小時重置,排在更晚重置的週額度之前;月額度已來不及靠每週額度用完的按週重置;失敗後休息中的排最後。",
|
||||
"Quota first, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.": "額度優先:成員的帳號和 Key 統一排序。有餘量的訂閱中額度最先重置的排第一,以週額度為準;只有 5 小時額度的帳號(如 Claude Enterprise)按 5 小時重置,排在更晚重置的週額度之前;月額度已來不及靠每週額度用完的按週重置;失敗後休息中的排最後。",
|
||||
"In order: the first model until it can't answer, then the next — each over its own accounts or keys as its provider routes them.": "按順序:先用第一個模型,無法回應再換下一個;各成員按其供應商的路由在自己的帳號或 Key 間分配。",
|
||||
"In turn: each message you send goes to the next member's account or key, round the list; the agent's tool calls for it stay on the same one. A move costs some prompt cache; with Stays on Session, a whole conversation stays on one instead.": "輪流:你每發一則訊息,就按清單順序交給下一個成員的帳號或 Key;Agent 為這則訊息做的工具呼叫留在同一個上。每換一次會損失部分提示詞快取;會話保持選「整個會話」時,改為整個會話固定在一個上。",
|
||||
"Least used first: the account or key with the most of its allowance left goes first.": "最少使用優先:剩餘額度最多的帳號或 Key 排第一。",
|
||||
"Use before expiry: the account with the most left per hour until it is lost goes first — its week at its reset, or credits in it that expire sooner — so less of each member's allowance is lost; an account with five hours and no week (Claude Enterprise) by what its five hours have left per hour until they renew, so almost always first; a key by the tokens magpie sent it lately.": "到期前用完:按剩餘額度 ÷ 距作廢小時數排序,越高越先用——週額度在重置時作廢,更早過期的點數按過期時間算。只有 5 小時額度的帳號(如 Claude Enterprise)按 5 小時時段計算,幾乎總排第一;Key 按最近發給它的 token 數排。",
|
||||
"A group among the models, and a model whose provider routes its accounts or keys other than Smart, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Smart is routed as this group is, unless this one goes In order, By weight or Manual.": "成員中的路由組,以及服務商路由不是「智慧」的模型,都保留自己的路由:本組只在它與其他成員間選擇(按它會先用的帳號或 Key 比較),選中後按其自身順序整體嘗試。成員中路由留在「智慧」的路由組,按本組的路由走,除非本組是「按順序」「按權重」或「手動」。",
|
||||
"A group among the models, and a model whose provider routes its accounts or keys other than Quota first, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Quota first is routed as this group is, unless this one goes In order, By weight or Manual.": "成員中的路由組,以及服務商路由不是「額度優先」的模型,都保留自己的路由:本組只在它與其他成員間選擇(按它會先用的帳號或 Key 比較),選中後按其自身順序整體嘗試。成員中路由留在「額度優先」的路由組,按本組的路由走,除非本組是「按順序」「按權重」或「手動」。",
|
||||
"errors your agent saw": "Agent 收到的錯誤",
|
||||
"It said: {error}": "原話:{error}",
|
||||
"Copilot's Auto picked {model} ({via})": "Copilot 的 Auto 選了 {model}({via})",
|
||||
@@ -1273,8 +1273,8 @@ magpie.strings({
|
||||
"Another magpie serves the gateway; its routing plays live in that magpie's window.": "閘道由另一個 magpie 提供,它的路由在那個 magpie 的窗口裡即時播放。",
|
||||
"The gateway isn't running, so nothing is routed.": "閘道沒有執行,因此沒有任何路由。",
|
||||
"The gateway is served by a magpie without a window (magpie serve), so its routing can't be watched. Stop it and let this magpie serve the gateway to see routing live.": "閘道由無視窗的 magpie(magpie serve)提供,無法在此檢視路由。停止它並由目前 magpie 提供閘道,即可即時檢視。",
|
||||
"Smart: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last.": "智慧:有餘量的帳號中額度最先重置的排第一,以免剩餘額度在重置時作廢。以週額度為準;只有 5 小時額度的帳號按 5 小時重置,月額度已來不及靠每週額度用完的按週重置。用到 90% 以上的,等其他都無法回應時才用;失敗後休息中的排最後。",
|
||||
"Smart: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.": "智慧:適合此請求的 Key(為該模型原生 API 準備的)排前,其餘按順序。失敗後休息中的排最後。",
|
||||
"Quota first: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last.": "額度優先:有餘量的帳號中額度最先重置的排第一,以免剩餘額度在重置時作廢。以週額度為準;只有 5 小時額度的帳號按 5 小時重置,月額度已來不及靠每週額度用完的按週重置。用到 90% 以上的,等其他都無法回應時才用;失敗後休息中的排最後。",
|
||||
"Quota first: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.": "額度優先:適合此請求的 Key(為該模型原生 API 準備的)排前,其餘按順序。失敗後休息中的排最後。",
|
||||
"In order: the first answers everything until it can't; then the next.": "按順序:第一個處理所有請求,無法回應時再換下一個。",
|
||||
"In turn: each message you send goes to the next account, round the list; the agent's tool calls for it stay on the same one. With Stays on Session, a whole conversation stays on one instead.": "輪流:你每發一則訊息,就按清單順序交給下一個帳號;Agent 為這則訊息做的工具呼叫留在同一個上。會話保持選「整個會話」時,改為整個會話固定在一個上。",
|
||||
"Least used first: the account with the most of its allowance left goes first; a key by the tokens magpie sent it lately.": "最少使用優先:剩餘額度最多的帳號排第一;Key 按 magpie 最近發給它的 token 數排。",
|
||||
@@ -1941,7 +1941,7 @@ magpie.strings({
|
||||
"As a turn begins, Jev is asked once which of the intents the message is, and how hard the turn is when it picks the effort. An intent it isn't sure of matches no rule. Its calls show in the usage as magpie’s own.": "ターンの開始時に、メッセージがどのインテントに当たるかと、推論レベルを選ぶ場合はターンの難しさを、Jev に 1 回尋ねます。確信のないインテントはどのルールにも一致しません。その呼び出しは使用量に magpie 自身のものとして表示されます。",
|
||||
"It was told turn {prev} reasoned at {level}, which a message that only carries on from it needs too.": "ターン {prev} が {level} で推論したことも伝えています。それを続けるだけのメッセージも同じだけ必要です。",
|
||||
"Add an example rule": "例のルールを追加",
|
||||
"No rules: Smart routing. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.": "ルールなし:スマートルーティング。枠が最も早くリセットされるメンバーが先、同じなら一覧の順。失敗すると次が引き継ぎます。",
|
||||
"No rules: Quota first, which doesn't judge how hard a task is. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.": "ルールなし:枠優先。タスクの難しさは判断しません。枠が最も早くリセットされるメンバーが先、同じなら一覧の順。失敗すると次が引き継ぎます。",
|
||||
"No rules: the members go by the routing set under Advanced, {mode}; if one fails, the next takes over.": "ルールなし:メンバーは詳細設定のルーティング({mode})の順に使われます。失敗すると次が引き継ぎます。",
|
||||
"planning, design, or a hard problem to think through": "計画、設計、またはじっくり考える必要がある難問",
|
||||
"With two models or more, a rule can send some turns to one of them first.": "2 つ以上のモデルがあれば、ルールで一部のターンをそのうちの 1 つへ優先して送れます。",
|
||||
@@ -1973,12 +1973,12 @@ magpie.strings({
|
||||
"each provider routes over its own": "各プロバイダが自身のアカウントやキーでルーティング",
|
||||
"Change how {name} routes": "{name} のルーティングを変更",
|
||||
"Only one account or key is on for this, so routing has nothing to choose between. Turn on a second in the provider's editor, and how it routes is set under Several accounts or keys below.": "有効なアカウントやキーが 1 つだけなので、ルーティングに選択肢はありません。プロバイダの編集画面で 2 つ目を有効にすると、ルーティングは下の「複数のアカウントやキー」で設定できます。",
|
||||
"Smart, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.": "スマート(メンバーのアカウントとキーをまとめて扱う):クォータに余裕のあるサブスクリプションのうち、利用枠のリセットが最も早いものが先頭です。週の枠で判断し、5 時間枠のみで週の枠がないアカウント(Claude Enterprise)は 5 時間枠で判断するため、それより後にリセットされるどの週の枠よりも前になります。月の枠をリセットまでに週の枠では使い切れなくなったものは週の枠で判断します。失敗後に休止中のものは最後です。",
|
||||
"Quota first, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.": "枠優先(メンバーのアカウントとキーをまとめて扱う):クォータに余裕のあるサブスクリプションのうち、利用枠のリセットが最も早いものが先頭です。週の枠で判断し、5 時間枠のみで週の枠がないアカウント(Claude Enterprise)は 5 時間枠で判断するため、それより後にリセットされるどの週の枠よりも前になります。月の枠をリセットまでに週の枠では使い切れなくなったものは週の枠で判断します。失敗後に休止中のものは最後です。",
|
||||
"In order: the first model until it can't answer, then the next — each over its own accounts or keys as its provider routes them.": "順番:先頭のモデルが応答できなくなるまで使い、その後次へ。各モデルはそのプロバイダのルーティングに従って自身のアカウントやキーを使います。",
|
||||
"In turn: each message you send goes to the next member's account or key, round the list; the agent's tool calls for it stay on the same one. A move costs some prompt cache; with Stays on Session, a whole conversation stays on one instead.": "交互:メッセージを送るたびに、リストの順で次のメンバーのアカウントやキーへ回します。そのメッセージのためのエージェントのツール呼び出しは同じものに残ります。移るたびにプロンプトキャッシュの一部を失います。維持を「セッション」にすると、会話全体が一つに留まります。",
|
||||
"Least used first: the account or key with the most of its allowance left goes first.": "使用量が最少を優先:利用枠の残りが最も多いアカウントやキーが先頭です。",
|
||||
"Use before expiry: the account with the most left per hour until it is lost goes first — its week at its reset, or credits in it that expire sooner — so less of each member's allowance is lost; an account with five hours and no week (Claude Enterprise) by what its five hours have left per hour until they renew, so almost always first; a key by the tokens magpie sent it lately.": "期限前に使い切る:失われるまでの 1 時間あたりの残りが最も多いアカウントが先頭になり、各メンバーの枠が失われる分が減ります — 週の枠はリセットで、それより早く期限切れになるクレジットはその期限で失われます。5 時間枠のみで週の枠がないアカウント(Claude Enterprise)は、リセットまでの 1 時間あたりの 5 時間枠の残りで判断するため、ほぼ常に先頭です。キーは magpie が最近送ったトークン数で判断します。",
|
||||
"A group among the models, and a model whose provider routes its accounts or keys other than Smart, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Smart is routed as this group is, unless this one goes In order, By weight or Manual.": "モデルの中のグループと、プロバイダーのルーティングがスマート以外のモデルは、独自のルーティングを保ちます。このグループはそれと他のメンバーの間で選ぶだけで、そのグループが最初に試すアカウントやキーで比較し、選ばれたらそのグループ全体を独自の順番で試します。ルーティングをスマートのままにしたモデルの中のグループは、このグループのルーティングに従います。ただし、このグループが順番、重み付け、手動の場合を除きます。",
|
||||
"A group among the models, and a model whose provider routes its accounts or keys other than Quota first, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Quota first is routed as this group is, unless this one goes In order, By weight or Manual.": "モデルの中のグループと、プロバイダーのルーティングが枠優先以外のモデルは、独自のルーティングを保ちます。このグループはそれと他のメンバーの間で選ぶだけで、そのグループが最初に試すアカウントやキーで比較し、選ばれたらそのグループ全体を独自の順番で試します。ルーティングを枠優先のままにしたモデルの中のグループは、このグループのルーティングに従います。ただし、このグループが順番、重み付け、手動の場合を除きます。",
|
||||
"errors your agent saw": "エージェントが受けたエラー",
|
||||
"It said: {error}": "メッセージ:{error}",
|
||||
"Copilot's Auto picked {model} ({via})": "Copilot の Auto が {model} を選択({via})",
|
||||
@@ -2041,8 +2041,8 @@ magpie.strings({
|
||||
"Another magpie serves the gateway; its routing plays live in that magpie's window.": "ゲートウェイは別の magpie が提供しています。そのルーティングはその magpie のウィンドウでライブ再生されます。",
|
||||
"The gateway isn't running, so nothing is routed.": "ゲートウェイが実行されていないため、何もルーティングされません。",
|
||||
"The gateway is served by a magpie without a window (magpie serve), so its routing can't be watched. Stop it and let this magpie serve the gateway to see routing live.": "ゲートウェイはウィンドウのない magpie(magpie serve)が提供しているため、ルーティングを見ることができません。それを停止し、この magpie にゲートウェイを提供させるとルーティングをライブで見られます。",
|
||||
"Smart: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last.": "スマート:クォータに余裕のあるアカウントのうち、利用枠が最も早く更新されるものが先です — 残りはリセット時に失われるためです。週の枠で決まり、5 時間枠だけで週の枠がないアカウントは 5 時間枠で、月の枠を更新までに週の枠では使い切れなくなったアカウントは週の枠で決まります。90% 以上使ったアカウントは他が応答できなくなるまで待ち、失敗後に休止中のアカウントは最後になります。",
|
||||
"Smart: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.": "スマート:リクエストに合うキー — モデル本来の API 用のキー — が先で、その後は設定順です。失敗後に休止中のキーは最後になります。",
|
||||
"Quota first: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last.": "枠優先:クォータに余裕のあるアカウントのうち、利用枠が最も早く更新されるものが先です — 残りはリセット時に失われるためです。週の枠で決まり、5 時間枠だけで週の枠がないアカウントは 5 時間枠で、月の枠を更新までに週の枠では使い切れなくなったアカウントは週の枠で決まります。90% 以上使ったアカウントは他が応答できなくなるまで待ち、失敗後に休止中のアカウントは最後になります。",
|
||||
"Quota first: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.": "枠優先:リクエストに合うキー — モデル本来の API 用のキー — が先で、その後は設定順です。失敗後に休止中のキーは最後になります。",
|
||||
"In order: the first answers everything until it can't; then the next.": "順番:最初の 1 つが応答できなくなるまですべてに応答し、その後は次へ。",
|
||||
"In turn: each message you send goes to the next account, round the list; the agent's tool calls for it stay on the same one. With Stays on Session, a whole conversation stays on one instead.": "交互:メッセージを送るたびに、リストの順で次のアカウントへ回します。そのメッセージのためのエージェントのツール呼び出しは同じものに残ります。維持を「セッション」にすると、会話全体が一つに留まります。",
|
||||
"Least used first: the account with the most of its allowance left goes first; a key by the tokens magpie sent it lately.": "使用量が最少:利用枠の残りが最も多いアカウントが先です。キーは magpie が最近送ったトークン数で決まります。",
|
||||
@@ -2711,7 +2711,7 @@ magpie.strings({
|
||||
"As a turn begins, Jev is asked once which of the intents the message is, and how hard the turn is when it picks the effort. An intent it isn't sure of matches no rule. Its calls show in the usage as magpie’s own.": "Zu Beginn einer Runde wird Jev einmal gefragt, welcher Absicht die Nachricht entspricht und, wenn es den Effort wählt, wie schwer die Runde ist. Eine Absicht, bei der es unsicher ist, trifft auf keine Regel zu. Seine Aufrufe erscheinen in der Nutzung als eigene von magpie.",
|
||||
"It was told turn {prev} reasoned at {level}, which a message that only carries on from it needs too.": "Ihm wurde mitgeteilt, dass Runde {prev} {level} Reasoning nutzte; eine Nachricht, die nur daran anknüpft, braucht das ebenso.",
|
||||
"Add an example rule": "Beispielregel hinzufügen",
|
||||
"No rules: Smart routing. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.": "Keine Regeln: Smart-Routing. Das Mitglied, dessen Kontingent am frühesten erneuert wird, kommt zuerst, bei Gleichstand die Reihenfolge der Liste; fällt es aus, übernimmt das nächste.",
|
||||
"No rules: Quota first, which doesn't judge how hard a task is. The member whose allowance renews soonest goes first, ties in the listed order; if it fails, the next takes over.": "Keine Regeln: Kontingent zuerst, ohne die Schwierigkeit einer Aufgabe zu beurteilen. Das Mitglied, dessen Kontingent am frühesten erneuert wird, kommt zuerst, bei Gleichstand die Reihenfolge der Liste; fällt es aus, übernimmt das nächste.",
|
||||
"No rules: the members go by the routing set under Advanced, {mode}; if one fails, the next takes over.": "Keine Regeln: Die Mitglieder gehen nach dem unter Erweitert gesetzten Routing ({mode}); fällt eines aus, übernimmt das nächste.",
|
||||
"planning, design, or a hard problem to think through": "Planung, Entwurf oder ein schwieriges Problem zum Durchdenken",
|
||||
"With two models or more, a rule can send some turns to one of them first.": "Ab zwei Modellen kann eine Regel bestimmte Runden zuerst an eines davon senden.",
|
||||
@@ -2743,12 +2743,12 @@ magpie.strings({
|
||||
"each provider routes over its own": "jeder Anbieter leitet über seine eigenen weiter",
|
||||
"Change how {name} routes": "Ändern, wie {name} weiterleitet",
|
||||
"Only one account or key is on for this, so routing has nothing to choose between. Turn on a second in the provider's editor, and how it routes is set under Several accounts or keys below.": "Hier ist nur ein Konto oder Schlüssel aktiv, also hat die Weiterleitung keine Wahl. Aktiviere im Editor des Anbieters ein zweites; wie weitergeleitet wird, legst du dann unten unter „Mehrere Konten oder Schlüssel“ fest.",
|
||||
"Smart, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.": "Intelligent, über Konten und Schlüssel aller Mitglieder zusammen: Von den Abos mit freiem Kontingent kommt das zuerst, dessen Kontingent sich am frühesten erneuert – die Woche entscheidet, und ein Konto mit fünf Stunden und ohne Woche (Claude Enterprise) richtet sich nach seinen fünf Stunden, also vor jeder später erneuerten Woche, und eines, dessen Monat seine Wochen vor der Erneuerung nicht mehr aufbrauchen können, nach seiner Woche; eines, das nach einem Fehler pausiert, kommt zuletzt.",
|
||||
"Quota first, over the members' accounts and keys together: of the subscriptions with quota to spare, the one whose allowance renews soonest goes first — the week decides, and an account with five hours and no week (Claude Enterprise) goes by its five hours, so ahead of every week renewing later, and one whose month its weeks can no longer use up before it renews by its week; one resting after a failure goes last.": "Kontingent zuerst, über Konten und Schlüssel aller Mitglieder zusammen: Von den Abos mit freiem Kontingent kommt das zuerst, dessen Kontingent sich am frühesten erneuert – die Woche entscheidet, und ein Konto mit fünf Stunden und ohne Woche (Claude Enterprise) richtet sich nach seinen fünf Stunden, also vor jeder später erneuerten Woche, und eines, dessen Monat seine Wochen vor der Erneuerung nicht mehr aufbrauchen können, nach seiner Woche; eines, das nach einem Fehler pausiert, kommt zuletzt.",
|
||||
"In order: the first model until it can't answer, then the next — each over its own accounts or keys as its provider routes them.": "Der Reihe nach: das erste Modell, bis es nicht mehr antworten kann, dann das nächste – jedes über seine eigenen Konten oder Schlüssel, wie sein Anbieter sie weiterleitet.",
|
||||
"In turn: each message you send goes to the next member's account or key, round the list; the agent's tool calls for it stay on the same one. A move costs some prompt cache; with Stays on Session, a whole conversation stays on one instead.": "Abwechselnd: Jede Nachricht, die Sie senden, geht an das nächste Konto oder den nächsten Schlüssel der Mitglieder, reihum; die Tool-Aufrufe des Agenten dazu bleiben beim selben. Jeder Wechsel kostet etwas Prompt-Cache; mit Bleibt auf Sitzung bleibt eine ganze Unterhaltung bei einem.",
|
||||
"Least used first: the account or key with the most of its allowance left goes first.": "Am wenigsten genutzt zuerst: Das Konto oder der Schlüssel mit dem größten Restkontingent kommt zuerst.",
|
||||
"Use before expiry: the account with the most left per hour until it is lost goes first — its week at its reset, or credits in it that expire sooner — so less of each member's allowance is lost; an account with five hours and no week (Claude Enterprise) by what its five hours have left per hour until they renew, so almost always first; a key by the tokens magpie sent it lately.": "Vor Ablauf aufbrauchen: Das Konto mit dem meisten Rest pro Stunde, bis er verfällt, kommt zuerst – seine Woche beim Zurücksetzen oder Guthaben darin, das früher abläuft –, damit von jedem Mitglied weniger verfällt; ein Konto mit fünf Stunden und ohne Woche (Claude Enterprise) nach dem Rest seiner fünf Stunden pro Stunde bis zur Erneuerung, also fast immer zuerst; ein Schlüssel nach den Token, die magpie ihm zuletzt gesendet hat.",
|
||||
"A group among the models, and a model whose provider routes its accounts or keys other than Smart, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Smart is routed as this group is, unless this one goes In order, By weight or Manual.": "Eine Gruppe unter den Modellen und ein Modell, dessen Anbieter seine Konten oder Schlüssel anders als „Intelligent“ weiterleitet, behalten ihre eigene Weiterleitung: Diese Gruppe wählt nur zwischen ihr und den anderen, gewichtet nach dem Konto oder Schlüssel, den sie zuerst versuchen würde, und versucht sie dann als Ganzes in ihrer eigenen Reihenfolge. Eine Gruppe unter den Modellen, deren Weiterleitung auf „Intelligent“ steht, wird wie diese Gruppe weitergeleitet, außer diese geht „Der Reihe nach“, „Nach Gewicht“ oder „Manuell“.",
|
||||
"A group among the models, and a model whose provider routes its accounts or keys other than Quota first, keeps its own routing: this group only picks between it and the others, weighing it by the account or key it would try first, then tries it whole in its own order. A group among the models left on Quota first is routed as this group is, unless this one goes In order, By weight or Manual.": "Eine Gruppe unter den Modellen und ein Modell, dessen Anbieter seine Konten oder Schlüssel anders als „Kontingent zuerst“ weiterleitet, behalten ihre eigene Weiterleitung: Diese Gruppe wählt nur zwischen ihr und den anderen, gewichtet nach dem Konto oder Schlüssel, den sie zuerst versuchen würde, und versucht sie dann als Ganzes in ihrer eigenen Reihenfolge. Eine Gruppe unter den Modellen, deren Weiterleitung auf „Kontingent zuerst“ steht, wird wie diese Gruppe weitergeleitet, außer diese geht „Der Reihe nach“, „Nach Gewicht“ oder „Manuell“.",
|
||||
"errors your agent saw": "Fehler, die Ihr Agent sah",
|
||||
"It said: {error}": "Meldung: {error}",
|
||||
"Copilot's Auto picked {model} ({via})": "Copilots Auto wählte {model} ({via})",
|
||||
@@ -2811,8 +2811,8 @@ magpie.strings({
|
||||
"Another magpie serves the gateway; its routing plays live in that magpie's window.": "Ein anderes magpie stellt den Zugangspunkt bereit; seine Weiterleitung wird live in dessen Fenster abgespielt.",
|
||||
"The gateway isn't running, so nothing is routed.": "Der Zugangspunkt läuft nicht, daher wird nichts weitergeleitet.",
|
||||
"The gateway is served by a magpie without a window (magpie serve), so its routing can't be watched. Stop it and let this magpie serve the gateway to see routing live.": "Der Zugangspunkt wird von einem magpie ohne Fenster (magpie serve) bereitgestellt, daher lässt sich seine Weiterleitung nicht beobachten. Beenden Sie es und lassen Sie dieses magpie den Zugangspunkt bereitstellen, um die Weiterleitung live zu sehen.",
|
||||
"Smart: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last.": "Intelligent: Von den Konten mit freiem Kontingent kommt das zuerst, dessen Kontingent sich am frühesten erneuert – sein Rest würde beim Zurücksetzen verfallen. Die Woche entscheidet; ein Konto mit fünf Stunden und ohne Woche richtet sich nach seinen fünf Stunden, eines, dessen Monat seine Wochen vor der Erneuerung nicht mehr aufbrauchen können, nach seiner Woche. Eines ab 90 % wartet, bis die anderen nicht antworten können; eines, das nach einem Fehler pausiert, kommt zuletzt.",
|
||||
"Smart: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.": "Intelligent: Schlüssel, die zur Anfrage passen, kommen zuerst – einer für die eigene API des Modells –, dann in ihrer Reihenfolge. Einer, der nach einem Fehler pausiert, kommt zuletzt.",
|
||||
"Quota first: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last.": "Kontingent zuerst: Von den Konten mit freiem Kontingent kommt das zuerst, dessen Kontingent sich am frühesten erneuert – sein Rest würde beim Zurücksetzen verfallen. Die Woche entscheidet; ein Konto mit fünf Stunden und ohne Woche richtet sich nach seinen fünf Stunden, eines, dessen Monat seine Wochen vor der Erneuerung nicht mehr aufbrauchen können, nach seiner Woche. Eines ab 90 % wartet, bis die anderen nicht antworten können; eines, das nach einem Fehler pausiert, kommt zuletzt.",
|
||||
"Quota first: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last.": "Kontingent zuerst: Schlüssel, die zur Anfrage passen, kommen zuerst – einer für die eigene API des Modells –, dann in ihrer Reihenfolge. Einer, der nach einem Fehler pausiert, kommt zuletzt.",
|
||||
"In order: the first answers everything until it can't; then the next.": "Der Reihe nach: Der erste beantwortet alles, bis er nicht mehr kann; dann der nächste.",
|
||||
"In turn: each message you send goes to the next account, round the list; the agent's tool calls for it stay on the same one. With Stays on Session, a whole conversation stays on one instead.": "Abwechselnd: Jede Nachricht, die Sie senden, geht an das nächste Konto in der Liste, reihum; die Tool-Aufrufe des Agenten dazu bleiben beim selben. Mit Bleibt auf Sitzung bleibt eine ganze Unterhaltung bei einem.",
|
||||
"Least used first: the account with the most of its allowance left goes first; a key by the tokens magpie sent it lately.": "Am wenigsten genutzt zuerst: Das Konto mit dem größten Restkontingent kommt zuerst; ein Schlüssel nach den Token, die magpie ihm zuletzt gesendet hat.",
|
||||
|
||||
@@ -122,7 +122,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
await page.route("**/*", f.route);
|
||||
for (const id of ["antigravity", "relay"]) {
|
||||
await open(page, id);
|
||||
for (const [mode, label] of [["", "Smart"], ["order", "In order"], ["rotate", "In turn"], ["usage", "Least used first"]]) {
|
||||
for (const [mode, label] of [["", "Quota first"], ["order", "In order"], ["rotate", "In turn"], ["usage", "Least used first"]]) {
|
||||
// picked, then made with the editor's Save, which closes it
|
||||
const saveResponse = page.waitForResponse(response =>
|
||||
new URL(response.url()).pathname === "/api/provider/save" && response.request().method() === "POST");
|
||||
|
||||
@@ -137,7 +137,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
assert.equal((await page.locator("#status").textContent()).trim(), note, at);
|
||||
|
||||
// back to Smart hides them
|
||||
await page.locator(".editor").getByRole("button", { name: await say(page, lang, "Smart"), exact: true }).first().click();
|
||||
await page.locator(".editor").getByRole("button", { name: await say(page, lang, "Quota first"), exact: true }).first().click();
|
||||
assert.equal(await chip("max@example.com").isVisible(), false, `${at}: a weight under Smart`);
|
||||
// open, the editor scrolls and the dialog around it doesn't: the lines
|
||||
// its check-in and warm-up rows keep out of sight were held against
|
||||
|
||||
@@ -26,7 +26,7 @@ const PLUGINS = [
|
||||
{ id: "middleware", name: "JS gateway plugins", sub: "Run the JavaScript gateway plugins: middleware on agents' requests and replies, routings and usage observers", one: "1 gateway plugin on", many: "{n} gateway plugins on" },
|
||||
{ id: "otel", name: "Observability", sub: "Send each request's traces and metrics to an OpenTelemetry collector, such as Langfuse", one: "Sending to a collector", many: "Sending to a collector" },
|
||||
{ id: "redact", name: "Privacy masking", sub: "Secrets, personal data and your own words go to vendors as placeholders, and come back as they were", one: "Masking is on", many: "Masking is on" },
|
||||
{ id: "rotation", name: "Routing strategies", sub: "The routings besides Smart: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first", one: "1 provider or group routed so", many: "{n} providers and groups routed so" },
|
||||
{ id: "rotation", name: "Routing strategies", sub: "The routings besides Quota first: In order, Until used up, In turn, Least used first, Use before expiry, By weight, Free first, Speed first and Cheapest first", one: "1 provider or group routed so", many: "{n} providers and groups routed so" },
|
||||
{ id: "routing", name: "Routing", sub: "Each request as the gateway routes it, the accounts it weighed and what each answered, and your routing groups", one: "1 group in use", many: "{n} groups in use" },
|
||||
{ id: "search", name: "Web search", sub: "Models that can't search the web search with a provider that can, or a search API", one: "1 search source set up", many: "{n} search sources set up" },
|
||||
{ id: "sessions", name: "Sessions", sub: "Your agents' past conversations: read, search, resume and export them", one: "Recording gateway conversations", many: "Recording gateway conversations" },
|
||||
|
||||
@@ -112,7 +112,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
|
||||
if (process.env.ARTIFACT_DIR) await page.locator(".editor .accts").screenshot({ path: path.join(process.env.ARTIFACT_DIR, `${engine}-${lang}-key-weight-rows.png`) });
|
||||
// back to Smart hides them
|
||||
await page.locator(".editor").getByRole("button", { name: lang === "en" ? "Smart" : "智能", exact: true }).first().click();
|
||||
await page.locator(".editor").getByRole("button", { name: lang === "en" ? "Quota first" : "额度优先", exact: true }).first().click();
|
||||
assert.equal(await chip("aaaaaaaaaa").isVisible(), false);
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
@@ -171,7 +171,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
f = await fig(routing);
|
||||
assert.equal(f.affinity, "session");
|
||||
assert.equal(f.msgs, "AAABBB");
|
||||
await routing.locator(".segs .opt", { hasText: new RegExp(`^${await tr(page, "Smart")}$`) }).click();
|
||||
await routing.locator(".segs .opt", { hasText: new RegExp(`^${await tr(page, "Quota first")}$`) }).click();
|
||||
assert.equal(await routing.locator("svg.rot-fig").count(), 0, "drawn for In turn only");
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
@@ -88,7 +88,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
assert.match(said, pattern(await say("Free quota by expiry: {who}'s free quota is lost soonest, in {d}, so it's spent first.")));
|
||||
assert.ok(said.includes("mm@example.com"), said);
|
||||
assert.equal((await page.locator(".rt-mode").textContent()).trim(),
|
||||
await say("Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Smart orders them."));
|
||||
await say("Free quota by expiry: the accounts on a free plan, or whose model costs nothing there, go first, the one whose free quota is lost soonest first — at its next reset, or when its credits expire if sooner; once it is used up, the next. A paid one takes requests only when no free one has quota left, the paid as Quota first orders them."));
|
||||
if (lang !== "en") assert.notEqual(await say("Free quota by expiry"), "Free quota by expiry", `${lang} names Free quota by expiry`);
|
||||
const wide = await page.evaluate(() => document.documentElement.scrollWidth - window.innerWidth);
|
||||
assert.ok(wide <= 0, `the page scrolls sideways by ${wide}px`);
|
||||
|
||||
@@ -25,10 +25,10 @@ const info = [{ id: "a/sol", ready: true }, { id: "b/flash", ready: true }, { id
|
||||
const base = { members: ["a/sol", "b/flash", "c/luna"], ready: true, memberInfo: info, offers: [], shared: [] };
|
||||
|
||||
const words = {
|
||||
en: { order: "In order", manual: "Manual", weight: "By weight", smart: "Smart", head: "Routing", edit: "Edit",
|
||||
names: ["Smart", "In order", "Until used up", "In turn", "Least used first", "Use before expiry", "Free first", "Speed first", "Cheapest first", "Free quota by expiry", "Small context first", "By weight", "Manual"],
|
||||
en: { order: "In order", manual: "Manual", weight: "By weight", smart: "Quota first", head: "Routing", edit: "Edit",
|
||||
names: ["Quota first", "In order", "Until used up", "In turn", "Least used first", "Use before expiry", "Free first", "Speed first", "Cheapest first", "Free quota by expiry", "Small context first", "By weight", "Manual"],
|
||||
tip: "How Auto routes: click to change it", saved: "Auto: Manual" },
|
||||
zh: { order: "按顺序", manual: "手动", weight: "按权重", smart: "智能", head: "路由", edit: "编辑",
|
||||
zh: { order: "按顺序", manual: "手动", weight: "按权重", smart: "额度优先", head: "路由", edit: "编辑",
|
||||
tip: "Auto 的路由方式:点击更改", saved: "Auto:手动" },
|
||||
"zh-TW": { tip: "Auto 的路由方式:點擊更改" },
|
||||
ja: { tip: "Auto のルーティング方法:クリックで変更" },
|
||||
@@ -213,8 +213,8 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
await menu.waitFor();
|
||||
const box = await menu.boundingBox();
|
||||
assert.ok(box.x >= 0 && box.x + box.width <= width, JSON.stringify(box));
|
||||
await menu.locator(".pm-item", { hasText: "Smart" }).click();
|
||||
await page.waitForFunction(() => document.querySelector('.rt-group[data-id="auto"] .rt-groute')?.textContent === "Smart");
|
||||
await menu.locator(".pm-item", { hasText: "Quota first" }).click();
|
||||
await page.waitForFunction(() => document.querySelector('.rt-group[data-id="auto"] .rt-groute')?.textContent === "Quota first");
|
||||
assert.equal(posts.at(-1).body.routing, "");
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
@@ -160,7 +160,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
assert.match(await row("relay-b").locator("em").textContent(), /95%/);
|
||||
// the header tells Smart as it weighs them, not as keys in their order
|
||||
assert.equal((await page.locator(".rt-mode").textContent()).trim(),
|
||||
await say("Smart: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last."));
|
||||
await say("Quota first: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last."));
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
test(`${engine} ${lang}: one whose month its weeks can't use up says its week decides (#5639)`, async (t) => {
|
||||
@@ -201,7 +201,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
const steps = await page.locator(".rt-steps li").allTextContents();
|
||||
assert.ok(steps.some((s) => s.includes(aside)), steps.join("\n"));
|
||||
assert.equal((await page.locator(".rt-mode").textContent()).trim(),
|
||||
await say("Smart: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last."));
|
||||
await say("Quota first: of the accounts with quota to spare, the one whose allowance renews soonest goes first — what it has left would be lost at the reset. The week decides; an account with five hours and no week goes by its five hours, and one whose month its weeks can no longer use up before it renews by its week. One at 90% or more waits until the others can't answer; one resting after a failure goes last."));
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
|
||||
@@ -30,11 +30,11 @@ const groups = (pick) => ({ models, pools: [], groups: [
|
||||
] });
|
||||
|
||||
const words = {
|
||||
en: { edit: "Edit", save: "Save", routing: "Routing", manual: "Manual", smart: "Smart",
|
||||
en: { edit: "Edit", save: "Save", routing: "Routing", manual: "Manual", smart: "Quota first",
|
||||
hint: "Manual: every request goes to the model you pick on the group's card, over its own accounts or keys; the others, and the rules, wait until you pick another — none takes over when it fails.",
|
||||
rulesWait: "The rules wait while you pick the model by hand.", group: "Model every request goes to",
|
||||
saved: "Hand: every request to luna" },
|
||||
zh: { edit: "编辑", save: "保存", routing: "路由", manual: "手动", smart: "智能",
|
||||
zh: { edit: "编辑", save: "保存", routing: "路由", manual: "手动", smart: "额度优先",
|
||||
hint: "手动:所有请求发给在路由组卡片上选中的模型(在其账号或 Key 间路由);改选前其他模型和规则不生效,失败时也不切换。",
|
||||
rulesWait: "手动选择模型时,规则暂不生效。", group: "所有请求发往的模型",
|
||||
saved: "Hand:所有请求改发给 luna" },
|
||||
|
||||
@@ -32,11 +32,11 @@ const groups = () => ({
|
||||
});
|
||||
|
||||
const words = {
|
||||
en: { smart: "No rules: Smart routing", order: "No rules: the members go by the routing set under Advanced, In order", edit: "Edit", save: "Save", intent: "planning, design, or a hard problem to think through" },
|
||||
zh: { smart: "没有规则:按智能路由", order: "没有规则:成员按高级里设置的路由(按顺序)", edit: "编辑", save: "保存", intent: "规划、设计,或需要深入思考的难题" },
|
||||
"zh-TW": { smart: "沒有規則:依智慧路由", order: "沒有規則:成員依進階中設定的路由(按順序)", edit: "編輯", save: "儲存", intent: "規劃、設計,或需要深入思考的難題" },
|
||||
ja: { smart: "ルールなし:スマートルーティング", order: "ルールなし:メンバーは詳細設定のルーティング(順番)", edit: "編集", save: "保存", intent: "計画、設計、またはじっくり考える必要がある難問" },
|
||||
de: { smart: "Keine Regeln: Smart-Routing", order: "Keine Regeln: Die Mitglieder gehen nach dem unter Erweitert gesetzten Routing (Der Reihe nach)", edit: "Bearbeiten", save: "Speichern", intent: "Planung, Entwurf oder ein schwieriges Problem zum Durchdenken" },
|
||||
en: { smart: "No rules: Quota first, which doesn't judge how hard a task is", order: "No rules: the members go by the routing set under Advanced, In order", edit: "Edit", save: "Save", intent: "planning, design, or a hard problem to think through" },
|
||||
zh: { smart: "没有规则:额度优先,不判断任务难易", order: "没有规则:成员按高级里设置的路由(按顺序)", edit: "编辑", save: "保存", intent: "规划、设计,或需要深入思考的难题" },
|
||||
"zh-TW": { smart: "沒有規則:額度優先,不判斷任務難易", order: "沒有規則:成員依進階中設定的路由(按順序)", edit: "編輯", save: "儲存", intent: "規劃、設計,或需要深入思考的難題" },
|
||||
ja: { smart: "ルールなし:枠優先。タスクの難しさは判断しません", order: "ルールなし:メンバーは詳細設定のルーティング(順番)", edit: "編集", save: "保存", intent: "計画、設計、またはじっくり考える必要がある難問" },
|
||||
de: { smart: "Keine Regeln: Kontingent zuerst, ohne die Schwierigkeit einer Aufgabe zu beurteilen", order: "Keine Regeln: Die Mitglieder gehen nach dem unter Erweitert gesetzten Routing (Der Reihe nach)", edit: "Bearbeiten", save: "Speichern", intent: "Planung, Entwurf oder ein schwieriges Problem zum Durchdenken" },
|
||||
};
|
||||
|
||||
function serve(lang, posts) {
|
||||
|
||||
@@ -55,7 +55,7 @@ function serve(lang, posts, off = []) {
|
||||
}
|
||||
|
||||
const ROUTINGS = [
|
||||
["", "Smart", "智能"], ["order", "In order", "按顺序"], ["drain", "Until used up", "用完再换"], ["rotate", "In turn", "轮流"],
|
||||
["", "Quota first", "额度优先"], ["order", "In order", "按顺序"], ["drain", "Until used up", "用完再换"], ["rotate", "In turn", "轮流"],
|
||||
["usage", "Least used first", "用量少的优先"], ["pace", "Use before expiry", "到期前用完"],
|
||||
];
|
||||
const STAYS = [["", "Auto", "自动"], ["session", "Session", "整个会话"], ["turn", "Within a turn", "一轮之内"], ["off", "Off", "关闭"]];
|
||||
@@ -123,7 +123,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
await page.getByRole("button", { name: L.cancel, exact: true }).click();
|
||||
await page.getByRole("alertdialog").locator("button").last().click();
|
||||
await open();
|
||||
assert.match(await opt(L.routing, zh ? "智能" : "Smart").getAttribute("class"), /\bon\b/);
|
||||
assert.match(await opt(L.routing, zh ? "额度优先" : "Quota first").getAttribute("class"), /\bon\b/);
|
||||
assert.match(await opt(L.stays, zh ? "自动" : "Auto").getAttribute("class"), /\bon\b/);
|
||||
assert.equal(await unsaved(L.routing).isVisible(), false);
|
||||
assert.equal(await unsaved(L.stays).isVisible(), false);
|
||||
@@ -156,7 +156,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
await page.locator(".editor .accts").first().waitFor();
|
||||
const field = page.locator(".editor label", { hasText: new RegExp(`^${L.routing}$`) }).locator("xpath=following-sibling::div[1]");
|
||||
const shown = await field.locator(".segs").first().evaluate((box) => [...box.querySelectorAll(".opt")].filter((b) => getComputedStyle(b).display !== "none").map((b) => b.textContent));
|
||||
assert.deepEqual(shown, [zh ? "智能" : "Smart"], `${where}: Smart alone`);
|
||||
assert.deepEqual(shown, [zh ? "额度优先" : "Quota first"], `${where}: Smart alone`);
|
||||
assert.match(await field.locator(".segs .opt").first().getAttribute("class"), /\bon\b/, `${where}: Smart picked`);
|
||||
assert.ok(await page.evaluate(() => document.scrollingElement.scrollWidth <= innerWidth + 1), `${where}: fits`);
|
||||
// on again, every routing is back
|
||||
|
||||
@@ -51,7 +51,7 @@ function serve(lang, scene) {
|
||||
}
|
||||
|
||||
const chip = { en: "By weight", zh: "按权重", ja: "重み付け", de: "Nach Gewicht" };
|
||||
const smart = { en: "Smart", zh: "智能", ja: "スマート", de: "Intelligent" };
|
||||
const smart = { en: "Quota first", zh: "额度优先", ja: "枠優先", de: "Kontingent zuerst" };
|
||||
|
||||
for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", "webkit"])) {
|
||||
for (const lang of ["en", "zh", "ja", "de"]) {
|
||||
@@ -103,7 +103,7 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
assert.equal((await page.locator(".rt-hub i").textContent()).trim(), smart[lang]);
|
||||
assert.equal((await page.locator(".rt-mode").textContent()).trim(),
|
||||
await page.evaluate(([lang, key]) => (lang !== "en" && I18N[lang]?.[key]) || key, [lang,
|
||||
"Smart: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last."]));
|
||||
"Quota first: keys that suit the request go first — one made for the model's own API — then in their order. One resting after a failure goes last."]));
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
<p>プロバイダーに二つ目のアカウントやキーを追加してオンにすると、編集画面に <span class="ui">ルーティング</span> と <span class="ui">維持</span> が現れ、リクエストをどう分けるかを決めます。</p>
|
||||
<p>枠が残っているのにレート制限(429)されたものの扱いも選べます。<span class="ui">位置を維持</span> はベンダーの指定どおり休んでから元の位置に戻り、<span class="ui">最後尾へ</span> はレート制限されていないものの後ろに回り、毎回先頭に戻らず負荷が回ります。</p>
|
||||
<h2 id="routing"><a class="anchor" href="#routing">ルーティング</a></h2>
|
||||
<ul><li><b><span class="ui">スマート</span></b>(既定):枠に余裕のある間は最初のものが受け、少なくなると残りが最も多いものが引き継ぎます。クレジット切れは 30 分、枠切れはリセットまで、レート制限はベンダーの指定どおり、エラーは 1 分(繰り返すと長く)休みます。</li><li><b><span class="ui">順番</span></b>:最初のものに送り、枠切れ・レート制限・エラーで次が引き継ぎます。</li><li><b><span class="ui">交互</span></b>:メッセージを送るたびに、リストの順で次のものへ回します。そのメッセージのためのエージェントのツール呼び出しは同じものに残ります。移るたびにプロンプトキャッシュの一部を失います。<span class="ui">維持</span>を<span class="ui">セッション</span>にすると、会話全体が一つに留まります。</li><li><b><span class="ui">使用量が最少のものを優先</span></b>:サブスクリプションは使った枠の割合、キーは直近数時間のトークン数で決めます。</li><li><b><span class="ui">週ペース</span></b>:更新までの 1 時間あたりの残りが最も多いサブスクリプションへ送り、週のリセットで失う分を減らします。90% 以上使ったものはほかが答えられないときまで待ちます。</li><li><b><span class="ui">重み付け</span></b>:各キーの重みで分けます。重み 3 のキーは重み 1 のキーの 3 倍を受けます。キーのみで、アカウントには使えません。</li><li><b><span class="ui">無料優先</span></b>:費用のかからないものを先に使い、それが答えられないときだけ費用のかかるものへ。</li></ul>
|
||||
<ul><li><b><span class="ui">枠優先</span></b>(既定):枠に余裕のある間は最初のものが受け、少なくなると残りが最も多いものが引き継ぎます。クレジット切れは 30 分、枠切れはリセットまで、レート制限はベンダーの指定どおり、エラーは 1 分(繰り返すと長く)休みます。</li><li><b><span class="ui">順番</span></b>:最初のものに送り、枠切れ・レート制限・エラーで次が引き継ぎます。</li><li><b><span class="ui">交互</span></b>:メッセージを送るたびに、リストの順で次のものへ回します。そのメッセージのためのエージェントのツール呼び出しは同じものに残ります。移るたびにプロンプトキャッシュの一部を失います。<span class="ui">維持</span>を<span class="ui">セッション</span>にすると、会話全体が一つに留まります。</li><li><b><span class="ui">使用量が最少のものを優先</span></b>:サブスクリプションは使った枠の割合、キーは直近数時間のトークン数で決めます。</li><li><b><span class="ui">週ペース</span></b>:更新までの 1 時間あたりの残りが最も多いサブスクリプションへ送り、週のリセットで失う分を減らします。90% 以上使ったものはほかが答えられないときまで待ちます。</li><li><b><span class="ui">重み付け</span></b>:各キーの重みで分けます。重み 3 のキーは重み 1 のキーの 3 倍を受けます。キーのみで、アカウントには使えません。</li><li><b><span class="ui">無料優先</span></b>:費用のかからないものを先に使い、それが答えられないときだけ費用のかかるものへ。</li></ul>
|
||||
<h2 id="stays"><a class="anchor" href="#stays">維持</a></h2>
|
||||
<p><span class="ui">維持</span> は、会話を答えたアカウントやキーに留めるかを決めます。</p>
|
||||
<ul><li><b><span class="ui">自動</span></b>(既定):ベンダーのキャッシュに保つ価値がある間は留まり、ターン内では常に留まります。</li><li><b><span class="ui">セッション</span></b>:答えられる限りセッション全体で留まります。</li><li><b><span class="ui">ターン内</span></b>:エージェントがツール結果を返す間は動かず、次に話しかけると改めてルーティングします。</li><li><b><span class="ui">オフ</span></b>:リクエストごとに改めてルーティングします。</li><li><b><span class="ui">厳格</span></b>:レート制限や枠切れでも移らず、エラーがエージェントに届きます。新しい会話は通常どおりです。</li></ul>
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
<p>Once a provider has a second account or key switched on, its editor gets <span class="ui">Routing</span> and <span class="ui">Stays</span>, which decide how requests go between them.</p>
|
||||
<p>You can also choose what one rate limited (429) while it still has quota does: <span class="ui">Keeps its place</span> rests as long as the vendor asks, then takes its place again; <span class="ui">Goes to the back</span> goes behind every one not rate limited since, so the load goes round rather than back to the first each time.</p>
|
||||
<h2 id="routing"><a class="anchor" href="#routing">Routings</a></h2>
|
||||
<ul><li><b><span class="ui">Smart</span></b> (default): the first takes requests while it has quota to spare; when it runs low, the one with the most left takes over. One out of credit sits out half an hour, one out of quota until it resets, one rate limited as long as the vendor asks, and one that fails a minute, longer each time it fails again.</li><li><b><span class="ui">In order</span></b>: requests go to the first; the next takes over when the one before runs out of quota, hits a rate limit or fails.</li><li><b><span class="ui">In turn</span></b>: each message you send goes to the next one, round the list; the agent’s tool calls for it stay on the same one. A move costs some prompt cache; with <span class="ui">Stays</span> on <span class="ui">Session</span>, a whole conversation stays on one instead.</li><li><b><span class="ui">Least used first</span></b>: a subscription by the share of its allowance used, a key by the tokens it served in the last hours.</li><li><b><span class="ui">Weekly pace</span></b>: the subscription with the most of its week left per hour until it renews, so less of each week is lost at its reset; one at 90% or more waits until the others can't answer.</li><li><b><span class="ui">By weight</span></b>: by the weight beside each key; a key weighing 3 takes three requests for every one a key weighing 1 takes. Keys only, not accounts.</li><li><b><span class="ui">Free first</span></b>: what costs nothing first, and only when those can't answer one that spends.</li></ul>
|
||||
<ul><li><b><span class="ui">Quota first</span></b> (default): the first takes requests while it has quota to spare; when it runs low, the one with the most left takes over. One out of credit sits out half an hour, one out of quota until it resets, one rate limited as long as the vendor asks, and one that fails a minute, longer each time it fails again.</li><li><b><span class="ui">In order</span></b>: requests go to the first; the next takes over when the one before runs out of quota, hits a rate limit or fails.</li><li><b><span class="ui">In turn</span></b>: each message you send goes to the next one, round the list; the agent’s tool calls for it stay on the same one. A move costs some prompt cache; with <span class="ui">Stays</span> on <span class="ui">Session</span>, a whole conversation stays on one instead.</li><li><b><span class="ui">Least used first</span></b>: a subscription by the share of its allowance used, a key by the tokens it served in the last hours.</li><li><b><span class="ui">Weekly pace</span></b>: the subscription with the most of its week left per hour until it renews, so less of each week is lost at its reset; one at 90% or more waits until the others can't answer.</li><li><b><span class="ui">By weight</span></b>: by the weight beside each key; a key weighing 3 takes three requests for every one a key weighing 1 takes. Keys only, not accounts.</li><li><b><span class="ui">Free first</span></b>: what costs nothing first, and only when those can't answer one that spends.</li></ul>
|
||||
<h2 id="stays"><a class="anchor" href="#stays">Stays</a></h2>
|
||||
<p><span class="ui">Stays</span> decides whether a conversation stays with the account or key that answered it:</p>
|
||||
<ul><li><b><span class="ui">Auto</span></b> (default): while what the vendor cached of it is worth keeping; within a turn always.</li><li><b><span class="ui">Session</span></b>: for the whole session, while it can answer.</li><li><b><span class="ui">Within a turn</span></b>: stays put while the agent sends tool results back; routed afresh when you speak again.</li><li><b><span class="ui">Off</span></b>: every request routed afresh.</li><li><b><span class="ui">Strict</span></b>: never moved, even rate limited or out of quota; the error goes to the agent. New conversations are routed as usual.</li></ul>
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
<p>给同一个供应商加上第二个账号或第二个 Key 并打开后,它的编辑页会多出 <span class="ui">路由</span> 和 <span class="ui">会话保持</span> 两项,决定请求在这些账号或 Key 之间怎么分。</p>
|
||||
<p>被限流(429)但还有额度的那个怎么办,也可以选:<span class="ui">保持原位</span>:休息到供应商要求的时间,再回到原来的位置;<span class="ui">排到最后</span>:排到所有没被限流的后面,让负载轮转起来,而不是每次都回到第一个。</p>
|
||||
<h2 id="routing"><a class="anchor" href="#routing">路由方式</a></h2>
|
||||
<ul><li><b><span class="ui">智能</span></b>(默认):第一个在额度充足时接请求,额度快用完时由剩得最多的接手。没余额的歇半小时,额度用完的歇到重置,被限流的歇到供应商要求的时间,出错的歇一分钟,再错就更久。</li><li><b><span class="ui">按顺序</span></b>:请求都发给第一个,它额度用完、被限流或出错时由下一个接手。</li><li><b><span class="ui">轮流</span></b>:你每发一条消息,就按列表顺序交给下一个;Agent 为这条消息做的工具调用留在同一个上。每换一次会损失部分提示词缓存;<span class="ui">会话保持</span>选<span class="ui">整个会话</span>时,改为整个会话固定在一个上。</li><li><b><span class="ui">用量少的优先</span></b>:订阅按已用额度的比例,Key 按最近几小时用掉的 token。</li><li><b><span class="ui">重置前用完</span></b>:交给本周剩余额度按小时算最多的订阅,让每周重置时浪费得最少;用到 90% 以上的,等别的都答不了才用。</li><li><b><span class="ui">按权重</span></b>:按每个 Key 旁边设的权重分,权重 3 的接 3 个请求,权重 1 的接 1 个。只有 Key 能用,账号不行。</li><li><b><span class="ui">免费优先</span></b>:先用不占额度、不花钱的模型,它们答不了时才用花钱的。</li></ul>
|
||||
<ul><li><b><span class="ui">额度优先</span></b>(默认):第一个在额度充足时接请求,额度快用完时由剩得最多的接手。没余额的歇半小时,额度用完的歇到重置,被限流的歇到供应商要求的时间,出错的歇一分钟,再错就更久。</li><li><b><span class="ui">按顺序</span></b>:请求都发给第一个,它额度用完、被限流或出错时由下一个接手。</li><li><b><span class="ui">轮流</span></b>:你每发一条消息,就按列表顺序交给下一个;Agent 为这条消息做的工具调用留在同一个上。每换一次会损失部分提示词缓存;<span class="ui">会话保持</span>选<span class="ui">整个会话</span>时,改为整个会话固定在一个上。</li><li><b><span class="ui">用量少的优先</span></b>:订阅按已用额度的比例,Key 按最近几小时用掉的 token。</li><li><b><span class="ui">重置前用完</span></b>:交给本周剩余额度按小时算最多的订阅,让每周重置时浪费得最少;用到 90% 以上的,等别的都答不了才用。</li><li><b><span class="ui">按权重</span></b>:按每个 Key 旁边设的权重分,权重 3 的接 3 个请求,权重 1 的接 1 个。只有 Key 能用,账号不行。</li><li><b><span class="ui">免费优先</span></b>:先用不占额度、不花钱的模型,它们答不了时才用花钱的。</li></ul>
|
||||
<h2 id="stays"><a class="anchor" href="#stays">会话保持</a></h2>
|
||||
<p><span class="ui">会话保持</span> 决定一段对话是否留在答过它的那个账号或 Key 上:</p>
|
||||
<ul><li><b><span class="ui">自动</span></b>(默认):在供应商为它缓存的内容还值得保留时留下,一轮之内总是留下。</li><li><b><span class="ui">整个会话</span></b>:整个会话都留在那里,只要它还能答。</li><li><b><span class="ui">一轮之内</span></b>:Agent 发回工具结果时不动,你再说话时重新路由。</li><li><b><span class="ui">关闭</span></b>:每个请求都重新路由。</li><li><b><span class="ui">严格</span></b>:永远不换,哪怕它被限流或额度用完,错误直接交给 Agent。新会话照常路由。</li></ul>
|
||||
|
||||
Reference in New Issue
Block a user