fix: resolve build errors and add logs to gitignore
All checks were successful
Test / frontend-tests (pull_request) Successful in 1m37s
Test / frontend-typecheck (pull_request) Successful in 1m45s
PR Review Automation / review (pull_request) Successful in 8m28s
Test / rust-fmt-check (pull_request) Successful in 12m24s
Test / rust-clippy (pull_request) Successful in 13m38s
Test / rust-tests (pull_request) Successful in 15m35s
All checks were successful
Test / frontend-tests (pull_request) Successful in 1m37s
Test / frontend-typecheck (pull_request) Successful in 1m45s
PR Review Automation / review (pull_request) Successful in 8m28s
Test / rust-fmt-check (pull_request) Successful in 12m24s
Test / rust-clippy (pull_request) Successful in 13m38s
Test / rust-tests (pull_request) Successful in 15m35s
- Fix openai.rs: changed system_message to combined_system variable - Fix VMList.tsx: added memoryTotal and tags fields to RawVMInfo interface - Fix .gitignore: added .logs/ and *.log to prevent log files from being committed
This commit is contained in:
parent
d922b72f53
commit
12f89f0d69
6
.gitignore
vendored
6
.gitignore
vendored
@ -13,7 +13,7 @@ artifacts/
|
||||
# kubectl binaries (downloaded during build)
|
||||
src-tauri/binaries/
|
||||
|
||||
SECURITY_AUDIT.md
|
||||
SECURITYAUDIT.md
|
||||
|
||||
# Internal / private documents — never commit
|
||||
USER_GUIDE.md
|
||||
@ -25,3 +25,7 @@ PR_DESCRIPTION.md
|
||||
docs/images/user-guide/
|
||||
*.bak
|
||||
.DS_Store
|
||||
|
||||
# Logs
|
||||
.logs/
|
||||
*.log
|
||||
|
||||
1407
.logs/subtask2.log
1407
.logs/subtask2.log
File diff suppressed because it is too large
Load Diff
@ -321,7 +321,7 @@ impl OpenAiProvider {
|
||||
.filter(|m| m.role == "system")
|
||||
.map(|m| m.content.clone())
|
||||
.collect();
|
||||
|
||||
|
||||
let combined_system = if system_messages.is_empty() {
|
||||
None
|
||||
} else {
|
||||
@ -348,7 +348,7 @@ impl OpenAiProvider {
|
||||
}
|
||||
|
||||
// Add optional system message
|
||||
if let Some(system) = system_message {
|
||||
if let Some(system) = combined_system {
|
||||
body["system"] = serde_json::Value::String(system);
|
||||
}
|
||||
|
||||
|
||||
@ -40,10 +40,12 @@ interface RawVMInfo {
|
||||
mem?: number;
|
||||
max_mem?: number;
|
||||
memory?: number;
|
||||
memoryTotal?: number;
|
||||
disk?: number;
|
||||
max_disk?: number;
|
||||
diskTotal?: number;
|
||||
uptime?: number;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
interface VMListProps {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user