dqy08 commited on
Commit
9ea217e
·
1 Parent(s): 2b4d36e

小更新

Browse files
client/src/assets/demos/causal_flow/order.json CHANGED
@@ -27,6 +27,10 @@
27
  "slug": "CoT | 多“跳”推理",
28
  "label": "CoT | 多跳推理中“跳”的具象化"
29
  },
 
 
 
 
30
  {
31
  "slug": "过拟合|李白 将进酒",
32
  "label": "过拟合|李白 将进酒",
 
27
  "slug": "CoT | 多“跳”推理",
28
  "label": "CoT | 多跳推理中“跳”的具象化"
29
  },
30
+ {
31
+ "slug": "strawberry里有几个r",
32
+ "label": "CoT | strawberry里有几个r"
33
+ },
34
  {
35
  "slug": "过拟合|李白 将进酒",
36
  "label": "过拟合|李白 将进酒",
client/src/assets/demos/causal_flow/strawberry里有几个r.json ADDED
The diff for this file is too large to render. See raw diff
 
client/src/features/causal_flow/genAttributeBundledDemoManifest.generated.ts CHANGED
@@ -3,4 +3,4 @@
3
  */
4
  export type GenAttributeBundledDemoFeaturedStyle = 'bold';
5
  export type GenAttributeBundledDemoManifestEntry = { readonly slug: string; readonly label: string; readonly featured?: GenAttributeBundledDemoFeaturedStyle };
6
- export const GEN_ATTRIBUTE_BUNDLED_DEMOS: readonly GenAttributeBundledDemoManifestEntry[] = [{"slug":"Write a sonnet about love","label":"Poem | Write a sonnet about love","featured":"bold"},{"slug":"写一首绝句,主题是春天","label":"写诗 | 写一首绝句,主题是春天","featured":"bold"},{"slug":"CoT | 苏州所在省的省会","label":"CoT | 苏州所在省的省会","featured":"bold"},{"slug":"CoT | 苏州所在省的省会城市里最高的山","label":"CoT | 苏州所在省的省会的最高的山"},{"slug":"CoT | 反向传播归因动画","label":"CoT | 思维链的反向传播归因动画","featured":"bold"},{"slug":"CoT | 多“跳”推理","label":"CoT | 多跳推理中“跳”的具象化"},{"slug":"过拟合|李白 将进酒","label":"过拟合|李白 将进酒","featured":"bold"},{"slug":"CN->EN翻译","label":"CN->EN | 翻译"}];
 
3
  */
4
  export type GenAttributeBundledDemoFeaturedStyle = 'bold';
5
  export type GenAttributeBundledDemoManifestEntry = { readonly slug: string; readonly label: string; readonly featured?: GenAttributeBundledDemoFeaturedStyle };
6
+ export const GEN_ATTRIBUTE_BUNDLED_DEMOS: readonly GenAttributeBundledDemoManifestEntry[] = [{"slug":"Write a sonnet about love","label":"Poem | Write a sonnet about love","featured":"bold"},{"slug":"写一首绝句,主题是春天","label":"写诗 | 写一首绝句,主题是春天","featured":"bold"},{"slug":"CoT | 苏州所在省的省会","label":"CoT | 苏州所在省的省会","featured":"bold"},{"slug":"CoT | 苏州所在省的省会城市里最高的山","label":"CoT | 苏州所在省的省会的最高的山"},{"slug":"CoT | 反向传播归因动画","label":"CoT | 思维链的反向传播归因动画","featured":"bold"},{"slug":"CoT | 多“跳”推理","label":"CoT | 多跳推理中“跳”的具象化"},{"slug":"strawberry里有几个r","label":"CoT | strawberry里有几个r"},{"slug":"过拟合|李白 将进酒","label":"过拟合|李白 将进酒","featured":"bold"},{"slug":"CN->EN翻译","label":"CN->EN | 翻译"}];
client/src/pages/causal_flow/index.ts CHANGED
@@ -1709,11 +1709,13 @@ initQueryHistoryDropdown({
1709
  function syncGenAttrContentUrl(contentKey: string): void {
1710
  replaceDemoUrlParam(null, DEFAULT_DEMO_URL_PARAM, 'causal_flow');
1711
  replaceContentUrlParam(contentKey, DEFAULT_CONTENT_URL_PARAM, 'causal_flow');
 
1712
  }
1713
 
1714
  function syncGenAttrDemoUrl(slug: string): void {
1715
  replaceContentUrlParam(null, DEFAULT_CONTENT_URL_PARAM, 'causal_flow');
1716
  replaceDemoUrlParam(slug, DEFAULT_DEMO_URL_PARAM, 'causal_flow');
 
1717
  }
1718
 
1719
  /** demo / cached history / `?content=` / `?demo=` 并发恢复时只采纳最后一次意图 */
@@ -1849,12 +1851,10 @@ async function applyGenAttrCachedRun(
1849
  return;
1850
  }
1851
  if (options.afterUrl.kind === 'content') {
1852
- replaceDemoUrlParam(null, DEFAULT_DEMO_URL_PARAM, 'causal_flow');
1853
- replaceContentUrlParam(options.afterUrl.contentKey, DEFAULT_CONTENT_URL_PARAM, 'causal_flow');
1854
  } else {
1855
  syncGenAttrDemoUrl(options.afterUrl.slug);
1856
  }
1857
- syncGenAttrCachedDemosValueDisplay();
1858
  }
1859
 
1860
  /** 从缓存恢复运行;`shouldTouch` 为 true 时 touch MRU(下拉选中恒为 false,↑ 置顶走单独路径)。 */
 
1709
  function syncGenAttrContentUrl(contentKey: string): void {
1710
  replaceDemoUrlParam(null, DEFAULT_DEMO_URL_PARAM, 'causal_flow');
1711
  replaceContentUrlParam(contentKey, DEFAULT_CONTENT_URL_PARAM, 'causal_flow');
1712
+ syncGenAttrCachedDemosValueDisplay();
1713
  }
1714
 
1715
  function syncGenAttrDemoUrl(slug: string): void {
1716
  replaceContentUrlParam(null, DEFAULT_CONTENT_URL_PARAM, 'causal_flow');
1717
  replaceDemoUrlParam(slug, DEFAULT_DEMO_URL_PARAM, 'causal_flow');
1718
+ syncGenAttrCachedDemosValueDisplay();
1719
  }
1720
 
1721
  /** demo / cached history / `?content=` / `?demo=` 并发恢复时只采纳最后一次意图 */
 
1851
  return;
1852
  }
1853
  if (options.afterUrl.kind === 'content') {
1854
+ syncGenAttrContentUrl(options.afterUrl.contentKey);
 
1855
  } else {
1856
  syncGenAttrDemoUrl(options.afterUrl.slug);
1857
  }
 
1858
  }
1859
 
1860
  /** 从缓存恢复运行;`shouldTouch` 为 true 时 touch MRU(下拉选中恒为 false,↑ 置顶走单独路径)。 */