Commit 86951b0
authored
feat!: Remove deprecated LDAIClient method aliases (#1370)
feat!: Remove `LDAIClient.config` — use `LDAIClient.completionConfig` instead
feat!: Remove `LDAIClient.agent` — use `LDAIClient.agentConfig` instead
feat!: Remove `LDAIClient.agents` — use `LDAIClient.agentConfigs` instead
feat!: Remove `LDAIClient.createChat` — use `LDAIClient.createModel` instead
feat!: Remove `LDAIClient.initChat` — use `LDAIClient.createModel` instead
feat!: Remove `ChatResponse` type and the `api/chat` module — use `RunnerResult` from `api/model` instead
feat!: Change `Judge.evaluateMessages` parameter type from `ChatResponse` to `RunnerResult`
feat!: Remove `evaluationMetricKeys` (plural) field from `LDAIJudgeConfig` and `LDAIJudgeConfigDefault` — use `evaluationMetricKey` (singular) instead; the wire-read fallback still accepts the plural in flag variations for backward compatibility
feat!: Remove `LDAIConfigTracker.trackOpenAIMetrics` — use `tracker.trackMetricsOf(getAIMetricsFromResponse, fn)` from `@launchdarkly/server-sdk-ai-openai` instead
feat!: Remove `LDAIConfigTracker.trackVercelAISDKGenerateTextMetrics` —
use `tracker.trackMetricsOf(getAIMetricsFromResponse, fn)` from `@launchdarkly/server-sdk-ai-vercel` instead
feat!: Remove `createOpenAiUsage` helper — no longer needed; `trackMetricsOf` extracts usage
feat!: Remove `createVercelAISDKTokenUsage` helper — no longer needed; `trackMetricsOf` extracts usage1 parent 3173625 commit 86951b0
21 files changed
Lines changed: 14 additions & 740 deletions
File tree
- packages/sdk/server-ai
- __tests__
- examples/openai-observability
- src
- api
- chat
- config
- judge
- metrics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | 325 | | |
327 | 326 | | |
328 | 327 | | |
| |||
344 | 343 | | |
345 | 344 | | |
346 | 345 | | |
347 | | - | |
348 | 346 | | |
349 | 347 | | |
350 | 348 | | |
| |||
375 | 373 | | |
376 | 374 | | |
377 | 375 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | 376 | | |
485 | 377 | | |
486 | 378 | | |
| |||
629 | 521 | | |
630 | 522 | | |
631 | 523 | | |
632 | | - | |
633 | | - | |
| 524 | + | |
| 525 | + | |
634 | 526 | | |
635 | 527 | | |
636 | 528 | | |
| |||
668 | 560 | | |
669 | 561 | | |
670 | 562 | | |
671 | | - | |
672 | | - | |
| 563 | + | |
| 564 | + | |
673 | 565 | | |
674 | 566 | | |
675 | 567 | | |
| |||
774 | 666 | | |
775 | 667 | | |
776 | 668 | | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | 669 | | |
799 | 670 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | | - | |
| 630 | + | |
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
723 | | - | |
| 723 | + | |
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
758 | 757 | | |
759 | 758 | | |
760 | 759 | | |
| |||
780 | 779 | | |
781 | 780 | | |
782 | 781 | | |
783 | | - | |
| 782 | + | |
784 | 783 | | |
785 | 784 | | |
786 | 785 | | |
| |||
0 commit comments