Commit Graph

  • 145891133d add to do add-litellm Zishan 2025-02-28 16:17:33 +01:00
  • c125ad141b add litellm Zishan 2025-02-28 16:13:55 +01:00
  • d9d4ba0344 Update the up() function to exit if the policies file path is not valid. Hemang 2025-02-28 11:04:49 +01:00
  • 5ecab37feb Support passing a policy file to the proxy on startup. Hemang 2025-02-26 15:00:35 +01:00
  • 79c934ef45 fix anthropic test Zishan 2025-02-26 16:22:00 +01:00
  • 1795fd4a23 Rename containers Hemang 2025-02-27 10:12:58 +01:00
  • 335715111d fix anthropic test Zishan 2025-02-26 16:22:00 +01:00
  • 320c410493 Add test for OpenAI so that we verify that the Invariant API Key can be passed inside the OpenAI Key header. Hemang 2025-02-26 09:45:46 +01:00
  • f9bd80f14b Update README.md Hemang Sarkar 2025-02-26 09:18:59 +01:00
  • 1bf6a279d7 Small changes in the anthropic route. Hemang 2025-02-25 23:10:36 +01:00
  • 6afbcd3ea0 Add API endpoints so that the Proxy can be used without pushing to Explorer. Hemang 2025-02-25 21:21:24 +01:00
  • 6d6f4d62c7 Remove allowed endpoints check. Hemang 2025-02-25 16:47:44 +01:00
  • 579c871078 Fix Docs URL. Hemang 2025-02-24 13:54:46 +01:00
  • 4ed63ec4e3 add anthropic image handle zishan-wei 2025-02-24 10:17:24 +01:00
  • 2825b25754 change anthropic test Zishan 2025-02-21 16:47:52 +01:00
  • 0656b85e2a remove end reasons Zishan 2025-02-21 16:29:43 +01:00
  • 65b0693299 add anthropic image handle Zishan 2025-02-21 12:02:37 +01:00
  • daa7128971 Anthropic related add zishan-wei 2025-02-20 17:24:05 +01:00
  • 2ee69dffac remove comment Zishan 2025-02-20 13:48:12 +01:00
  • 45b9872d73 change the way of sending streaming request and specify zurich, switzerland in prompt Zishan 2025-02-20 13:43:46 +01:00
  • f59a6a7cb3 Add a test for the error scenario from OpenAI. It is marked as skipped for now. Hemang 2025-02-20 12:10:39 +01:00
  • c5ce8e305b correct typo Zishan 2025-02-20 10:50:12 +01:00
  • ecc7f41adf Merge branch 'main' into anthropic-add Zishan 2025-02-20 10:47:58 +01:00
  • 2dd3049926 add anthropic header test Zishan 2025-02-20 10:45:21 +01:00
  • b1dedee9ee Add @pytest.mark.skipif to the openai image chat completion test. Hemang 2025-02-19 17:39:46 +01:00
  • 8fa127ff38 Add a test with openai and an image in the chat. Hemang 2025-02-19 15:39:52 +01:00
  • 62d09c118f Handle error from openai. Hemang 2025-02-19 15:31:39 +01:00
  • 9ab00a4e73 Merge pull request #3 from invariantlabs-ai/anthropic-implement Hemang Sarkar 2025-02-19 14:42:41 +01:00
  • 931504975f correct anthropic header key Zishan 2025-02-19 14:10:12 +01:00
  • d6e551cb3b add anthropic policy and related tests zishan-wei 2025-02-18 16:55:37 +01:00
  • 0adf3729c2 remove useless code Zishan 2025-02-18 16:46:51 +01:00
  • 8fa4beb3b3 remove -it from run.sh Zishan 2025-02-18 16:18:44 +01:00
  • fd0dd4c69e add another way for authorization Zishan 2025-02-18 16:12:14 +01:00
  • acb451a10e Update README.md Hemang Sarkar 2025-02-18 15:09:16 +01:00
  • 7958088b91 Update README.md Hemang Sarkar 2025-02-18 15:07:30 +01:00
  • bd4b5187ea Merge branch 'main' into anthropic-implement Zishan 2025-02-18 14:54:38 +01:00
  • b3c5fb4d47 complete anthropic test Zishan 2025-02-18 14:54:09 +01:00
  • c9d5bafd8a Update README.md Hemang Sarkar 2025-02-18 11:59:35 +01:00
  • 4a98eccdf2 Update README Hemang 2025-02-18 10:42:09 +01:00
  • 426994ef51 Update README. Hemang 2025-02-18 10:25:51 +01:00
  • 0febcc0f4c Update README. Hemang 2025-02-18 10:20:21 +01:00
  • e898941597 Allow the localhost instance to be accessible even without a local Traefik instance running. Hemang 2025-02-18 09:59:53 +01:00
  • fd07112d82 patching demo Luca Beurer-Kellner 2025-02-17 23:24:27 +01:00
  • 28974cc70c dirty demo hacks Luca Beurer-Kellner 2025-02-17 20:18:21 +01:00
  • ea4937197f Update .env Hemang Sarkar 2025-02-17 16:01:05 +01:00
  • 5765dac764 rename anthropic test file names Zishan 2025-02-17 15:27:11 +01:00
  • d5de1f7d57 Merge branch 'main' into anthropic-implement Zishan 2025-02-17 15:11:41 +01:00
  • 3c0637b946 organize anthropic test Zishan 2025-02-17 15:09:03 +01:00
  • 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. Hemang 2025-02-17 11:07:28 +01:00
  • 4890aa56a6 Add timeout to httpx.AsyncClient Hemang 2025-02-14 17:23:30 +01:00
  • 891abf2952 Change some names for the test stack. Hemang 2025-02-13 15:46:09 +01:00
  • 1a7cebbb52 Moves ignored_headers to constants and reformatted anthropic.py Hemang 2025-02-13 14:25:20 +01:00
  • 2789ec2b98 Use the AsyncClient from the sdk to push traces to Explorer. Hemang 2025-02-13 14:11:47 +01:00
  • d7bcfde393 Remove response_headers.pop(...) in handle_non_streaming_response. Hemang 2025-02-13 14:07:17 +01:00
  • 4276aad7be change prompt and add try/except for streming call Zishan 2025-02-13 10:54:29 +01:00
  • 768e655947 adjust pytest Zishan 2025-02-12 17:32:10 +01:00
  • a032bbaba3 test api key Zishan 2025-02-12 15:04:10 +01:00
  • 1aee0234fc minor fix Zishan 2025-02-12 14:52:45 +01:00
  • ce13cf65ec Merge branch 'main' into anthropic-implement Zishan 2025-02-12 14:51:40 +01:00
  • 86895c61ce add anthropic api key and remove tavily use Zishan 2025-02-12 14:40:57 +01:00
  • 89da7aadab remove useless code Zishan 2025-02-12 11:53:31 +01:00
  • a02091edcb format change Zishan 2025-02-12 11:41:16 +01:00
  • b9e1d07d67 Update README.md Hemang Sarkar 2025-02-12 09:49:28 +01:00
  • cc953ed2fa Update README.md Hemang Sarkar 2025-02-12 09:29:44 +01:00
  • b6916039c6 Update README.md Hemang Sarkar 2025-02-12 09:29:12 +01:00
  • a182f027c5 Update README.md Hemang Sarkar 2025-02-12 09:24:51 +01:00
  • 144ce84235 Update README.md Hemang Sarkar 2025-02-12 09:24:20 +01:00
  • 8e1f916b28 Merge branch 'main' into anthropic-implement Zishan 2025-02-11 15:39:54 +01:00
  • b832ca2cf1 add handle streming response for anthropic Zishan 2025-02-11 15:39:22 +01:00
  • 472136a2ad Remove coverage for now. Hemang 2025-02-11 10:29:04 +01:00
  • c0abf96879 Update requirements.txt Hemang Sarkar 2025-02-11 10:24:41 +01:00
  • a26ed0eebb Remove volume bind from test docker compose. Hemang 2025-02-11 10:21:03 +01:00
  • 46417a804f Create tests_ci.yml Hemang Sarkar 2025-02-11 10:16:17 +01:00
  • 6f0a34c070 Add test for openai chat completions via proxy with tool call and with streaming. Hemang 2025-02-10 16:06:20 +01:00
  • 64ddd9f96d Add test for openai chat completions API via proxy with tool call. Hemang 2025-02-10 15:21:46 +01:00
  • ba26d7d0c7 Use finish_turn to decide when to push trace to the explorer dataset for openai. Hemang 2025-02-10 13:45:34 +01:00
  • 671b7a230a Modify run.sh down() to include test infra. Hemang 2025-02-10 13:15:45 +01:00
  • 8ad4a19c21 Modify the test to verify streaming case. Hemang 2025-02-10 10:09:42 +01:00
  • 5fc05ee39e Use the chat completions API response to verify the trace in explorer. Hemang 2025-02-10 09:57:04 +01:00
  • 094970f6b8 Add openai test for chat completions without streaming and without tool calls. Hemang 2025-02-10 05:43:27 +01:00
  • d98b73253b Skip Anthropic test if API key not set. Hemang 2025-02-10 05:43:06 +01:00
  • c2db9ede35 Change the network name and the .env.test file so that test explorer proxy can communicate with the test explorer backend app-api. Hemang 2025-02-06 17:11:07 +01:00
  • f5ddbb25d5 Implement Anthropic proxy zishan-wei 2025-02-07 10:39:03 +01:00
  • 87fc58e4de minor logic fix Zishan 2025-02-07 10:16:16 +01:00
  • 084ef4f0e8 Update the testing setup. Hemang 2025-02-06 15:52:50 +01:00
  • 6eecb1510a adjust anthropic test Zishan 2025-02-06 15:12:20 +01:00
  • 7c692fa6df Add a health check endpoint for proxy. Hemang 2025-02-06 14:59:23 +01:00
  • bdf2787786 remove cache file Zishan 2025-02-06 15:03:32 +01:00
  • bb81066356 rename anthropic test Zishan 2025-02-06 14:57:40 +01:00
  • 89b4eed0be Merge branch 'main' into anthropic-implement Zishan 2025-02-06 14:48:01 +01:00
  • f2ffed91d3 add test for anthropic agent Zishan 2025-02-06 14:46:04 +01:00
  • fe9e103ae6 Update README.md Hemang Sarkar 2025-02-06 11:27:17 +01:00
  • ab7b32db40 Remove unused image. Hemang 2025-02-06 11:26:23 +01:00
  • 9ca14ca0ce Update README.md Hemang Sarkar 2025-02-06 11:25:33 +01:00
  • 1303be8435 Add files via upload Hemang Sarkar 2025-02-06 11:25:16 +01:00
  • c2836bca5e Update README.md Hemang Sarkar 2025-02-05 19:35:49 +01:00
  • 20ae6ab8f7 Add flow diagram. Hemang 2025-02-05 19:35:17 +01:00
  • c4fe6ebae3 Initial test setup. Hemang 2025-02-05 19:10:36 +01:00
  • e279351e93 Update README.md Hemang Sarkar 2025-02-05 19:31:45 +01:00
  • 2f2253220e add test claude agent Zishan 2025-02-05 15:49:11 +01:00