Commit Graph

244 Commits

Author SHA1 Message Date
Luca Beurer-Kellner 7f820bd79f extend tests for input guardrailing 2025-03-30 09:33:48 +02:00
Luca Beurer-Kellner 2a66582c7c fix import issues 2025-03-30 09:33:48 +02:00
Luca Beurer-Kellner 78d3bc9c14 improve comments 2025-03-30 09:33:48 +02:00
Luca Beurer-Kellner 55db93c8d3 simplify request instrumentation 2025-03-30 09:33:36 +02:00
Luca Beurer-Kellner e66232215e fix more cases 2025-03-30 09:32:02 +02:00
Luca Beurer-Kellner 0157aad27b handle non-streaming case 2025-03-30 09:32:02 +02:00
Luca Beurer-Kellner 0df61524da non-streaming case 2025-03-30 09:32:02 +02:00
Luca Beurer-Kellner 9264c72309 fix: return earlier 2025-03-30 09:32:02 +02:00
Luca Beurer-Kellner d3415547b2 more comments 2025-03-30 09:32:02 +02:00
Luca Beurer-Kellner 355bf42e51 documentation on stream instrumentation 2025-03-30 09:32:02 +02:00
Luca Beurer-Kellner b0fd446b28 initial draft: pipelined guardrails 2025-03-30 09:32:02 +02:00
Hemang 4671c8b67e Add tests for gemini guardrails integration. 2025-03-27 12:26:17 +01:00
Hemang 35cb889f1a Update guardrails test after annotations ranges filtering. 2025-03-27 12:26:17 +01:00
Hemang e55df73487 Add guardrails for gemini integration. 2025-03-27 12:26:17 +01:00
Hemang 8191c83c12 Revert "Add debug logs for metadata push."
This reverts commit f247682fa3.
2025-03-26 19:57:00 +01:00
Hemang f247682fa3 Add debug logs for metadata push. 2025-03-26 15:20:26 +01:00
Hemang c9cdbd7eb5 Update metadata for gemini streaming case. 2025-03-25 11:49:07 +01:00
Hemang 0a9cc244c8 Add tool_result type in the coverter test for Anthropic. 2025-03-21 00:56:52 +01:00
Hemang ad49e688f0 Add tests for Anthropic guardrails. 2025-03-21 00:56:52 +01:00
Hemang 3df9e73249 Add some tests for the Anthropic conversion functions. Add support for system message in Anthropic. Rename some variables. 2025-03-21 00:56:52 +01:00
Hemang 4a9930c30d Add guardrails checks for Anthropic. 2025-03-21 00:56:52 +01:00
Hemang 781c6224d9 Anthropic with stream=False complains about content-length not matching with the response size. 2025-03-20 10:59:27 +01:00
Hemang a4ee5f0c47 Add metadata before pushing to Explorer. 2025-03-20 10:59:27 +01:00
Hemang ab3169938d Add preload guardrails api call for anthropic and gemini. 2025-03-19 09:51:56 +01:00
Hemang 44988c3535 Add a preload guardrails API call. 2025-03-19 09:39:23 +01:00
Hemang 22acb38131 Add tests for the guardrails integration for open_ai route. 2025-03-18 14:46:22 +01:00
Hemang 5dc9485831 Remove tool_calls modification before calling guardrails service. 2025-03-18 14:46:22 +01:00
Hemang 66973dbf30 Handle streaming with openai for guardrails. Only check guardrails on the last stream chunk. 2025-03-17 15:09:14 +01:00
Hemang ca3c43ef76 Refactor guardrails check for openai route. 2025-03-17 07:45:45 +01:00
Hemang a5ea86a64e Show logs if the docker container doesn't start on doing up(). Tested when the guardrails file contained unparseable policy. 2025-03-17 07:45:45 +01:00
Hemang e773cc9f2d Add Guardrails verification logic for openai route. 2025-03-17 07:45:45 +01:00
Hemang 5e452af1ae Remove extra /api/v1/user/signup POST call in integration tests. 2025-03-13 10:42:36 +01:00
Hemang c4ecc01a59 Remove unnecessary playwright dependency for tests. 2025-03-13 10:12:55 +01:00
Luca Beurer-Kellner 31b4e9bba7 Update README.md 2025-03-13 09:21:17 +01:00
Luca Beurer-Kellner 545ab05b19 Update README.md 2025-03-13 09:20:57 +01:00
Hemang fd4c64256f Add env variable for docker compose down command in run.sh down() 2025-03-12 23:58:28 +01:00
Hemang 6558f23604 Add unit tests and move the current integration tests into a separate directory. 2025-03-12 23:57:00 +01:00
Hemang Sarkar d49acd9001 Merge pull request #21 from invariantlabs-ai/ghcr
Publish GitHub Container Images + Self-Hosted Setup Instructions
2025-03-12 22:04:30 +01:00
Hemang c9535e0a72 Fix test_chat_completion_with_tool_call_without_streaming. 2025-03-12 21:56:19 +01:00
Hemang 032d60e23e Fix broken test test_chat_completion_with_image. 2025-03-12 21:41:28 +01:00
Luca Beurer-Kellner 0a43da3b1c Merge branch 'main' into ghcr 2025-03-12 19:36:30 +01:00
Hemang 300130e815 Fix broken tests. 2025-03-12 19:17:13 +01:00
Luca Beurer-Kellner c5d9f075a4 update image names 2025-03-11 17:51:50 +01:00
Luca Beurer-Kellner ee013de105 fig tags in CI 2025-03-11 17:48:29 +01:00
Luca Beurer-Kellner 8709ff4bd8 enable CI 2025-03-11 17:47:53 +01:00
Luca Beurer-Kellner d47cfef51c root redirect 2025-03-11 17:44:35 +01:00
Luca Beurer-Kellner 9205538f60 update readme 2025-03-11 17:43:20 +01:00
Luca Beurer-Kellner 266ad2f368 update readme 2025-03-11 17:41:50 +01:00
Luca Beurer-Kellner 400870e0b5 update readme 2025-03-11 17:41:04 +01:00
Luca Beurer-Kellner e40ea3e2a9 instructions + port configuration option 2025-03-11 17:38:41 +01:00