Commit Graph

1253 Commits

Author SHA1 Message Date
Ishaan Jaff
7b90ca4d00
Merge pull request #348 from jordanbtucker/code-language
docs: add languages to code blocks
2023-09-12 14:00:39 -07:00
Jordan Tucker
ee618444c9 docs: add languages to code blocks 2023-09-12 15:02:11 -05:00
Krrish Dholakia
e1c91903da add reset budget on duration end to budget manager 2023-09-12 13:01:55 -07:00
Krrish Dholakia
e80457013b doc cleanup for custom prompt templates 2023-09-12 12:16:47 -07:00
ishaan-jaff
e6d48d91ce bump version + check_valid_key 2023-09-12 11:56:04 -07:00
ishaan-jaff
e3fa1d686e remove verify_access_key from main 2023-09-12 11:50:30 -07:00
ishaan-jaff
33f0da2d69 update testing key 2023-09-12 11:50:30 -07:00
ishaan-jaff
8b60440b4b update check_valid_key 2023-09-12 11:50:30 -07:00
Krrish Dholakia
05f2f3dde7 fix get llm provider 2023-09-12 11:48:44 -07:00
ishaan-jaff
ff36b9c6da add test_valid_key to utils 2023-09-12 11:45:55 -07:00
Ishaan Jaff
c30acc67b3
Merge pull request #346 from WilliamEspegren/main
util: verify_access_key
2023-09-12 11:44:49 -07:00
Ishaan Jaff
60e3e42fba
Merge branch 'main' into main 2023-09-12 11:43:03 -07:00
Krrish Dholakia
c5df95c560 fix linting error 2023-09-12 11:38:00 -07:00
ishaan-jaff
4d253f45d8 fix linting error 2023-09-12 11:36:20 -07:00
ishaan-jaff
a48cb49820 add test for test_get_valid_models 2023-09-12 11:29:18 -07:00
ishaan-jaff
57f15b379d add valid models in utils.py 2023-09-12 11:29:18 -07:00
Krrish Dholakia
baa69734b0 raise better exception if llm provider isn't passed in or inferred 2023-09-12 11:28:50 -07:00
ishaan-jaff
4acca3d4d9 docs 2023-09-12 10:39:00 -07:00
ishaan-jaff
0ffcf51445 fix azure logging 2023-09-12 10:35:47 -07:00
ishaan-jaff
0f89636b47 use api_version for azure completion call 2023-09-12 10:35:24 -07:00
ishaan-jaff
0c6999885c docs 2023-09-12 10:31:37 -07:00
ishaan-jaff
2d09f2a373 docs 2023-09-12 10:28:44 -07:00
ishaan-jaff
fdf0dd0d11 docs 2023-09-12 10:23:10 -07:00
ishaan-jaff
e46dab5e92 docs 2023-09-12 10:07:40 -07:00
William Espegren
b26933301d
renamed and added test_good_key() 2023-09-12 19:02:55 +02:00
ishaan-jaff
e5cd21d64b docs update 2023-09-12 10:00:13 -07:00
William Espegren
1b51016680
Raise exception if bad key is not detected 2023-09-12 18:51:50 +02:00
William Espegren
261db15bcf
util: verify_access_key
Verify that the user provided a valid openai token by creating a request to the openAI endpoint.
2023-09-12 18:48:23 +02:00
Krish Dholakia
c3ed7e2b29
Merge pull request #338 from Superflows-AI/fix-proxy-railway-deploy
Fix proxy server railway deployment
2023-09-12 06:07:49 -07:00
henry-pulver
fd930e5929 Fix proxy server railway deployment
On Railway you need to use the PORT env var for the port
2023-09-12 12:12:11 +01:00
ishaan-jaff
738a3b9a8a bump version to litellm 2023-09-11 18:56:06 -07:00
ishaan-jaff
dda87a55ff rename safe_messages to trim_messages 2023-09-11 18:54:18 -07:00
ishaan-jaff
7d41e701a6 docs 2023-09-11 18:46:01 -07:00
ishaan-jaff
5cc735a3b0 docs update 2023-09-11 18:42:44 -07:00
ishaan-jaff
3ccbe1ebbf docs fix 2023-09-11 18:40:32 -07:00
Krrish Dholakia
8d517f84c9 completion test cleanup 2023-09-11 18:39:16 -07:00
Krrish Dholakia
bab36c2c6f work for hf inference endpoint 2023-09-11 18:37:55 -07:00
Krrish Dholakia
f946f61b4c improvements to exception mapping 2023-09-11 18:33:57 -07:00
ishaan-jaff
cd6b5b229f add message_trimming to docs 2023-09-11 18:32:50 -07:00
ishaan-jaff
d70cff8713 fix linting 2023-09-11 18:11:06 -07:00
ishaan-jaff
be5a92c40a add safe_message trimmer 2023-09-11 17:58:37 -07:00
ishaan-jaff
bcb89dcf4a add test cases for token trimmer 2023-09-11 17:58:37 -07:00
Krrish Dholakia
cdbe4276a6 add model cost map to docs 2023-09-11 17:49:16 -07:00
Ishaan Jaff
fdddd00bfd
Merge pull request #330 from Taik/main
Add support for overriding API type for Azure calls
2023-09-11 17:04:25 -07:00
Krrish Dholakia
f23b3d6ed1 doc cleanup 2023-09-11 16:41:49 -07:00
Krrish Dholakia
54c9fb7f9e update docs to show how to set custom mock response 2023-09-11 16:39:55 -07:00
Krrish Dholakia
9d1a28c7ed update mock_completion docs 2023-09-11 16:35:25 -07:00
Krrish Dholakia
cc1313492b code cleanup 2023-09-11 16:32:17 -07:00
Krrish Dholakia
cbc7e6dbc2 mock responses for streaming 2023-09-11 16:30:29 -07:00
Thinh Nguyen
8801f71a52
Add support for overriding API type for Azure calls 2023-09-11 16:28:00 -07:00