You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
postprocess: switch from gemini-3-pro-preview to gemini-3-flash-preview for the default
`flash` is cheaper and faster and seems to still be sufficiently capable.
I did have to adjust the prompt slightly to explicitly say to include
the surrounding Rust Markdown code block.
This isn't actually used right now, but is in #1534, so it seems worth preserving.
Copy file name to clipboardExpand all lines: c2rust-postprocess/tests/llm-cache/CommentTransfer/partition/9c5f0dcfa75e9295565171e257b58573c8967fb1004cc8b0a527e70b4982ea59/metadata.toml
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
transform = "CommentTransfer"
2
2
identifier = "partition"
3
-
model = "gemini-3-pro-preview"
3
+
model = "gemini-3-flash-preview"
4
4
response = """```rust
5
5
/// Lomuto Partition Scheme:
6
6
/// Partitions the array so that elements < pivot are on the left,
@@ -40,7 +40,8 @@ role = "user"
40
40
content = """Transfer the comments from the following C function to the corresponding Rust function.
41
41
Do not add any comments that are not present in the C function.
42
42
Use Rust doc comment syntax (///) where appropriate (e.g., for function documentation).
43
-
Respond with the Rust function definition with the transferred comments; say nothing else.
43
+
Respond with the Rust function definition with the transferred comments
Copy file name to clipboardExpand all lines: c2rust-postprocess/tests/llm-cache/CommentTransfer/quickSort/c0abc7f56ddcdfd63311bc07471096bbf48a40e8a0e0a658b64d847c39cbb7f4/metadata.toml
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
transform = "CommentTransfer"
2
2
identifier = "quickSort"
3
-
model = "gemini-3-pro-preview"
3
+
model = "gemini-3-flash-preview"
4
4
response = """```rust
5
5
#[no_mangle]
6
6
pub unsafe extern "C" fn quickSort(
@@ -24,7 +24,8 @@ role = "user"
24
24
content = """Transfer the comments from the following C function to the corresponding Rust function.
25
25
Do not add any comments that are not present in the C function.
26
26
Use Rust doc comment syntax (///) where appropriate (e.g., for function documentation).
27
-
Respond with the Rust function definition with the transferred comments; say nothing else.
27
+
Respond with the Rust function definition with the transferred comments
0 commit comments