Skip to content

Instantly share code, notes, and snippets.

View hankbeasley's full-sized avatar

Hank Beasley hankbeasley

View GitHub Profile
@hankbeasley
hankbeasley / parser.ts
Created January 31, 2025 23:04
support partial think tokens
export interface ParsedToken {
token: string;
isThinking: boolean;
}
/**
* Tracks partial data across parse calls to handle incomplete <think> markers.
*/
export class ThinkingTokenSeparator {
private buffer = "";
@hankbeasley
hankbeasley / test.cs
Last active May 28, 2017 18:21
codewella test
using Xunit;
using System;
public class tester{
[Fact]
public void h(){
string.ab
Console.WriteLine("testing");
}
}