Skip to content

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. Smart routing, automatic failover, encrypted keys. Personal experimentation only.

TypeScript

test(google): camelCase thoughtSignature fixture + credit @deadc for #32 (#34)

Tashfeen0441d251df31
diff --git a/README.md b/README.md
index 42dec064..0dc2636e 100644
--- a/README.md
+++ b/README.md
@@ -294,6 +294,7 @@ Thanks to everyone who's helped improve FreeLLMAPI:
- [@moaaz12-web](https://github.com/moaaz12-web) — tool-calling support across providers (#3)
- [@lukasulc](https://github.com/lukasulc) — better-sqlite3 bump to fix npm install on Node 24+ (#12)
- [@VinhPhamAI](https://github.com/VinhPhamAI) — root `.env` PORT now propagates to server + Vite dev proxy + UI base URL (#27)
+- [@deadc](https://github.com/deadc) — preserve Gemini `thoughtSignature` so multi-turn function calling stops 400-ing (#32)
## Terms of Service review
diff --git a/server/src/__tests__/providers/google.test.ts b/server/src/__tests__/providers/google.test.ts
index 1c92fd0b..1fe06e9e 100644
--- a/server/src/__tests__/providers/google.test.ts
+++ b/server/src/__tests__/providers/google.test.ts
@@ -182,7 +182,7 @@ describe('GoogleProvider', () => {
candidates: [{
content: {
parts: [{
- thought_signature: 'sig_123',
+ thoughtSignature: 'sig_123',
functionCall: {
id: 'call_123',
name: 'get_weather',
@@ -227,7 +227,7 @@ describe('GoogleProvider', () => {
);
const assistantEntry = capturedBody.contents.find((c: any) => c.role === 'model');
- expect(assistantEntry.parts[0].thought_signature).toBe('sig_123');
+ expect(assistantEntry.parts[0].thoughtSignature).toBe('sig_123');
expect(assistantEntry.parts[0].functionCall.name).toBe('get_weather');
});
});