mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-18 13:33:53 +08:00
初始化:独立 oclaw 仓库首提交
- 在 oclaw/ 下重新初始化 Git 仓库 - 补齐子仓库 .gitignore,避免提交本地运行态数据(_local、node_modules、logs 等) - 提交当前工程代码与配置 Made-with: Cursor
This commit is contained in:
commit
ba3836f00f
579 changed files with 83112 additions and 0 deletions
9
prompts/fallback/ollama_failure.en.md
Normal file
9
prompts/fallback/ollama_failure.en.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: fallback_ollama_failure_en
|
||||
summary: ollama transport failure banner in English
|
||||
read_when: ollama transport exception
|
||||
---
|
||||
**Could not reach the Ollama / compatible endpoint:** `{{error_type}}: {{error_message}}`
|
||||
|
||||
_Falling back to the built-in rule engine for this reply._
|
||||
|
||||
9
prompts/fallback/ollama_failure.zh.md
Normal file
9
prompts/fallback/ollama_failure.zh.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: fallback_ollama_failure_zh
|
||||
summary: ollama transport failure banner in Chinese
|
||||
read_when: ollama transport exception
|
||||
---
|
||||
**无法连接本地 Ollama(或兼容接口):** `{{error_type}}: {{error_message}}`
|
||||
|
||||
_本次回答已改用内置规则引擎兜底。_
|
||||
|
||||
11
prompts/fallback/openai_missing_key_user.en.md
Normal file
11
prompts/fallback/openai_missing_key_user.en.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
title: fallback_openai_missing_key_user_en
|
||||
summary: user-facing message when openai key is missing
|
||||
read_when: openai mode selected but no api key
|
||||
---
|
||||
**Cannot use this profile:** no API Key is set for the OpenAI-compatible endpoint, and `OPENAI_API_KEY` is not in the environment.
|
||||
|
||||
Add a key in **Settings** and save, or switch to the built-in **Local Ollama (default)** profile.
|
||||
|
||||
_No request was sent to the model service._
|
||||
|
||||
11
prompts/fallback/openai_missing_key_user.zh.md
Normal file
11
prompts/fallback/openai_missing_key_user.zh.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
title: fallback_openai_missing_key_user_zh
|
||||
summary: user-facing message when openai key is missing
|
||||
read_when: openai mode selected but no api key
|
||||
---
|
||||
**当前配置无法接入模型:** 本配置为 OpenAI / 兼容 API,但未填写 API Key,且环境中也没有 `OPENAI_API_KEY`。
|
||||
|
||||
请在「设置」中填写 Key 并保存,或切换到内置的「本地 Ollama(默认)」配置后再试。
|
||||
|
||||
_本次未向模型服务发送请求。_
|
||||
|
||||
9
prompts/fallback/openai_transport_error.en.md
Normal file
9
prompts/fallback/openai_transport_error.en.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: fallback_openai_transport_error_en
|
||||
summary: generic OpenAI-compatible transport error in English
|
||||
read_when: model request failed
|
||||
---
|
||||
**Model request failed:** `{{error_type}}: {{error_message}}`
|
||||
|
||||
Check API key, base URL, and network, then try again.{{extra_tail}}
|
||||
|
||||
9
prompts/fallback/openai_transport_error.zh.md
Normal file
9
prompts/fallback/openai_transport_error.zh.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: fallback_openai_transport_error_zh
|
||||
summary: generic OpenAI-compatible transport error in Chinese
|
||||
read_when: model request failed
|
||||
---
|
||||
**调用模型失败:** `{{error_type}}: {{error_message}}`
|
||||
|
||||
请检查 API Key、Base URL 与网络后重试。{{extra_tail}}
|
||||
|
||||
9
prompts/fallback/openai_transport_oversized.en.md
Normal file
9
prompts/fallback/openai_transport_oversized.en.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: fallback_openai_transport_oversized_en
|
||||
summary: oversized payload failure in English
|
||||
read_when: model request too large
|
||||
---
|
||||
**Model request failed (message too large):** `{{error_type}}: {{error_message}}`
|
||||
|
||||
Common causes: oversized tools schema or large tool results in history. Tune `AIA_OPENAI_TOOLS_MAX_JSON_CHARS`, reduce MCP tools, or narrow the query.
|
||||
|
||||
9
prompts/fallback/openai_transport_oversized.zh.md
Normal file
9
prompts/fallback/openai_transport_oversized.zh.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
title: fallback_openai_transport_oversized_zh
|
||||
summary: oversized payload failure in Chinese
|
||||
read_when: model request too large
|
||||
---
|
||||
**调用模型失败(单条消息过长):** `{{error_type}}: {{error_message}}`
|
||||
|
||||
常见原因:tools 负载过大或 tool 返回过长。可调整 `AIA_OPENAI_TOOLS_MAX_JSON_CHARS`,或减少 MCP / 缩小查询范围后重试。
|
||||
|
||||
7
prompts/fallback/openclaw_runtime_error.en.md
Normal file
7
prompts/fallback/openclaw_runtime_error.en.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: fallback_openclaw_runtime_error_en
|
||||
summary: fallback text when openclaw runtime failed
|
||||
read_when: gateway exception path
|
||||
---
|
||||
oclaw runtime error: executor missing model/tools
|
||||
|
||||
7
prompts/fallback/openclaw_runtime_error.zh.md
Normal file
7
prompts/fallback/openclaw_runtime_error.zh.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: fallback_openclaw_runtime_error_zh
|
||||
summary: fallback text when openclaw runtime failed
|
||||
read_when: gateway exception path
|
||||
---
|
||||
oclaw 运行失败:执行器缺少 model/tools
|
||||
|
||||
7
prompts/fallback/task_queued.en.md
Normal file
7
prompts/fallback/task_queued.en.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: fallback_task_queued_en
|
||||
summary: User-visible text when async task is enqueued.
|
||||
read_when: gateway async_task mode
|
||||
---
|
||||
|
||||
Task queued, task_id={{task_id}}
|
||||
7
prompts/fallback/task_queued.zh.md
Normal file
7
prompts/fallback/task_queued.zh.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
title: fallback_task_queued_zh
|
||||
summary: User-visible text when async task is enqueued.
|
||||
read_when: gateway async_task mode
|
||||
---
|
||||
|
||||
任务已入队,task_id={{task_id}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue