fix: support developer and function roles for GPT-5.x compatibility (#23)
authorStefan Gasser <redacted>
Sun, 11 Jan 2026 09:14:06 +0000 (10:14 +0100)
committerGitHub <redacted>
Sun, 11 Jan 2026 09:14:06 +0000 (10:14 +0100)
commitece1ffe8bee99d06cecf8cc970e9858a67765efd
tree3d8d233470d2507d16081150a0c2cf08937d42e3
parent74c9202bc4934914a1fd48b2d767e415efad9279
fix: support developer and function roles for GPT-5.x compatibility (#23)

GPT-5.x models use the 'developer' role instead of 'system' for
instructions. The 'function' role is also added for legacy compatibility.

Fixes #22
src/routes/proxy.test.ts
src/routes/proxy.ts
src/services/llm-client.ts
git clone https://git.99rst.org/PROJECT