Commit graph

7995 commits

Author SHA1 Message Date
afik.cohen
65c4c4db2f Fix import and sources root 2024-01-22 17:35:59 -08:00
afik.cohen
b9d71211bb Don't log the actual tests root provided 2024-01-22 17:31:28 -08:00
afik.cohen
3309274156 Don't proxy posthog in cfapi after all; just use posthog directly. Get user id from cfapi though, and cache it after the cli gets it once. 2024-01-22 16:59:25 -08:00
Saurabh Misra
4f6cb6efb0 Merge pull request #125 from codeflash-ai/apikey-validation
Add a better API KEY validation in the client
2024-01-22 16:29:54 -08:00
Saurabh Misra
f66d731e00 update the test-key format 2024-01-22 16:26:32 -08:00
Saurabh Misra
5d94c59d3b Add a better API KEY validation in the client 2024-01-22 16:23:08 -08:00
afik.cohen
9931eb3f39 Version 0.1.2 2024-01-22 15:51:08 -08:00
afik.cohen
2e862d94eb Merge remote-tracking branch 'origin/main' into posthog-cli 2024-01-19 14:35:16 -08:00
Afik
9ea6de6e1a Merge pull request #118 from codeflash-ai/azure_openai
CF-66 Move to Azure OpenAI service fer real tho
2024-01-19 12:07:46 -08:00
Afik
b01ebcc1cb Merge pull request #110 from codeflash-ai/init_runs_e2e
Running 'codeflash init' asks and runs the end to end workflow
2024-01-19 12:07:26 -08:00
afik.cohen
0caf70d2e0 Rename const 2024-01-19 12:04:39 -08:00
afik.cohen
4af41dcb54 Use 4096 max tokens 2024-01-19 12:02:50 -08:00
ihitamandal
05100aae99 Remove CODEFLASH_POETRY_DEPENDENCY_VERSION from cmd_init.py since it isn't being used anymore. 2024-01-19 11:51:30 -08:00
Afik
9ff9b415bf Merge pull request #111 from codeflash-ai/humanize_runtime
Fix bug in humanized runtime to remove trailing zeros
2024-01-19 11:45:25 -08:00
afik.cohen
4cdb9135b6 Update usages of aimodels and use gpt-4-0613 azure deployment for optimizer 2024-01-19 11:42:27 -08:00
afik.cohen
0d868a6549 Instrument the cli by calling a proxied cfapi endpoint that calls posthog 2024-01-18 20:38:11 -08:00
Afik
b02f866e8e Merge pull request #115 from codeflash-ai/posthog-cfapi
Add PostHog to CFAPI
2024-01-18 19:39:28 -08:00
Saurabh Misra
940da7369b Merge pull request #116 from codeflash-ai/pr_number-prefix-codeflash
rename PR_NUMBER to CODEFLASH_PR_NUMBER
2024-01-18 17:46:11 -08:00
Saurabh Misra
b4d0df08d9 rename PR_NUMBER to CODEFLASH_PR_NUMBER 2024-01-18 17:34:39 -08:00
afik.cohen
841d29fcba Add posthog analytics, implement dev github app and get vars for it from the environment. 2024-01-18 17:23:49 -08:00
ihitamandal
a62cd539b6 Modify codeflash init to not add codeflash as a dependency to the pyproject.toml file. 2024-01-18 16:01:57 -08:00
Afik
b300113322 Merge pull request #86 from codeflash-ai/optimize-all-creates-PRs
"Optimize all" creates prs
2024-01-18 15:17:45 -08:00
Afik
d51435f4f4 Merge branch 'main' into optimize-all-creates-PRs 2024-01-18 15:11:53 -08:00
ihitamandal
73cd841b4a Add logic to time_utils.py to always have 3 significant digits. 2024-01-18 14:06:34 -08:00
ihitamandal
861695b8e9 Edit end to end test 2024-01-18 11:40:22 -08:00
ihitamandal
0f366f1a1b Fix bug in humanized runtime to remove trailing zeros so that the result always has 3 significant digits. 2024-01-18 10:48:22 -08:00
ihitamandal
f4be8b0f5e Small edits to end-to-end test. 2024-01-18 10:12:36 -08:00
ihitamandal
86d98565e8 Clean up animation for the spinner to indicate that the test is running. 2024-01-17 16:18:42 -08:00
ihitamandal
d9d0ad0f17 Instead of outputting each subprocess, add a spinner to show that the test is running. 2024-01-17 15:51:55 -08:00
ihitamandal
e9d24b2e9b Modify the 'codeflash init' command to create a temporary bubble_sort file and run the end to end test to make sure codeflash is working properly. 2024-01-17 15:11:39 -08:00
ihitamandal
35efc91dbb Add humanize package to pyproject.toml file 2024-01-17 11:44:24 -08:00
ihitamandal
759868ff01 Move code to humanize time in a separate function, then humanize the original and new test times separately using that function 2024-01-17 11:26:41 -08:00
ihitamandal
9a5dae4cbf Fix small bug in humanizing time 2024-01-17 10:00:48 -08:00
afik.cohen
7ac8f99dad Implement working create-pr endpoint for cfapi along with refactoring to support it and have main call it 2024-01-16 20:17:49 -08:00
Ihita Mandal
8e9cdccd30 Humanize original and new run times 2024-01-16 17:32:00 -08:00
afik.cohen
8f91b88b19 Merge remote-tracking branch 'origin/main' into optimize-all-creates-PRs 2024-01-16 14:48:57 -08:00
Afik
81a05eb711 Merge pull request #91 from codeflash-ai/dont-persist-generated-test-files
Remove abandoned generated test files from the disk.
2024-01-15 20:20:03 -08:00
Saurabh Misra
b35c3dbbf9 minor formatting updates 2024-01-15 20:16:10 -08:00
Saurabh Misra
2cd3b7f022 Minor logging update 2024-01-15 14:56:42 -08:00
Saurabh Misra
bc2599a31f Remove abandoned generated test files from the disk.
Improve console output formatting.
Update install docs
2024-01-15 14:54:19 -08:00
Saurabh Misra
65a9f4a3d2 Merge pull request #90 from codeflash-ai/deprecate-python38
Remove Python 3.8 hacks. Also fix all the tests.
2024-01-13 22:44:32 -08:00
Saurabh Misra
f64f41fb78 Minor fix 2024-01-13 22:40:59 -08:00
Saurabh Misra
41c9c1e148 Fix minor formatting issue 2024-01-13 22:36:57 -08:00
Saurabh Misra
8a94975621 Remove Python 3.8 hacks. Also fix all the tests. 2024-01-13 22:18:18 -08:00
Saurabh Misra
6e6096a9b9 Merge pull request #89 from codeflash-ai/unit-test-python-matrix
Add a matrix version of unit-tests and fix Python 3.9
2024-01-13 17:04:28 -08:00
Saurabh Misra
bcd6b4b31c Import properly 2024-01-13 17:00:36 -08:00
Saurabh Misra
3368f2e9d3 Bump minimum supported Python Version to 3.9 2024-01-13 16:57:16 -08:00
Saurabh Misra
8effa8a61c Replace | with Union Type Annotation 2024-01-13 16:56:27 -08:00
afik.cohen
63a2a86a36 Fix import and update directory markings 2024-01-12 22:15:49 -08:00
afik.cohen
c02b77ccb7 Fix import 2024-01-12 20:17:30 -08:00