Commit graph

61 commits

Author SHA1 Message Date
Krrish Dholakia
79978c44ba refactor: add black formatting 2023-12-25 14:11:20 +05:30
ishaan-jaff
1af258ac2f (test) raise NotFoundError 2023-12-15 10:18:53 +05:30
ishaan-jaff
e6a6b070a1 (feat) add BadRequestError for Azure 2023-12-15 09:53:38 +05:30
ishaan-jaff
95454e5176 (feat) mistral - add exception mapping 2023-12-14 18:57:39 +05:30
ishaan-jaff
514e571a37 (ci/cd) reset azure api key 2023-12-11 22:23:11 -08:00
Krrish Dholakia
9a7d1cf75a test(test_exceptions.py): cleanup testing 2023-11-28 21:11:49 -08:00
ishaan-jaff
12060dbbbb (ci/cd) test exceptions 2023-11-28 21:11:12 -08:00
Krrish Dholakia
60d6b6bc37 fix(router.py): fix exponential backoff to use retry-after if present in headers 2023-11-28 17:25:03 -08:00
ishaan-jaff
63428cfdb8 (fix) linting 2023-11-25 15:46:07 -08:00
ishaan-jaff
b8742703a3 (test) openai exception mapping for openai.AuthenticationError 2023-11-25 15:43:46 -08:00
ishaan-jaff
9efc714471 (fix) acompletion: Raise same error as completion 2023-11-25 15:33:46 -08:00
Krrish Dholakia
78d13ea6eb fix(vertex_ai.py): fix exception mapping for vertex ai 2023-11-23 17:35:33 -08:00
ishaan-jaff
4b7402a1de (test) ensure exception raised when incorrect key passed 2023-11-23 16:08:59 -08:00
Krrish Dholakia
4b74ddcb17 refactor: fixing linting issues 2023-11-11 18:52:28 -08:00
Krrish Dholakia
7b4e21e574 refactor(bedrock.py-+-cohere.py): making bedrock and cohere compatible with openai v1 sdk 2023-11-11 17:33:19 -08:00
Krrish Dholakia
c0a757a25f refactor(azure.py): working azure completion calls with openai v1 sdk 2023-11-11 16:44:39 -08:00
Krrish Dholakia
1ec07c0aba refactor(openai.py): working openai chat + text completion for openai v1 sdk 2023-11-11 16:25:10 -08:00
Krrish Dholakia
a5ec85b1f2 refactor(openai.py): making it compatible for openai v1
BREAKING CHANGE:
2023-11-11 15:33:02 -08:00
Krrish Dholakia
e66373bd47 refactor(openai.py): moving openai text completion calls to http 2023-11-08 18:40:03 -08:00
Krrish Dholakia
decf86b145 refactor(openai.py): moving openai chat completion calls to http 2023-11-08 17:40:41 -08:00
Krrish Dholakia
17f5e46080 refactor(azure.py): moving azure openai calls to http calls 2023-11-08 16:52:18 -08:00
Krrish Dholakia
64b6b0155d fix(bedrock.py): add exception mapping coverage for authentication scenarios 2023-11-03 18:25:34 -07:00
Krrish Dholakia
8bf8464fc2 fix(bedrock.py): fix bedrock exception mapping 2023-11-03 18:14:12 -07:00
Krrish Dholakia
2cf06a3235 feat(utils.py): accept context window fallback dictionary 2023-10-31 22:32:36 -07:00
Krrish Dholakia
8a401076de test(test_completion_with_retries.py): cleanup tests 2023-10-31 21:49:33 -07:00
Krrish Dholakia
5b4311eaa7 fix(openai-py): fix linting errors 2023-10-10 21:56:14 -07:00
Krrish Dholakia
1c9f87751d fix(test-fixes): test fixes 2023-10-10 08:09:42 -07:00
Krrish Dholakia
455f3370c8 add support message on exception 2023-09-26 17:48:24 -07:00
Krrish Dholakia
bd01f70257 adding support for nlp cloud 2023-09-14 09:19:34 -07:00
Krrish Dholakia
355c2ed00c improvements to exception mapping 2023-09-11 18:33:57 -07:00
Krrish Dholakia
4319b1011c add api manager 2023-09-09 15:55:38 -07:00
Krrish Dholakia
e05dc989c4 fix test exceptions 2023-09-08 20:27:44 -07:00
Krrish Dholakia
c054f22f10 update exception logic 2023-09-08 18:55:11 -07:00
Krrish Dholakia
a89a491c10 fix exception mapping error 2023-09-08 18:20:07 -07:00
Krrish Dholakia
57dcd1fee9 update exception mapping and get model cost map 2023-09-04 11:53:20 -07:00
yujong-lee
e969358656 Cleanup test, at least pass with openai 2023-08-31 20:33:34 +09:00
Krrish Dholakia
c00cb299fc add context window exceeded error for anthropic 2023-08-29 16:28:07 -07:00
Krrish Dholakia
12a7f5641d fix excepting mapping test case 2023-08-29 16:18:46 -07:00
Krrish Dholakia
b40d9f79b5 add context window exceeded error mapping to openai 2023-08-29 16:08:00 -07:00
Krrish Dholakia
efbde50a03 adding coverage for openrouter in exception mapping 2023-08-29 15:30:24 -07:00
Krrish Dholakia
9646c03fe5 adding coverage for ai21 2023-08-29 13:32:20 -07:00
Krrish Dholakia
342fece93d add coverage for rate limit errors to togetherai 2023-08-29 12:54:56 -07:00
Krrish Dholakia
c790dfe323 adding exception handling for together ai 2023-08-29 12:29:59 -07:00
ishaan-jaff
2c7ffb7c75 add linting 2023-08-18 11:05:05 -07:00
Krrish Dholakia
b91c69ffde return llm_provider as part of the exception 2023-08-17 11:41:47 -07:00
Krrish Dholakia
1c909707ad added exception mapping to anthropic class 2023-08-12 17:39:11 -07:00
Krrish Dholakia
1c74c27086 fixing exception handling test 2023-08-12 16:49:55 -07:00
Krrish Dholakia
209d1e4e1e replacing individual provider flags with 'custom_llm_provider' 2023-08-12 16:40:36 -07:00
Krrish Dholakia
31c7e0a4a9 expose error types 2023-08-07 11:32:01 -07:00
Krrish Dholakia
e7c31d7b25 fixing exception mapping 2023-08-05 09:53:48 -07:00