Commit Graph

224 Commits

Author SHA1 Message Date
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
Luca Beurer-Kellner dc7d19d510 signal handling 2025-03-11 15:08:05 +01:00
Luca Beurer-Kellner 5ec6d3403a testing tags 2025-03-11 14:45:33 +01:00
Luca Beurer-Kellner 2f8a019ae0 testing tags 2025-03-11 14:44:24 +01:00
Luca Beurer-Kellner 68fbdc49a3 fix trigger 2025-03-11 14:43:37 +01:00
Luca Beurer-Kellner eb969c24df fix condition 2025-03-11 14:43:17 +01:00
Luca Beurer-Kellner a34e88b9c7 fix trigger 2025-03-11 14:42:48 +01:00
Luca Beurer-Kellner 408839a72c try publish images 2025-03-11 14:42:07 +01:00
Hemang Sarkar a143c002d3 Update README.md 2025-03-10 21:45:32 +01:00
Hemang c199a27563 Update README to include Gemini integration. 2025-03-10 21:44:26 +01:00
Hemang 2fe0f55cb3 Don't block on push to explorer call for the routes. 2025-03-10 17:25:39 +01:00
Hemang 7d96ae7af3 Refactor Anthropic code to use RequestContextData 2025-03-10 15:45:30 +01:00
Hemang 0554970ce2 Add Gemini API key for tests. 2025-03-10 15:18:13 +01:00
Hemang 20f8a12032 Formatting changes. 2025-03-10 15:18:13 +01:00
Hemang abbc80890d Add tests with tool_calls for Gemini. 2025-03-10 15:18:13 +01:00
Hemang fdc9da16c0 Add tests for some non tool_call cases for Gemini integration. 2025-03-10 15:18:13 +01:00
Hemang 5a6dd5c813 Add push to explorer support for Gemini while streaming. 2025-03-10 15:18:13 +01:00
Hemang 1e5a5ccd28 Add endpoint to push to explorer. Update image handling with gemini. 2025-03-10 15:18:13 +01:00
Hemang 7576f245bd Add a converter module to house conversion from different LLM provider formats to Invariant API format. 2025-03-10 15:18:13 +01:00
Hemang 38504b3e45 Rename utils.explorer to integrations.explorer. The integrations module will contain API calls. 2025-03-10 15:18:13 +01:00
Hemang e107be4fea Add push to explorer support for Gemini for non streaming. 2025-03-10 15:18:13 +01:00