Commit Graph

19 Commits

Author SHA1 Message Date
Hemang 2beac2989d Minor correction in the routes so that if dataset_name is None then invariant_authorization is also None. Thus with dataset_name the user isn't pushing to Explorer. 2025-03-03 14:28:47 +01:00
Hemang e6ed42de1d Correct gemini API route and add logic to stream response. This is a pass through with no push to explorer. 2025-03-03 14:03:28 +01:00
Hemang 5ecab37feb Support passing a policy file to the proxy on startup. 2025-02-28 11:45:53 +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
Zishan c5ce8e305b correct typo 2025-02-20 10:50:12 +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 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 1a7cebbb52 Moves ignored_headers to constants and reformatted anthropic.py 2025-02-13 15:35:35 +01:00
Hemang d7bcfde393 Remove response_headers.pop(...) in handle_non_streaming_response. 2025-02-13 14:07:17 +01:00
Hemang ba26d7d0c7 Use finish_turn to decide when to push trace to the explorer dataset for openai. 2025-02-10 13:45:34 +01:00
Zishan ff80bf462c add anthropic policy 2025-02-05 15:36:52 +01:00
Hemang 847a01db84 Refactor the code and add type hints. 2025-02-04 14:24:37 +01:00
Hemang 9c3937183e Add streaming support and change the explorer push call to be async. 2025-02-04 12:09:14 +01:00
Hemang 76644778a1 Remove custom compression and rely on starlette_compress to perform the compression as a middleware. 2025-01-31 16:00:31 +01:00
Hemang Sarkar 099bc05d8d Update open_ai.py 2025-01-31 15:24:28 +01:00
Hemang 9888068850 Update comments and rename files. Add anthropic.py for Anthropic API proxy. 2025-01-30 16:34:37 +01:00