@vibe-lark/larkpal 0.1.29 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.mjs +8 -2
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -1918,7 +1918,8 @@ async function handleExecute(req, res, processManager) {
|
|
|
1918
1918
|
prompt: body.prompt?.slice(0, 200),
|
|
1919
1919
|
mode: body.mode,
|
|
1920
1920
|
max_turns: body.max_turns,
|
|
1921
|
-
max_budget_usd: body.max_budget_usd
|
|
1921
|
+
max_budget_usd: body.max_budget_usd,
|
|
1922
|
+
has_llm_config: !!body.llm_config
|
|
1922
1923
|
});
|
|
1923
1924
|
if (!body.session_id || !body.cwd || !body.prompt) {
|
|
1924
1925
|
logger$7.warn("执行请求参数缺失", {
|
|
@@ -1951,7 +1952,12 @@ async function handleExecute(req, res, processManager) {
|
|
|
1951
1952
|
cwd: body.cwd,
|
|
1952
1953
|
prompt: body.prompt,
|
|
1953
1954
|
maxTurns: body.max_turns,
|
|
1954
|
-
maxBudgetUsd: body.max_budget_usd
|
|
1955
|
+
maxBudgetUsd: body.max_budget_usd,
|
|
1956
|
+
...body.llm_config ? { llmConfig: {
|
|
1957
|
+
baseURL: body.llm_config.base_url,
|
|
1958
|
+
apiKey: body.llm_config.api_key,
|
|
1959
|
+
model: body.llm_config.model
|
|
1960
|
+
} } : {}
|
|
1955
1961
|
};
|
|
1956
1962
|
if (mode === "async") {
|
|
1957
1963
|
const callbacks = createTaskCallbacks(taskId);
|