Commit Graph

24 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 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 6558f23604 Add unit tests and move the current integration tests into a separate directory. 2025-03-12 23:57:00 +01:00
Luca Beurer-Kellner d47cfef51c root redirect 2025-03-11 17:44:35 +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
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 20f8a12032 Formatting changes. 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
Hemang Sarkar adfabd5b12 Update the format where the user passes the invariant key in the llm provider key header. (#18) 2025-03-06 10:57:32 +01:00
Hemang 7008f73310 Rename proxy to gateway. 2025-03-05 14:35:39 +01:00