@mmmbuto/anthmorph 0.1.1 → 0.1.2

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/Cargo.lock CHANGED
@@ -4,7 +4,7 @@ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "AnthMorph"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  dependencies = [
9
9
  "anyhow",
10
10
  "async-stream",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "AnthMorph"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  edition = "2021"
5
5
  description = "Anthropic to OpenAI-compatible proxy"
6
6
  license = "MIT"
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # AnthMorph
2
2
 
3
- [![Status](https://img.shields.io/badge/Status-0.1.1-blue.svg)](#project-status)
3
+ [![Status](https://img.shields.io/badge/Status-0.1.2-blue.svg)](#project-status)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
5
  [![Rust](https://img.shields.io/badge/Rust-1.94%2B-orange.svg)](https://www.rust-lang.org)
6
6
  [![Target](https://img.shields.io/badge/Target-Termux%20%2F%20Linux-green.svg)](https://termux.dev)
@@ -19,7 +19,7 @@ Core capabilities:
19
19
 
20
20
  ## Project Status
21
21
 
22
- - Current line: `0.1.1`
22
+ - Current line: `0.1.2`
23
23
  - Primary target: `chutes.ai`
24
24
  - Secondary target: generic OpenAI-compatible endpoints
25
25
  - Tested locally against Chutes, MiniMax, and Alibaba Coding Plan rejection handling
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmmbuto/anthmorph",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Chutes-first Anthropic /v1/messages proxy for Chutes and OpenAI-compatible backends",
5
5
  "license": "MIT",
6
6
  "author": "DioNanos <noreply@github.com>",
Binary file
@@ -248,7 +248,11 @@ pub enum ContentBlockStartData {
248
248
  #[serde(rename = "thinking")]
249
249
  Thinking { thinking: String },
250
250
  #[serde(rename = "tool_use")]
251
- ToolUse { id: String, name: String },
251
+ ToolUse {
252
+ id: String,
253
+ name: String,
254
+ input: serde_json::Value,
255
+ },
252
256
  }
253
257
 
254
258
  #[derive(Debug, Clone, Serialize)]
package/src/proxy.rs CHANGED
@@ -554,7 +554,11 @@ fn transition_to_tool(
554
554
  *active_block = Some(ActiveBlock::ToolUse(tool_index, index));
555
555
  events.push(start_block_sse(
556
556
  index,
557
- anthropic::ContentBlockStartData::ToolUse { id, name },
557
+ anthropic::ContentBlockStartData::ToolUse {
558
+ id,
559
+ name,
560
+ input: json!({}),
561
+ },
558
562
  ));
559
563
  (index, events)
560
564
  }
@@ -734,6 +738,7 @@ mod tests {
734
738
 
735
739
  let joined = output.join("");
736
740
  assert!(joined.contains("\"type\":\"tool_use\""));
741
+ assert!(joined.contains("\"input\":{}"));
737
742
  assert!(joined.contains("\"partial_json\":\"{\\\"loc\""));
738
743
  assert!(joined.contains("\"partial_json\":\"ation"));
739
744
  assert_eq!(joined.matches("event: content_block_start").count(), 1);