Commit Graph

126 Commits

Author SHA1 Message Date
Hemang 32fa1c080d Add a Gemini API proxy route. 2025-03-03 12:23:04 +01:00
Hemang d9d4ba0344 Update the up() function to exit if the policies file path is not valid. 2025-02-28 11:45:53 +01:00
Hemang 5ecab37feb Support passing a policy file to the proxy on startup. 2025-02-28 11:45:53 +01:00
Zishan 79c934ef45 fix anthropic test 2025-02-27 10:30:33 +01:00
Hemang 1795fd4a23 Rename containers 2025-02-27 10:30:13 +01:00
Hemang 320c410493 Add test for OpenAI so that we verify that the Invariant API Key can be passed inside the OpenAI Key header. 2025-02-26 09:59:08 +01:00
Hemang Sarkar f9bd80f14b Update README.md 2025-02-26 09:18:59 +01:00
Hemang 1bf6a279d7 Small changes in the anthropic route. 2025-02-25 23:10:36 +01:00
Hemang 6afbcd3ea0 Add API endpoints so that the Proxy can be used without pushing to Explorer. 2025-02-25 22:38:15 +01:00
Hemang 6d6f4d62c7 Remove allowed endpoints check. 2025-02-25 20:28:26 +01:00
Hemang 579c871078 Fix Docs URL. 2025-02-24 13:54:50 +01:00
zishan-wei 4ed63ec4e3 add anthropic image handle
add anthropic image handle
2025-02-24 10:17:24 +01:00
Zishan 2825b25754 change anthropic test 2025-02-21 16:47:52 +01:00
Zishan 0656b85e2a remove end reasons 2025-02-21 16:29:43 +01:00
Zishan 65b0693299 add anthropic image handle 2025-02-21 12:02:37 +01:00
zishan-wei daa7128971 Anthropic related add
Anthropic related add
2025-02-20 17:24:05 +01:00
Zishan 2ee69dffac remove comment 2025-02-20 13:48:12 +01:00
Zishan 45b9872d73 change the way of sending streaming request and specify zurich, switzerland in prompt 2025-02-20 13:43:46 +01:00
Hemang f59a6a7cb3 Add a test for the error scenario from OpenAI. It is marked as skipped for now. 2025-02-20 12:11:56 +01:00
Zishan c5ce8e305b correct typo 2025-02-20 10:50:12 +01:00
Zishan ecc7f41adf Merge branch 'main' into anthropic-add 2025-02-20 10:47:58 +01:00
Zishan 2dd3049926 add anthropic header test 2025-02-20 10:45:21 +01:00
Hemang b1dedee9ee Add @pytest.mark.skipif to the openai image chat completion test. 2025-02-19 17:39:46 +01:00
Hemang 8fa127ff38 Add a test with openai and an image in the chat. 2025-02-19 17:13:38 +01:00
Hemang 62d09c118f Handle error from openai. 2025-02-19 15:31:39 +01:00
Hemang Sarkar 9ab00a4e73 Merge pull request #3 from invariantlabs-ai/anthropic-implement
correct anthropic header key
2025-02-19 14:42:41 +01:00
Zishan 931504975f correct anthropic header key 2025-02-19 14:10:12 +01:00
zishan-wei d6e551cb3b add anthropic policy and related tests
add anthropic policy and related tests
2025-02-18 16:55:37 +01:00
Zishan 0adf3729c2 remove useless code 2025-02-18 16:46:51 +01:00
Zishan 8fa4beb3b3 remove -it from run.sh 2025-02-18 16:18:44 +01:00
Zishan fd0dd4c69e add another way for authorization 2025-02-18 16:12:14 +01:00
Hemang Sarkar acb451a10e Update README.md 2025-02-18 15:09:16 +01:00
Hemang Sarkar 7958088b91 Update README.md 2025-02-18 15:07:30 +01:00
Zishan bd4b5187ea Merge branch 'main' into anthropic-implement 2025-02-18 14:54:38 +01:00
Zishan b3c5fb4d47 complete anthropic test 2025-02-18 14:54:09 +01:00
Hemang Sarkar c9d5bafd8a Update README.md 2025-02-18 11:59:35 +01:00
Hemang 4a98eccdf2 Update README 2025-02-18 10:56:47 +01:00
Hemang 426994ef51 Update README. 2025-02-18 10:25:51 +01:00
Hemang 0febcc0f4c Update README. 2025-02-18 10:21:24 +01:00
Hemang e898941597 Allow the localhost instance to be accessible even without a local Traefik instance running. 2025-02-18 10:20:26 +01:00
Hemang Sarkar ea4937197f Update .env 2025-02-17 16:01:05 +01:00
Zishan 5765dac764 rename anthropic test file names 2025-02-17 15:27:11 +01:00
Zishan d5de1f7d57 Merge branch 'main' into anthropic-implement 2025-02-17 15:11:41 +01:00
Zishan 3c0637b946 organize anthropic test 2025-02-17 15:09:03 +01:00
Hemang df2c2fe821 For some users like OpenHands, it is not possible to pass in a custom header containing the Invariant API Key. In that case, modify the authorization header to include both the OpenAI API Key and the Invariant API Key. 2025-02-17 14:06:05 +01:00
Hemang 4890aa56a6 Add timeout to httpx.AsyncClient 2025-02-14 17:23:30 +01:00
Hemang 891abf2952 Change some names for the test stack. 2025-02-13 15:46:09 +01:00
Hemang 1a7cebbb52 Moves ignored_headers to constants and reformatted anthropic.py 2025-02-13 15:35:35 +01:00
Hemang 2789ec2b98 Use the AsyncClient from the sdk to push traces to Explorer. 2025-02-13 14:21:10 +01:00
Hemang d7bcfde393 Remove response_headers.pop(...) in handle_non_streaming_response. 2025-02-13 14:07:17 +01:00