Commit graph

178 commits

Author SHA1 Message Date
misrasaurabh1
1a63515f47 Initial js support in aiservice 2026-01-14 22:15:27 -08:00
Kevin Turcios
aa544dc74a
log out trace_id for debugging (#2235)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-12 20:34:36 -05:00
Kevin Turcios
99bfbd980d use the centralized config 2026-01-09 00:07:12 -05:00
Kevin Turcios
9ea1afbdbf
Merge branch 'main' into remove-print-messages 2026-01-06 18:24:22 -05:00
ali
75ee24ebbf
control num of llm calls for optimize and optimize-lp 2026-01-06 02:10:51 +02:00
Kevin Turcios
798523bc29 Add logging.exception() to API error handlers for better debugging
Replace logger.error() and debug_log_sensitive_data() with
logging.exception() in exception handlers to ensure full stack traces
are logged to console/logs, not just to Sentry.

Affected endpoints:
- /optimize: Added exception logging
- /rank: Added logging import and exception logging
- /explanations: Added logging import and exception logging
- /workflow-gen: Changed logger.error to logger.exception
2026-01-01 17:47:12 -05:00
Kevin Turcios
a2c0ef6573 Merge main into ty-setup branch 2025-12-30 14:50:29 -05:00
Kevin Turcios
5b91b0e047 fix these type hints 2025-12-30 01:53:44 -05:00
Kevin Turcios
664c66e7c3 run the formatter 2025-12-30 01:17:03 -05:00
ali
fd8bb922d2
Merge branch 'main' of github.com:codeflash-ai/codeflash-internal into v4a-diff-patches-for-optimizer-context 2025-12-29 23:27:11 +02:00
ali
14491f63ce
Merge branch 'main' of github.com:codeflash-ai/codeflash-internal into v4a-diff-patches-for-optimizer-context 2025-12-29 22:33:36 +02:00
Kevin Turcios
262c193365 include the model name 2025-12-26 19:22:55 -05:00
Kevin Turcios
6f45e0d0f1 make ruff and ty happy 2025-12-26 18:55:45 -05:00
Kevin Turcios
0819524858 use a config file 2025-12-26 18:33:49 -05:00
Kevin Turcios
a2ddac0b29 implement multi model optimization properly 2025-12-26 18:24:16 -05:00
Kevin Turcios
2bbce5ef53 fix call sequence 2025-12-26 16:06:29 -05:00
Kevin Turcios
f247e59161 simplify here too 2025-12-26 15:02:30 -05:00
Kevin Turcios
63afac1ca8 first pass 2025-12-26 14:41:21 -05:00
Kevin Turcios
2c46242165 reduce abstraction 2025-12-26 14:15:13 -05:00
Kevin Turcios
1f686f9fb5 bugfix 2025-12-25 00:05:29 -05:00
Kevin Turcios
f0bebecc35 ensure proper cost calculation and observability 2025-12-23 18:23:36 -05:00
Kevin Turcios
97210aefb8 remove debug 2025-12-23 14:12:35 -05:00
Kevin Turcios
0407292e56 remove n=min(data.n_candidates_lp or 6, 8), 2025-12-23 14:06:53 -05:00
Kevin Turcios
06db49251f diversity 2025-12-23 12:41:09 -05:00
Kevin Turcios
273edff3ab unify 2025-12-22 23:51:05 -05:00
Kevin Turcios
e938448e60 unified 2025-12-22 23:28:29 -05:00
Kevin Turcios
d0400c0907 formatting
formatting
2025-12-22 02:59:52 -05:00
Sarthak Agarwal
a3380a2372
Observability V1 (#2101)
closes
https://linear.app/codeflash-ai/issue/CF-909/ai-observability-see-the-history-of-a-trace-id
2025-12-20 03:54:09 +05:30
ali
e17eb8c815
works now 2025-12-18 02:42:18 +02:00
Aseem Saxena
1192df12a6
feedback loop for unmatched test results (#2059)
fixes CF-932

# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->

---------

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
Co-authored-by: ali <mohammed18200118@gmail.com>
Co-authored-by: Kevin Turcios <106575910+KRRT7@users.noreply.github.com>
2025-12-17 08:14:32 +05:30
Aseem Saxena
4e5f0cdee1 fix 2025-11-25 07:58:12 -08:00
Aseem Saxena
ce9e0f4c20 fix 2025-11-24 17:48:57 -08:00
Aseem Saxena
a22153572f todo 2025-11-24 17:03:25 -08:00
Aseem Saxena
f13eef66ad cleaning up 2025-11-18 10:58:36 -08:00
Aseem Saxena
22e9aae0dc from original db 2025-11-18 10:55:37 -08:00
ali
491aadc7f1
make it work 2025-11-18 20:17:09 +02:00
Aseem Saxena
a37d9d042f wip 2025-11-18 09:00:26 -08:00
Aseem Saxena
c82c7f45de wip 2025-11-18 08:57:33 -08:00
Aseem Saxena
2896cde219 wip 2025-11-18 08:30:54 -08:00
Saurabh Misra
7c1933180a
local setup (#1898)
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
Co-authored-by: saga4 <saga4@codeflashs-MacBook-Air.local>
Co-authored-by: Sarthak Agarwal <sarthak.saga@gmail.com>
Co-authored-by: Mohamed Ashraf <mohamedashrraf222@gmail.com>
Co-authored-by: Aseem Saxena <aseem.bits@gmail.com>
2025-11-17 12:35:09 -08:00
ali
91670b0465
Merge branch 'main' of github.com:codeflash-ai/codeflash-internal into vsc/demo-optimization 2025-11-05 12:29:09 +02:00
ali
a0a77b59f5
skip and continue 2025-11-02 15:28:27 +02:00
ali
f233017045
fixes 2025-10-31 15:43:29 +02:00
Kevin Turcios
c63390c87c formatting and static strings 2025-10-31 08:08:04 -05:00
Kevin Turcios
92f80d1d37 shared instance 2025-10-31 05:51:39 -05:00
ali
369e59d01f
the base for demo optimization 2025-10-30 20:03:48 +03:00
Kevin Turcios
bf203343e3 use ctx manager and use a single session 2025-10-28 21:21:21 -05:00
Kevin Turcios
423648b606 fix demo call 2025-10-17 13:21:40 -07:00
Kevin Turcios
40fdddba1d use openai client 2025-10-17 04:25:59 -07:00
Kevin Turcios
25d8e9f9d2 streamline validation and move model 2025-10-17 04:12:25 -07:00