Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ TUI shows live GPU utilization, active model servers, and a chat tab.
| Command | Description |
|---|---|
| `rocm` | Open the TUI (runs setup on first launch) |
| `rocm doctor` | Check GPU, ROCm install, engines, and managed folders |
| `rocm examine` | Check GPU, ROCm install, engines, and managed folders |
| `rocm install sdk` | Install TheRock ROCm wheels into a managed Python environment |
| `rocm install driver` | Install the AMD kernel driver on Linux |
| `rocm serve <model>` | Start a local OpenAI-compatible model server |
Expand Down
254 changes: 127 additions & 127 deletions apps/rocm/src/main.rs

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions apps/rocm/src/providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ fn openai_chat_request_body_with_stream(
fn rocm_openai_tool_definitions() -> Vec<serde_json::Value> {
vec![
rocm_openai_tool(
"doctor",
"examine",
"Read the current ROCm host, GPU, runtime, driver, and engine status.",
serde_json::json!({
"type": "object",
Expand All @@ -978,7 +978,7 @@ fn rocm_openai_tool_definitions() -> Vec<serde_json::Value> {
),
rocm_openai_tool(
"bridge_snapshot",
"Read a full ROCm snapshot including doctor data, engines, services, automations, and GPU telemetry.",
"Read a full ROCm snapshot including examine data, engines, services, automations, and GPU telemetry.",
serde_json::json!({
"type": "object",
"properties": {},
Expand Down Expand Up @@ -2241,7 +2241,7 @@ mod tests {
listener,
"tiny.gguf",
move |stream, _request| {
let body = r#"{"choices":[{"message":{"content":"I will check first.","tool_calls":[{"id":"call-1","type":"function","function":{"name":"doctor","arguments":"{}"}}]}}]}"#;
let body = r#"{"choices":[{"message":{"content":"I will check first.","tool_calls":[{"id":"call-1","type":"function","function":{"name":"examine","arguments":"{}"}}]}}]}"#;
write!(
stream,
"HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: {}\r\nConnection: close\r\n\r\n{}",
Expand Down Expand Up @@ -2287,10 +2287,10 @@ mod tests {

assert!(request.contains("\"tools\""));
assert!(request.contains("\"tool_choice\":\"auto\""));
assert!(request.contains("\"name\":\"doctor\""));
assert!(request.contains("\"name\":\"examine\""));
assert_eq!(response.content, "I will check first.");
assert_eq!(response.tool_calls.len(), 1);
assert_eq!(response.tool_calls[0].name, "doctor");
assert_eq!(response.tool_calls[0].name, "examine");
Ok(())
}

Expand Down
Loading
Loading