Browse Source

fix typos

pull/1063/head
Chrislearn Young 5 months ago
parent
commit
56b5427b0a
3 changed files with 2 additions and 3 deletions
  1. +0
    -1
      examples/mcp-host/nodes/telepathy.py
  2. +1
    -1
      node-hub/dora-mcp-host/src/config.rs
  3. +1
    -1
      node-hub/dora-mcp-host/src/routing.rs

+ 0
- 1
examples/mcp-host/nodes/telepathy.py View File

@@ -25,7 +25,6 @@ star_movie_pairs = [
{"star": "Jennifer Lawrence", "movie": "The Hunger Games"},
{"star": "Morgan Freeman", "movie": "The Shawshank Redemption"},
{"star": "Denzel Washington", "movie": "Training Day"},
{"star": "Matt Damon", "movie": "The Martian"},
]

node = Node()


+ 1
- 1
node-hub/dora-mcp-host/src/config.rs View File

@@ -34,7 +34,7 @@ pub fn init() {
"json" => Figment::new().merge(Json::file(config_path)),
"toml" => Figment::new().merge(Toml::file(config_path)),
ext => {
eprintln!("unsupport config file format: {ext:?}");
eprintln!("unsupported config file format: {ext:?}");
std::process::exit(1);
}
};


+ 1
- 1
node-hub/dora-mcp-host/src/routing.rs View File

@@ -67,7 +67,7 @@ async fn chat_completions(
tracing::info!("Prepare the chat completion request.");

let mut chat_request = match req.parse_json::<CreateChatCompletionRequest>().await {
Ok(chat_requst) => chat_requst,
Ok(chat_request) => chat_request,
Err(e) => {
println!(
"parse request error: {e}, payload: {}",


Loading…
Cancel
Save