Commit Graph

260 Commits

Author SHA1 Message Date
Abi Raja
52099e0853 create a eval script for sdxl lightning (replicate) vs dalle and support using replicate for image generation when key is set 2024-07-29 16:23:59 -04:00
Abi Raja
d7ab620e0b deep copy messages to avoid modifying the original list in the Claude LLM call 2024-07-26 11:56:21 -04:00
Abi Raja
54b59c85d6 add eval runner for text prompt 2024-07-19 09:25:11 -04:00
Abi Raja
138cc1f1a5 Merge branch 'main' into hosted 2024-07-19 07:56:13 -04:00
Abi Raja
9d11866143 improve evals code 2024-07-19 07:55:44 -04:00
Abi Raja
b733400e91 throw exceptions with stack traces 2024-07-16 12:00:53 -04:00
Abi Raja
f7d0dbb7ce ping Sentry when Claude response is too long 2024-07-15 19:15:35 -04:00
Abi Raja
c092418e47 log and capture to sentry when OpenAI response is too long 2024-07-15 19:14:37 -04:00
Abi Raja
f9d6279b53 Merge branch 'main' into hosted 2024-07-15 19:03:52 -04:00
Abi Raja
9f732c4f5d update max tokens for Claude Sonnet 3.5 to newly supported limit (8192) 2024-07-15 18:51:22 -04:00
Abi Raja
5c7aa62414 log stop reason for Claude 2024-07-15 16:41:18 -04:00
Abi Raja
50d1288693 Merge branch 'main' into hosted 2024-07-11 16:36:18 -04:00
Abi Raja
9b99cad286 auto-upgrade usage of older models 2024-07-11 16:26:26 -04:00
Abi Raja
7f7d0c3504 send input mode to saas backend 2024-07-09 16:45:07 -04:00
Abi Raja
8c11366bd0 add sentry log for text generation 2024-07-09 13:17:00 -04:00
Abi Raja
7c132fd1bd Merge branch 'generate-from-text' into hosted 2024-07-09 13:04:30 -04:00
Abi Raja
d13ae72c06 add basic text to ui generation 2024-07-09 12:53:07 -04:00
Abi Raja
549210dcd4 Merge branch 'main' into hosted 2024-07-03 10:09:23 -04:00
Abi Raja
9ec3adad19 fix bug where a image with dimensions larger than what Claude can accept but under the file size limit Claude can accept was not resized 2024-07-03 10:06:04 -04:00
Abi Raja
c1fa5c4e97 Merge branch 'main' into hosted 2024-06-27 17:59:23 +08:00
Abi Raja
d2359f644c for images sent to Claude, resize if dimension exceeds limit 2024-06-27 17:59:15 +08:00
Abi Raja
92ea62e9bf Merge branch 'main' into hosted 2024-06-27 17:37:01 +08:00
Abi Raja
38a06517fb add unit tests for the prompt assembly 2024-06-27 16:08:41 +08:00
Abi Raja
638053a54c add HTML + CSS prompt for imported code 2024-06-27 16:02:06 +08:00
Abi Raja
ec1bada3e2 fix type errors introduced with previous changes 2024-06-27 16:01:28 +08:00
Abi Raja
0200274e61 Merge branch 'main' into pr/227 2024-06-27 14:44:24 +08:00
Abi Raja
1f9e93a2c7 capture the stack trace properly 2024-06-27 12:33:55 +08:00
Abi Raja
5e00b406af capture HTML tag extraction in Sentry so that we have full completion text 2024-06-27 12:25:05 +08:00
Abi Raja
b44f583a90 Merge branch 'main' into hosted 2024-06-26 16:42:16 +08:00
Abi Raja
edfd16ef1d extract only html content 2024-06-26 16:36:33 +08:00
Abi Raja
efdad0ad50 Merge branch 'main' into hosted 2024-06-26 13:28:52 +08:00
Abi Raja
4288cf2088 fix imported code prompt for Claude which doesn't allow multiple 'user' role messages in a row 2024-06-26 13:21:12 +08:00
Abi Raja
cea45af385 update lock file 2024-06-26 12:42:29 +08:00
Abi Raja
fed7fe50d6 Merge branch 'main' into hosted 2024-06-26 12:39:11 +08:00
Abi Raja
6be83b4a2d process images to be under 5mb for Claude 2024-06-25 20:57:41 +08:00
Abi Raja
9a4fbd4591
Merge pull request #358 from moas/patch-1
Fix Python version in dockerfile to avoid TypeError
2024-06-23 05:48:44 -04:00
Abi Raja
d2369cb0a0 Merge branch 'main' into hosted 2024-06-22 19:43:52 +08:00
Abi Raja
49a24d8b0c support Claude Sonnet 3.5 2024-06-22 19:39:49 +08:00
Oscar Landry L
9e2eb0c58c
Update Dockerfile
fix error:
TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'
2024-06-11 14:58:18 +02:00
Abi Raja
ae08466405 store stack and some other properties for generations on prod 2024-06-07 15:05:26 -04:00
Abi Raja
561ac0b088
Merge pull request #348 from naman1608/type-fixes
full typed in image generation file
2024-06-05 15:21:41 -04:00
Abi Raja
7cd9b294c3 fix another type ignore 2024-06-05 15:18:54 -04:00
Abi Raja
8de0e95c54 fix up types 2024-06-05 15:12:47 -04:00
Abi Raja
5a62fce52d
Merge pull request #341 from naman1608/handle-none-types
handle none type in llm.py
2024-05-31 15:04:32 -04:00
Abi Raja
f6f8b2f707 fix bug 2024-05-31 14:24:01 -04:00
Abi Raja
c64968b8f0 read anthropic api key from front-end 2024-05-31 14:06:08 -04:00
Abi Raja
d4e3405d0a if user is trialing, set payment method to trial 2024-05-30 17:40:26 -04:00
Abi Raja
7293c979df alert me via sentry 2024-05-30 12:46:40 -04:00
Abi Raja
f84b9134e5 Merge branch 'select-and-edit' into hosted 2024-05-30 10:48:22 -04:00
Abi Raja
f18724104c add for debugging 2024-05-29 15:32:19 -04:00
Naman
f0ee686660 null check for chunk.choices 2024-05-29 13:15:23 +05:30
Naman
c5695975c7 handle none type in llm.py 2024-05-29 13:15:23 +05:30
Naman
d31ebcaa27 types fix in image generation file 2024-05-29 07:11:03 +05:30
Abi Raja
9df95d9916 stop raising exceptions for "user has no credits" here (saas backend includes it) 2024-05-14 11:11:05 -04:00
Abi Raja
9a13fcc3d0 Merge branch 'main' into hosted 2024-05-13 16:06:10 -04:00
Abi Raja
43214bbbf8 add another unit test for new model 2024-05-13 15:26:12 -04:00
Abi Raja
8e6a9c48f8 support GPT-4o 2024-05-13 15:24:47 -04:00
Abi Raja
a5fe0960d8 support best of n evals 2024-04-24 14:54:03 -04:00
Abi Raja
522b7b8e23 Merge branch 'main' into hosted 2024-04-15 14:19:35 -04:00
Abi Raja
bb642b320e improve evaluation docs and the way the model is passed into the evaluation script 2024-04-11 10:52:25 -04:00
Abi Raja
6587b626c5 clean up model strings and add support for GPT-4 Turbo (Apr 2024) 2024-04-11 09:55:55 -04:00
Abi Raja
c51ff4d7ad remove more references 2024-04-10 15:38:03 -04:00
Abi Raja
60171bcc0b Merge branch 'main' into hosted 2024-04-10 14:55:07 -04:00
Abi Raja
9e1bcae545 remove access code/token functionality 2024-04-10 14:51:15 -04:00
Abi Raja
1aec82f53d stop writing logs to disk since we're capturing them in the DB 2024-04-10 13:52:49 -04:00
Abi Raja
a197bd9223 update error message 2024-04-10 13:43:13 -04:00
Abi Raja
fa944890ad Merge branch 'main' into hosted 2024-04-10 13:39:17 -04:00
Abi Raja
29cea327cc improve error UX (particular when no OpenAI API key is found) 2024-04-10 13:20:42 -04:00
Abi Raja
e1f39cac78 Merge branch 'main' into hosted 2024-03-25 14:41:05 -04:00
Abi Raja
dc52ff4cce store intermediate artifacts for video for easier debugging 2024-03-25 14:09:13 -04:00
Abi Raja
6a0201a5c0 fix up mock data 2024-03-22 11:14:15 -04:00
Abi Raja
196cf5865b set a default for inputMode param 2024-03-19 18:21:17 -04:00
Abi Raja
7f44228a95 fix bug where open AI key is required to use it with Anthropic 2024-03-19 13:57:57 -04:00
Abi Raja
62272e3a68 update error message for video 2024-03-19 13:51:30 -04:00
Abi Raja
1d8f6641a2 do not allow non-subscribers to use Claude 2024-03-19 13:38:09 -04:00
Abi Raja
b6222ddbc9 hide & disable video functionality on prod 2024-03-19 13:12:41 -04:00
Abi Raja
785a135460 Merge branch 'main' into hosted 2024-03-19 12:09:31 -04:00
Abi Raja
b57f34d73a close anthropic client after it's done streaming 2024-03-19 12:09:25 -04:00
Abi Raja
7edbe16325 Merge branch 'main' into hosted 2024-03-19 10:31:12 -04:00
Abi Raja
212aa228ab fix bug with using enum as string 2024-03-19 10:30:58 -04:00
Abi Raja
f67cfb6d8a send along llm_version to database 2024-03-19 10:15:35 -04:00
Abi Raja
f6079542f7 Merge branch 'main' into hosted 2024-03-19 09:56:07 -04:00
Abi Raja
81c4fbe28d identify exact llm being used during generation 2024-03-18 17:44:05 -04:00
Abi Raja
71dfde3892 Merge branch 'main' into hosted 2024-03-18 16:41:14 -04:00
Abi Raja
1a42f6a91b add haiku claude constant 2024-03-15 13:35:15 -04:00
Abi Raja
a58c95c8c7 add more mock data 2024-03-14 15:59:57 -04:00
Abi Raja
c08cf0ae57 support screen recording 2024-03-14 15:57:44 -04:00
Abi Raja
a0f5af0fdc improve mock functionality 2024-03-08 05:02:23 -05:00
Abi Raja
28d33a4d7e do multiple passes for video claude 2024-03-07 17:31:39 -05:00
Abi Raja
4937a92f42 support video uploads through the interface 2024-03-07 14:59:26 -05:00
Abi Raja
c2f230a8c9 initial version of script 2024-03-06 20:47:28 -05:00
Abi Raja
123e8ffce2 Add Claude prompts file (not used yet - we use the same prompts for both models) 2024-03-05 20:22:09 -05:00
Abi Raja
c69edeb4b6 send correct media type to Claude 2024-03-05 14:02:48 -05:00
Abi Raja
3a23d9eae3 add pyright as part of pre-commit (but disable it for now due to failing type check) 2024-03-05 13:50:55 -05:00
Abi Raja
a7e51f6f1a update error message from anthropic 2024-03-05 13:39:49 -05:00
Abi Raja
7b62147a58 support Claude 3 Sonnet 2024-03-05 12:24:30 -05:00
Abi Raja
bd407e51f9 code clean up 2024-03-04 14:58:01 -05:00
Abi Raja
5e3a174203 test again with fixed test now 2024-02-23 15:33:23 -05:00
Abi Raja
d58d66d7ff test committing a failing test 2024-02-23 15:26:09 -05:00
Abi Raja
5e2c2b25c3 add pre-commit to run tests before each commit 2024-02-23 15:08:34 -05:00