Commit Graph

108 Commits

Author SHA1 Message Date
Zishan 45b9872d73 change the way of sending streaming request and specify zurich, switzerland in prompt 2025-02-20 13:43:46 +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
Zishan 4276aad7be change prompt and add try/except for streming call 2025-02-13 10:54:29 +01:00
Zishan 768e655947 adjust pytest 2025-02-12 17:32:10 +01:00
Zishan a032bbaba3 test api key 2025-02-12 15:04:10 +01:00
Zishan 1aee0234fc minor fix 2025-02-12 14:52:45 +01:00
Zishan ce13cf65ec Merge branch 'main' into anthropic-implement 2025-02-12 14:51:40 +01:00
Zishan 86895c61ce add anthropic api key and remove tavily use 2025-02-12 14:40:57 +01:00
Zishan 89da7aadab remove useless code 2025-02-12 11:53:31 +01:00
Zishan a02091edcb format change 2025-02-12 11:41:16 +01:00
Hemang Sarkar b9e1d07d67 Update README.md 2025-02-12 09:49:28 +01:00
Hemang Sarkar cc953ed2fa Update README.md 2025-02-12 09:29:44 +01:00
Hemang Sarkar b6916039c6 Update README.md 2025-02-12 09:29:12 +01:00
Hemang Sarkar a182f027c5 Update README.md 2025-02-12 09:24:51 +01:00
Hemang Sarkar 144ce84235 Update README.md 2025-02-12 09:24:20 +01:00
Zishan 8e1f916b28 Merge branch 'main' into anthropic-implement 2025-02-11 15:39:54 +01:00
Zishan b832ca2cf1 add handle streming response for anthropic 2025-02-11 15:39:22 +01:00
Hemang 472136a2ad Remove coverage for now. 2025-02-11 10:29:04 +01:00
Hemang Sarkar c0abf96879 Update requirements.txt 2025-02-11 10:24:41 +01:00
Hemang a26ed0eebb Remove volume bind from test docker compose. 2025-02-11 10:21:08 +01:00