Fix PROMPT.md loading: use get_work_path instead of get_stack_path
All checks were successful
BotServer CI/CD / build (push) Successful in 5m46s
All checks were successful
BotServer CI/CD / build (push) Successful in 5m46s
This commit is contained in:
parent
db2dc3fb34
commit
514427c7cc
1 changed files with 3 additions and 3 deletions
|
|
@ -555,9 +555,9 @@ impl BotOrchestrator {
|
||||||
"default".to_string()
|
"default".to_string()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let work_dir = crate::core::shared::utils::get_stack_path();
|
let work_dir = crate::core::shared::utils::get_work_path();
|
||||||
let gbot_dir = format!("{}/data/system/work/{}.gbai/{}.gbot/",
|
let gbot_dir = format!("{}/{}.gbai/{}.gbot/",
|
||||||
work_dir, bot_name, bot_name);
|
work_dir, bot_name, bot_name);
|
||||||
|
|
||||||
let system_prompt = std::fs::read_to_string(format!("{}PROMPT.md", gbot_dir))
|
let system_prompt = std::fs::read_to_string(format!("{}PROMPT.md", gbot_dir))
|
||||||
.or_else(|_| std::fs::read_to_string(format!("{}prompt.md", gbot_dir)))
|
.or_else(|_| std::fs::read_to_string(format!("{}prompt.md", gbot_dir)))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue