@apicity/fireworks 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -88
- package/dist/src/example.d.ts.map +1 -1
- package/dist/src/example.js +123 -0
- package/dist/src/example.js.map +1 -1
- package/dist/src/fireworks.d.ts +1 -1
- package/dist/src/fireworks.d.ts.map +1 -1
- package/dist/src/fireworks.js +180 -178
- package/dist/src/fireworks.js.map +1 -1
- package/dist/src/index.d.ts +5 -5
- package/dist/src/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/src/fireworks.js
CHANGED
|
@@ -486,6 +486,7 @@ export function createFireworks(opts) {
|
|
|
486
486
|
}),
|
|
487
487
|
},
|
|
488
488
|
audio: {
|
|
489
|
+
// sig-ok: audio batch endpoints stay under the batch namespace.
|
|
489
490
|
// POST https://api.fireworks.ai/inference/v1/audio/transcriptions
|
|
490
491
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
491
492
|
transcriptions: Object.assign(async (req, signal) => {
|
|
@@ -530,6 +531,7 @@ export function createFireworks(opts) {
|
|
|
530
531
|
}, {
|
|
531
532
|
schema: FireworksTranscriptionRequestSchema,
|
|
532
533
|
}),
|
|
534
|
+
// sig-ok: audio batch endpoints stay under the batch namespace.
|
|
533
535
|
// POST https://api.fireworks.ai/inference/v1/audio/translations
|
|
534
536
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
535
537
|
translations: Object.assign(async (req, signal) => {
|
|
@@ -569,7 +571,7 @@ export function createFireworks(opts) {
|
|
|
569
571
|
schema: FireworksTranslationRequestSchema,
|
|
570
572
|
}),
|
|
571
573
|
batch: {
|
|
572
|
-
// sig-ok:
|
|
574
|
+
// sig-ok: audio batch endpoints stay under the batch namespace.
|
|
573
575
|
// POST https://api.fireworks.ai/inference/v1/audio/transcriptions
|
|
574
576
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
575
577
|
transcriptions: Object.assign(async (req, signal) => {
|
|
@@ -614,7 +616,7 @@ export function createFireworks(opts) {
|
|
|
614
616
|
}, {
|
|
615
617
|
schema: FireworksAudioBatchTranscriptionRequestSchema,
|
|
616
618
|
}),
|
|
617
|
-
// sig-ok:
|
|
619
|
+
// sig-ok: audio batch endpoints stay under the batch namespace.
|
|
618
620
|
// POST https://api.fireworks.ai/inference/v1/audio/translations
|
|
619
621
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
620
622
|
translations: Object.assign(async (req, signal) => {
|
|
@@ -657,16 +659,16 @@ export function createFireworks(opts) {
|
|
|
657
659
|
},
|
|
658
660
|
accounts: {
|
|
659
661
|
users: {
|
|
660
|
-
// sig-ok:
|
|
661
|
-
// POST https://api.fireworks.ai/
|
|
662
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
663
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/users
|
|
662
664
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
663
665
|
create: Object.assign(async (accountId, req, options, signal) => {
|
|
664
666
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/users`, req, options, signal);
|
|
665
667
|
}, {
|
|
666
668
|
schema: FireworksCreateUserRequestSchema,
|
|
667
669
|
}),
|
|
668
|
-
// sig-ok:
|
|
669
|
-
// POST https://api.fireworks.ai/
|
|
670
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
671
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/users/{userId}
|
|
670
672
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
671
673
|
update: Object.assign(async (accountId, userId, req, signal) => {
|
|
672
674
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/users/${userId}`, req, undefined, signal);
|
|
@@ -678,24 +680,24 @@ export function createFireworks(opts) {
|
|
|
678
680
|
}),
|
|
679
681
|
},
|
|
680
682
|
models: {
|
|
681
|
-
// sig-ok:
|
|
682
|
-
// POST https://api.fireworks.ai/
|
|
683
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
684
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/models
|
|
683
685
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
684
686
|
create: Object.assign(async (accountId, req, signal) => {
|
|
685
687
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/models`, req, undefined, signal);
|
|
686
688
|
}, {
|
|
687
689
|
schema: FireworksCreateModelRequestSchema,
|
|
688
690
|
}),
|
|
689
|
-
// sig-ok:
|
|
690
|
-
// POST https://api.fireworks.ai/
|
|
691
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
692
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/models/{modelId}:prepare
|
|
691
693
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
692
694
|
prepare: Object.assign(async (accountId, modelId, req, signal) => {
|
|
693
695
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/models/${modelId}:prepare`, req, undefined, signal);
|
|
694
696
|
}, {
|
|
695
697
|
schema: FireworksPrepareModelRequestSchema,
|
|
696
698
|
}),
|
|
697
|
-
// sig-ok:
|
|
698
|
-
// POST https://api.fireworks.ai/
|
|
699
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
700
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/models/{modelId}:getUploadEndpoint
|
|
699
701
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
700
702
|
getUploadEndpoint: Object.assign(async (accountId, modelId, req, signal) => {
|
|
701
703
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/models/${modelId}:getUploadEndpoint`, req, undefined, signal);
|
|
@@ -704,24 +706,24 @@ export function createFireworks(opts) {
|
|
|
704
706
|
}),
|
|
705
707
|
},
|
|
706
708
|
deployments: {
|
|
707
|
-
// sig-ok:
|
|
708
|
-
// POST https://api.fireworks.ai/
|
|
709
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
710
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/deployments
|
|
709
711
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
710
712
|
create: Object.assign(async (accountId, req, options, signal) => {
|
|
711
713
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/deployments`, req, options, signal);
|
|
712
714
|
}, {
|
|
713
715
|
schema: FireworksCreateDeploymentRequestSchema,
|
|
714
716
|
}),
|
|
715
|
-
// sig-ok:
|
|
716
|
-
// POST https://api.fireworks.ai/
|
|
717
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
718
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/deployments/{deploymentId}:undelete
|
|
717
719
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
718
720
|
undelete: async (accountId, deploymentId, signal) => {
|
|
719
721
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/deployments/${deploymentId}:undelete`, {}, undefined, signal);
|
|
720
722
|
},
|
|
721
723
|
},
|
|
722
724
|
deployedModels: {
|
|
723
|
-
// sig-ok:
|
|
724
|
-
// POST https://api.fireworks.ai/
|
|
725
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
726
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/deployedModels
|
|
725
727
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
726
728
|
create: Object.assign(async (accountId, req, options, signal) => {
|
|
727
729
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/deployedModels`, req, options, signal);
|
|
@@ -730,8 +732,8 @@ export function createFireworks(opts) {
|
|
|
730
732
|
}),
|
|
731
733
|
},
|
|
732
734
|
apiKeys: {
|
|
733
|
-
// sig-ok:
|
|
734
|
-
// POST https://api.fireworks.ai/
|
|
735
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
736
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/users/{userId}/apiKeys
|
|
735
737
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
736
738
|
create: Object.assign(async (accountId, userId, req, signal) => {
|
|
737
739
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/users/${userId}/apiKeys`, req, undefined, signal);
|
|
@@ -740,8 +742,8 @@ export function createFireworks(opts) {
|
|
|
740
742
|
}),
|
|
741
743
|
},
|
|
742
744
|
secrets: {
|
|
743
|
-
// sig-ok:
|
|
744
|
-
// POST https://api.fireworks.ai/
|
|
745
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
746
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/secrets
|
|
745
747
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
746
748
|
create: Object.assign(async (accountId, req, signal) => {
|
|
747
749
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/secrets`, req, undefined, signal);
|
|
@@ -750,24 +752,24 @@ export function createFireworks(opts) {
|
|
|
750
752
|
}),
|
|
751
753
|
},
|
|
752
754
|
datasets: {
|
|
753
|
-
// sig-ok:
|
|
754
|
-
// POST https://api.fireworks.ai/
|
|
755
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
756
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/datasets
|
|
755
757
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
756
758
|
create: Object.assign(async (accountId, req, signal) => {
|
|
757
759
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/datasets`, req, undefined, signal);
|
|
758
760
|
}, {
|
|
759
761
|
schema: FireworksCreateDatasetRequestSchema,
|
|
760
762
|
}),
|
|
761
|
-
// sig-ok:
|
|
762
|
-
// POST https://api.fireworks.ai/
|
|
763
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
764
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/datasets/{datasetId}:getUploadEndpoint
|
|
763
765
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
764
766
|
getUploadEndpoint: Object.assign(async (accountId, datasetId, req, signal) => {
|
|
765
767
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/datasets/${datasetId}:getUploadEndpoint`, req, undefined, signal);
|
|
766
768
|
}, {
|
|
767
769
|
schema: FireworksDatasetGetUploadEndpointRequestSchema,
|
|
768
770
|
}),
|
|
769
|
-
// sig-ok:
|
|
770
|
-
// POST https://api.fireworks.ai/
|
|
771
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
772
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/datasets/{datasetId}:validateUpload
|
|
771
773
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
772
774
|
validateUpload: Object.assign(async (accountId, datasetId, req, signal) => {
|
|
773
775
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/datasets/${datasetId}:validateUpload`, req ?? {}, undefined, signal);
|
|
@@ -776,8 +778,8 @@ export function createFireworks(opts) {
|
|
|
776
778
|
}),
|
|
777
779
|
},
|
|
778
780
|
batchInferenceJobs: {
|
|
779
|
-
// sig-ok:
|
|
780
|
-
// POST https://api.fireworks.ai/
|
|
781
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
782
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/batchInferenceJobs
|
|
781
783
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
782
784
|
create: Object.assign(async (accountId, req, signal) => {
|
|
783
785
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/batchInferenceJobs`, req, undefined, signal);
|
|
@@ -786,8 +788,8 @@ export function createFireworks(opts) {
|
|
|
786
788
|
}),
|
|
787
789
|
},
|
|
788
790
|
supervisedFineTuningJobs: {
|
|
789
|
-
// sig-ok:
|
|
790
|
-
// POST https://api.fireworks.ai/
|
|
791
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
792
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/supervisedFineTuningJobs
|
|
791
793
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
792
794
|
create: Object.assign(async (req, signal) => {
|
|
793
795
|
const { accountId, supervisedFineTuningJobId, ...body } = req;
|
|
@@ -799,56 +801,56 @@ export function createFireworks(opts) {
|
|
|
799
801
|
}, {
|
|
800
802
|
schema: FireworksSFTCreateRequestSchema,
|
|
801
803
|
}),
|
|
802
|
-
// sig-ok:
|
|
803
|
-
// POST https://api.fireworks.ai/
|
|
804
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
805
|
+
// POST https://api.fireworks.ai/v1/accounts/{param}/supervisedFineTuningJobs/{param}:resume
|
|
804
806
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
805
807
|
resume: async (req, signal) => {
|
|
806
808
|
return await makeModelsRequest("POST", `/v1/accounts/${req.accountId}/supervisedFineTuningJobs/${req.jobId}:resume`, {}, undefined, signal);
|
|
807
809
|
},
|
|
808
810
|
},
|
|
809
811
|
dpoJobs: {
|
|
810
|
-
// sig-ok:
|
|
811
|
-
// POST https://api.fireworks.ai/
|
|
812
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
813
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/dpoJobs
|
|
812
814
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
813
815
|
create: Object.assign(async (accountId, req, signal) => {
|
|
814
816
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/dpoJobs`, req, undefined, signal);
|
|
815
817
|
}, {
|
|
816
818
|
schema: FireworksDpoJobCreateRequestSchema,
|
|
817
819
|
}),
|
|
818
|
-
// sig-ok:
|
|
819
|
-
// POST https://api.fireworks.ai/
|
|
820
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
821
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/dpoJobs/{jobId}:resume
|
|
820
822
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
821
823
|
resume: async (accountId, jobId, signal) => {
|
|
822
824
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/dpoJobs/${jobId}:resume`, {}, undefined, signal);
|
|
823
825
|
},
|
|
824
826
|
},
|
|
825
827
|
evaluators: {
|
|
826
|
-
// sig-ok:
|
|
827
|
-
// POST https://api.fireworks.ai/
|
|
828
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
829
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/evaluatorsV2
|
|
828
830
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
829
831
|
create: Object.assign(async (accountId, req, signal) => {
|
|
830
832
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/evaluatorsV2`, req, undefined, signal);
|
|
831
833
|
}, {
|
|
832
834
|
schema: FireworksCreateEvaluatorRequestSchema,
|
|
833
835
|
}),
|
|
834
|
-
// sig-ok:
|
|
835
|
-
// POST https://api.fireworks.ai/
|
|
836
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
837
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/evaluators/{evaluatorId}:getUploadEndpoint
|
|
836
838
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
837
839
|
getUploadEndpoint: Object.assign(async (accountId, evaluatorId, req, signal) => {
|
|
838
840
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/evaluators/${evaluatorId}:getUploadEndpoint`, req, undefined, signal);
|
|
839
841
|
}, {
|
|
840
842
|
schema: FireworksGetUploadEndpointEvaluatorRequestSchema,
|
|
841
843
|
}),
|
|
842
|
-
// sig-ok:
|
|
843
|
-
// POST https://api.fireworks.ai/
|
|
844
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
845
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/evaluators/{evaluatorId}:validateUpload
|
|
844
846
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
845
847
|
validateUpload: async (accountId, evaluatorId, signal) => {
|
|
846
848
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/evaluators/${evaluatorId}:validateUpload`, {}, undefined, signal);
|
|
847
849
|
},
|
|
848
850
|
},
|
|
849
851
|
evaluationJobs: {
|
|
850
|
-
// sig-ok:
|
|
851
|
-
// POST https://api.fireworks.ai/
|
|
852
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
853
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/evaluationJobs
|
|
852
854
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
853
855
|
create: Object.assign(async (accountId, req, signal) => {
|
|
854
856
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/evaluationJobs`, req, undefined, signal);
|
|
@@ -857,8 +859,8 @@ export function createFireworks(opts) {
|
|
|
857
859
|
}),
|
|
858
860
|
},
|
|
859
861
|
reinforcementFineTuningJobs: {
|
|
860
|
-
// sig-ok:
|
|
861
|
-
// POST https://api.fireworks.ai/
|
|
862
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
863
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/reinforcementFineTuningJobs
|
|
862
864
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
863
865
|
create: Object.assign(async (accountId, req, signal) => {
|
|
864
866
|
const { reinforcementFineTuningJobId, ...body } = req;
|
|
@@ -870,32 +872,32 @@ export function createFireworks(opts) {
|
|
|
870
872
|
}, {
|
|
871
873
|
schema: FireworksRFTCreateRequestSchema,
|
|
872
874
|
}),
|
|
873
|
-
// sig-ok:
|
|
874
|
-
// POST https://api.fireworks.ai/
|
|
875
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
876
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/reinforcementFineTuningJobs/{jobId}:resume
|
|
875
877
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
876
878
|
resume: async (accountId, jobId, signal) => {
|
|
877
879
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/reinforcementFineTuningJobs/${jobId}:resume`, {}, undefined, signal);
|
|
878
880
|
},
|
|
879
881
|
},
|
|
880
882
|
rlorTrainerJobs: {
|
|
881
|
-
// sig-ok:
|
|
882
|
-
// POST https://api.fireworks.ai/
|
|
883
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
884
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/rlorTrainerJobs
|
|
883
885
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
884
886
|
create: Object.assign(async (accountId, req, signal) => {
|
|
885
887
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/rlorTrainerJobs`, req, undefined, signal);
|
|
886
888
|
}, {
|
|
887
889
|
schema: FireworksRlorTrainerJobCreateRequestSchema,
|
|
888
890
|
}),
|
|
889
|
-
// sig-ok:
|
|
890
|
-
// POST https://api.fireworks.ai/
|
|
891
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
892
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/rlorTrainerJobs/{jobId}:executeTrainStep
|
|
891
893
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
892
894
|
executeTrainStep: Object.assign(async (accountId, jobId, req, signal) => {
|
|
893
895
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/rlorTrainerJobs/${jobId}:executeTrainStep`, req, undefined, signal);
|
|
894
896
|
}, {
|
|
895
897
|
schema: FireworksRlorTrainerJobExecuteStepRequestSchema,
|
|
896
898
|
}),
|
|
897
|
-
// sig-ok:
|
|
898
|
-
// POST https://api.fireworks.ai/
|
|
899
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
900
|
+
// POST https://api.fireworks.ai/v1/accounts/{accountId}/rlorTrainerJobs/{jobId}:resume
|
|
899
901
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
900
902
|
resume: async (accountId, jobId, signal) => {
|
|
901
903
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/rlorTrainerJobs/${jobId}:resume`, {}, undefined, signal);
|
|
@@ -924,81 +926,81 @@ export function createFireworks(opts) {
|
|
|
924
926
|
// GET namespace - methods that use HTTP GET
|
|
925
927
|
const getV1 = {
|
|
926
928
|
accounts: {
|
|
927
|
-
// sig-ok:
|
|
928
|
-
// GET https://api.fireworks.ai/
|
|
929
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
930
|
+
// GET https://api.fireworks.ai/v1/accounts
|
|
929
931
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
930
932
|
list: async (params, signal) => {
|
|
931
933
|
return await makeModelsRequest("GET", "/v1/accounts", undefined, params, signal);
|
|
932
934
|
},
|
|
933
|
-
// sig-ok:
|
|
934
|
-
// GET https://api.fireworks.ai/
|
|
935
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
936
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}
|
|
935
937
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
936
938
|
get: async (accountId, params, signal) => {
|
|
937
939
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}`, undefined, params, signal);
|
|
938
940
|
},
|
|
939
941
|
users: {
|
|
940
|
-
// sig-ok:
|
|
941
|
-
// GET https://api.fireworks.ai/
|
|
942
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
943
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/users
|
|
942
944
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
943
945
|
list: async (accountId, params, signal) => {
|
|
944
946
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/users`, undefined, params, signal);
|
|
945
947
|
},
|
|
946
|
-
// sig-ok:
|
|
947
|
-
// GET https://api.fireworks.ai/
|
|
948
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
949
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/users/{userId}
|
|
948
950
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
949
951
|
get: async (accountId, userId, params, signal) => {
|
|
950
952
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/users/${userId}`, undefined, params, signal);
|
|
951
953
|
},
|
|
952
954
|
},
|
|
953
955
|
apiKeys: {
|
|
954
|
-
// sig-ok:
|
|
955
|
-
// GET https://api.fireworks.ai/
|
|
956
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
957
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/users/{userId}/apiKeys
|
|
956
958
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
957
959
|
list: async (accountId, userId, params, signal) => {
|
|
958
960
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/users/${userId}/apiKeys`, undefined, params, signal);
|
|
959
961
|
},
|
|
960
962
|
},
|
|
961
963
|
secrets: {
|
|
962
|
-
// sig-ok:
|
|
963
|
-
// GET https://api.fireworks.ai/
|
|
964
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
965
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/secrets
|
|
964
966
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
965
967
|
list: async (accountId, params, signal) => {
|
|
966
968
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/secrets`, undefined, params, signal);
|
|
967
969
|
},
|
|
968
|
-
// sig-ok:
|
|
969
|
-
// GET https://api.fireworks.ai/
|
|
970
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
971
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/secrets/{secretId}
|
|
970
972
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
971
973
|
get: async (accountId, secretId, params, signal) => {
|
|
972
974
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/secrets/${secretId}`, undefined, params, signal);
|
|
973
975
|
},
|
|
974
976
|
},
|
|
975
977
|
models: {
|
|
976
|
-
// sig-ok:
|
|
977
|
-
// GET https://api.fireworks.ai/
|
|
978
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
979
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/models
|
|
978
980
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
979
981
|
list: Object.assign(async (accountId, req, signal) => {
|
|
980
982
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/models`, undefined, req, signal);
|
|
981
983
|
}, {
|
|
982
984
|
schema: FireworksEmptySchema,
|
|
983
985
|
}),
|
|
984
|
-
// sig-ok:
|
|
985
|
-
// GET https://api.fireworks.ai/
|
|
986
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
987
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/models/{modelId}
|
|
986
988
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
987
989
|
get: Object.assign(async (accountId, modelId, req, signal) => {
|
|
988
990
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/models/${modelId}`, undefined, req, signal);
|
|
989
991
|
}, {
|
|
990
992
|
schema: FireworksEmptySchema,
|
|
991
993
|
}),
|
|
992
|
-
// sig-ok:
|
|
993
|
-
// GET https://api.fireworks.ai/
|
|
994
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
995
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/models/{modelId}:getDownloadEndpoint
|
|
994
996
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
995
997
|
getDownloadEndpoint: Object.assign(async (accountId, modelId, req, signal) => {
|
|
996
998
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/models/${modelId}:getDownloadEndpoint`, undefined, req, signal);
|
|
997
999
|
}, {
|
|
998
1000
|
schema: FireworksEmptySchema,
|
|
999
1001
|
}),
|
|
1000
|
-
// sig-ok:
|
|
1001
|
-
// GET https://api.fireworks.ai/
|
|
1002
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1003
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/models/{modelId}:validateUpload
|
|
1002
1004
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1003
1005
|
validateUpload: Object.assign(async (accountId, modelId, req, signal) => {
|
|
1004
1006
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/models/${modelId}:validateUpload`, undefined, req, signal);
|
|
@@ -1007,20 +1009,20 @@ export function createFireworks(opts) {
|
|
|
1007
1009
|
}),
|
|
1008
1010
|
},
|
|
1009
1011
|
datasets: {
|
|
1010
|
-
// sig-ok:
|
|
1011
|
-
// GET https://api.fireworks.ai/
|
|
1012
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1013
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/datasets
|
|
1012
1014
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1013
1015
|
list: async (accountId, params, signal) => {
|
|
1014
1016
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/datasets`, undefined, params, signal);
|
|
1015
1017
|
},
|
|
1016
|
-
// sig-ok:
|
|
1017
|
-
// GET https://api.fireworks.ai/
|
|
1018
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1019
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/datasets/{datasetId}
|
|
1018
1020
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1019
1021
|
get: async (accountId, datasetId, req, signal) => {
|
|
1020
1022
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/datasets/${datasetId}`, undefined, req, signal);
|
|
1021
1023
|
},
|
|
1022
|
-
// sig-ok:
|
|
1023
|
-
// GET https://api.fireworks.ai/
|
|
1024
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1025
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/datasets/{datasetId}:getDownloadEndpoint
|
|
1024
1026
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1025
1027
|
getDownloadEndpoint: Object.assign(async (accountId, datasetId, req, signal) => {
|
|
1026
1028
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/datasets/${datasetId}:getDownloadEndpoint`, undefined, req, signal);
|
|
@@ -1029,22 +1031,22 @@ export function createFireworks(opts) {
|
|
|
1029
1031
|
}),
|
|
1030
1032
|
},
|
|
1031
1033
|
batchInferenceJobs: {
|
|
1032
|
-
// sig-ok:
|
|
1033
|
-
// GET https://api.fireworks.ai/
|
|
1034
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1035
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/batchInferenceJobs
|
|
1034
1036
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1035
1037
|
list: async (accountId, req, signal) => {
|
|
1036
1038
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/batchInferenceJobs`, undefined, req, signal);
|
|
1037
1039
|
},
|
|
1038
|
-
// sig-ok:
|
|
1039
|
-
// GET https://api.fireworks.ai/
|
|
1040
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1041
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/batchInferenceJobs/{jobId}
|
|
1040
1042
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1041
1043
|
get: async (accountId, jobId, signal) => {
|
|
1042
1044
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/batchInferenceJobs/${jobId}`, undefined, undefined, signal);
|
|
1043
1045
|
},
|
|
1044
1046
|
},
|
|
1045
1047
|
supervisedFineTuningJobs: {
|
|
1046
|
-
// sig-ok:
|
|
1047
|
-
// GET https://api.fireworks.ai/
|
|
1048
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1049
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/supervisedFineTuningJobs
|
|
1048
1050
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1049
1051
|
list: async (req, signal) => {
|
|
1050
1052
|
const { accountId, ...params } = req;
|
|
@@ -1059,43 +1061,43 @@ export function createFireworks(opts) {
|
|
|
1059
1061
|
query.orderBy = params.orderBy;
|
|
1060
1062
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/supervisedFineTuningJobs`, undefined, Object.keys(query).length > 0 ? query : undefined, signal);
|
|
1061
1063
|
},
|
|
1062
|
-
// sig-ok:
|
|
1063
|
-
// GET https://api.fireworks.ai/
|
|
1064
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1065
|
+
// GET https://api.fireworks.ai/v1/accounts/{param}/supervisedFineTuningJobs/{param}
|
|
1064
1066
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1065
1067
|
get: async (req, signal) => {
|
|
1066
1068
|
return await makeModelsRequest("GET", `/v1/accounts/${req.accountId}/supervisedFineTuningJobs/${req.jobId}`, undefined, undefined, signal);
|
|
1067
1069
|
},
|
|
1068
1070
|
},
|
|
1069
1071
|
deployments: {
|
|
1070
|
-
// sig-ok:
|
|
1071
|
-
// GET https://api.fireworks.ai/
|
|
1072
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1073
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/deployments
|
|
1072
1074
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1073
1075
|
list: async (accountId, params, signal) => {
|
|
1074
1076
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/deployments`, undefined, params, signal);
|
|
1075
1077
|
},
|
|
1076
|
-
// sig-ok:
|
|
1077
|
-
// GET https://api.fireworks.ai/
|
|
1078
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1079
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/deployments/{deploymentId}
|
|
1078
1080
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1079
1081
|
get: async (accountId, deploymentId, signal) => {
|
|
1080
1082
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/deployments/${deploymentId}`, undefined, undefined, signal);
|
|
1081
1083
|
},
|
|
1082
1084
|
},
|
|
1083
1085
|
deploymentShapes: {
|
|
1084
|
-
// sig-ok:
|
|
1085
|
-
// GET https://api.fireworks.ai/
|
|
1086
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1087
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/deploymentShapes/{shapeId}
|
|
1086
1088
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1087
1089
|
get: async (accountId, shapeId, params, signal) => {
|
|
1088
1090
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/deploymentShapes/${shapeId}`, undefined, params, signal);
|
|
1089
1091
|
},
|
|
1090
1092
|
versions: {
|
|
1091
|
-
// sig-ok:
|
|
1092
|
-
// GET https://api.fireworks.ai/
|
|
1093
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1094
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/deploymentShapes/{shapeId}/versions
|
|
1093
1095
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1094
1096
|
list: async (accountId, shapeId, params, signal) => {
|
|
1095
1097
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/deploymentShapes/${shapeId}/versions`, undefined, params, signal);
|
|
1096
1098
|
},
|
|
1097
|
-
// sig-ok:
|
|
1098
|
-
// GET https://api.fireworks.ai/
|
|
1099
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1100
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/deploymentShapes/{shapeId}/versions/{versionId}
|
|
1099
1101
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1100
1102
|
get: async (accountId, shapeId, versionId, params, signal) => {
|
|
1101
1103
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/deploymentShapes/${shapeId}/versions/${versionId}`, undefined, params, signal);
|
|
@@ -1103,108 +1105,108 @@ export function createFireworks(opts) {
|
|
|
1103
1105
|
},
|
|
1104
1106
|
},
|
|
1105
1107
|
deployedModels: {
|
|
1106
|
-
// sig-ok:
|
|
1107
|
-
// GET https://api.fireworks.ai/
|
|
1108
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1109
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/deployedModels
|
|
1108
1110
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1109
1111
|
list: async (accountId, params, signal) => {
|
|
1110
1112
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/deployedModels`, undefined, params, signal);
|
|
1111
1113
|
},
|
|
1112
|
-
// sig-ok:
|
|
1113
|
-
// GET https://api.fireworks.ai/
|
|
1114
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1115
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/deployedModels/{deployedModelId}
|
|
1114
1116
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1115
1117
|
get: async (accountId, deployedModelId, params, signal) => {
|
|
1116
1118
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/deployedModels/${deployedModelId}`, undefined, params, signal);
|
|
1117
1119
|
},
|
|
1118
1120
|
},
|
|
1119
1121
|
dpoJobs: {
|
|
1120
|
-
// sig-ok:
|
|
1121
|
-
// GET https://api.fireworks.ai/
|
|
1122
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1123
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/dpoJobs
|
|
1122
1124
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1123
1125
|
list: async (accountId, req, signal) => {
|
|
1124
1126
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/dpoJobs`, undefined, req, signal);
|
|
1125
1127
|
},
|
|
1126
|
-
// sig-ok:
|
|
1127
|
-
// GET https://api.fireworks.ai/
|
|
1128
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1129
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/dpoJobs/{jobId}
|
|
1128
1130
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1129
1131
|
get: async (accountId, jobId, req, signal) => {
|
|
1130
1132
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/dpoJobs/${jobId}`, undefined, req, signal);
|
|
1131
1133
|
},
|
|
1132
|
-
// sig-ok:
|
|
1133
|
-
// GET https://api.fireworks.ai/
|
|
1134
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1135
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/dpoJobs/{jobId}:getMetricsFileEndpoint
|
|
1134
1136
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1135
1137
|
getMetricsFileEndpoint: async (accountId, jobId, signal) => {
|
|
1136
1138
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/dpoJobs/${jobId}:getMetricsFileEndpoint`, undefined, undefined, signal);
|
|
1137
1139
|
},
|
|
1138
1140
|
},
|
|
1139
1141
|
evaluators: {
|
|
1140
|
-
// sig-ok:
|
|
1141
|
-
// GET https://api.fireworks.ai/
|
|
1142
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1143
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/evaluators
|
|
1142
1144
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1143
1145
|
list: async (accountId, params, signal) => {
|
|
1144
1146
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/evaluators`, undefined, params, signal);
|
|
1145
1147
|
},
|
|
1146
|
-
// sig-ok:
|
|
1147
|
-
// GET https://api.fireworks.ai/
|
|
1148
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1149
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/evaluators/{evaluatorId}
|
|
1148
1150
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1149
1151
|
get: async (accountId, evaluatorId, params, signal) => {
|
|
1150
1152
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/evaluators/${evaluatorId}`, undefined, params, signal);
|
|
1151
1153
|
},
|
|
1152
|
-
// sig-ok:
|
|
1153
|
-
// GET https://api.fireworks.ai/
|
|
1154
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1155
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/evaluators/{evaluatorId}:getBuildLogEndpoint
|
|
1154
1156
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1155
1157
|
getBuildLogEndpoint: async (accountId, evaluatorId, params, signal) => {
|
|
1156
1158
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/evaluators/${evaluatorId}:getBuildLogEndpoint`, undefined, params, signal);
|
|
1157
1159
|
},
|
|
1158
|
-
// sig-ok:
|
|
1159
|
-
// GET https://api.fireworks.ai/
|
|
1160
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1161
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/evaluators/{evaluatorId}:getSourceCodeSignedUrl
|
|
1160
1162
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1161
1163
|
getSourceCodeSignedUrl: async (accountId, evaluatorId, params, signal) => {
|
|
1162
1164
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/evaluators/${evaluatorId}:getSourceCodeSignedUrl`, undefined, params, signal);
|
|
1163
1165
|
},
|
|
1164
1166
|
},
|
|
1165
1167
|
evaluationJobs: {
|
|
1166
|
-
// sig-ok:
|
|
1167
|
-
// GET https://api.fireworks.ai/
|
|
1168
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1169
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/evaluationJobs
|
|
1168
1170
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1169
1171
|
list: async (accountId, params, signal) => {
|
|
1170
1172
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/evaluationJobs`, undefined, params, signal);
|
|
1171
1173
|
},
|
|
1172
|
-
// sig-ok:
|
|
1173
|
-
// GET https://api.fireworks.ai/
|
|
1174
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1175
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/evaluationJobs/{evaluationJobId}
|
|
1174
1176
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1175
1177
|
get: async (accountId, evaluationJobId, params, signal) => {
|
|
1176
1178
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/evaluationJobs/${evaluationJobId}`, undefined, params, signal);
|
|
1177
1179
|
},
|
|
1178
|
-
// sig-ok:
|
|
1179
|
-
// GET https://api.fireworks.ai/
|
|
1180
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1181
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/evaluationJobs/{evaluationJobId}:getExecutionLogEndpoint
|
|
1180
1182
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1181
1183
|
getExecutionLogEndpoint: async (accountId, evaluationJobId, signal) => {
|
|
1182
1184
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/evaluationJobs/${evaluationJobId}:getExecutionLogEndpoint`, undefined, undefined, signal);
|
|
1183
1185
|
},
|
|
1184
1186
|
},
|
|
1185
1187
|
reinforcementFineTuningJobs: {
|
|
1186
|
-
// sig-ok:
|
|
1187
|
-
// GET https://api.fireworks.ai/
|
|
1188
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1189
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/reinforcementFineTuningJobs
|
|
1188
1190
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1189
1191
|
list: async (accountId, req, signal) => {
|
|
1190
1192
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/reinforcementFineTuningJobs`, undefined, req, signal);
|
|
1191
1193
|
},
|
|
1192
|
-
// sig-ok:
|
|
1193
|
-
// GET https://api.fireworks.ai/
|
|
1194
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1195
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/reinforcementFineTuningJobs/{jobId}
|
|
1194
1196
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1195
1197
|
get: async (accountId, jobId, req, signal) => {
|
|
1196
1198
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/reinforcementFineTuningJobs/${jobId}`, undefined, req, signal);
|
|
1197
1199
|
},
|
|
1198
1200
|
},
|
|
1199
1201
|
rlorTrainerJobs: {
|
|
1200
|
-
// sig-ok:
|
|
1201
|
-
// GET https://api.fireworks.ai/
|
|
1202
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1203
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/rlorTrainerJobs
|
|
1202
1204
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1203
1205
|
list: async (accountId, req, signal) => {
|
|
1204
1206
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/rlorTrainerJobs`, undefined, req, signal);
|
|
1205
1207
|
},
|
|
1206
|
-
// sig-ok:
|
|
1207
|
-
// GET https://api.fireworks.ai/
|
|
1208
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1209
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/rlorTrainerJobs/{jobId}
|
|
1208
1210
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1209
1211
|
get: async (accountId, jobId, req, signal) => {
|
|
1210
1212
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/rlorTrainerJobs/${jobId}`, undefined, req, signal);
|
|
@@ -1213,8 +1215,8 @@ export function createFireworks(opts) {
|
|
|
1213
1215
|
},
|
|
1214
1216
|
audio: {
|
|
1215
1217
|
batch: {
|
|
1216
|
-
// sig-ok:
|
|
1217
|
-
// GET https://api.fireworks.ai/
|
|
1218
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1219
|
+
// GET https://api.fireworks.ai/v1/accounts/{accountId}/batch_job/{batchId}
|
|
1218
1220
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1219
1221
|
get: async (accountId, batchId, signal) => {
|
|
1220
1222
|
return await makeModelsRequest("GET", `/v1/accounts/${accountId}/batch_job/${batchId}`, undefined, undefined, signal);
|
|
@@ -1226,8 +1228,8 @@ export function createFireworks(opts) {
|
|
|
1226
1228
|
const patchV1 = {
|
|
1227
1229
|
accounts: {
|
|
1228
1230
|
users: {
|
|
1229
|
-
// sig-ok:
|
|
1230
|
-
// PATCH https://api.fireworks.ai/
|
|
1231
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1232
|
+
// PATCH https://api.fireworks.ai/v1/accounts/{accountId}/users/{userId}
|
|
1231
1233
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1232
1234
|
update: Object.assign(async (accountId, userId, req, signal) => {
|
|
1233
1235
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/users/${userId}`, req, undefined, signal);
|
|
@@ -1239,8 +1241,8 @@ export function createFireworks(opts) {
|
|
|
1239
1241
|
}),
|
|
1240
1242
|
},
|
|
1241
1243
|
models: {
|
|
1242
|
-
// sig-ok:
|
|
1243
|
-
// PATCH https://api.fireworks.ai/
|
|
1244
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1245
|
+
// PATCH https://api.fireworks.ai/v1/accounts/{accountId}/models/{modelId}
|
|
1244
1246
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1245
1247
|
update: Object.assign(async (accountId, modelId, req, signal) => {
|
|
1246
1248
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/models/${modelId}`, req, undefined, signal);
|
|
@@ -1252,8 +1254,8 @@ export function createFireworks(opts) {
|
|
|
1252
1254
|
}),
|
|
1253
1255
|
},
|
|
1254
1256
|
datasets: {
|
|
1255
|
-
// sig-ok:
|
|
1256
|
-
// PATCH https://api.fireworks.ai/
|
|
1257
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1258
|
+
// PATCH https://api.fireworks.ai/v1/accounts/{accountId}/datasets/{datasetId}
|
|
1257
1259
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1258
1260
|
update: Object.assign(async (accountId, datasetId, req, signal) => {
|
|
1259
1261
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/datasets/${datasetId}`, req, undefined, signal);
|
|
@@ -1262,8 +1264,8 @@ export function createFireworks(opts) {
|
|
|
1262
1264
|
}),
|
|
1263
1265
|
},
|
|
1264
1266
|
deployments: {
|
|
1265
|
-
// sig-ok:
|
|
1266
|
-
// PATCH https://api.fireworks.ai/
|
|
1267
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1268
|
+
// PATCH https://api.fireworks.ai/v1/accounts/{accountId}/deployments/{deploymentId}
|
|
1267
1269
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1268
1270
|
update: Object.assign(async (accountId, deploymentId, req, signal) => {
|
|
1269
1271
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/deployments/${deploymentId}`, req, undefined, signal);
|
|
@@ -1273,8 +1275,8 @@ export function createFireworks(opts) {
|
|
|
1273
1275
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/deployments/${deploymentId}`, req, undefined, signal);
|
|
1274
1276
|
},
|
|
1275
1277
|
}),
|
|
1276
|
-
// sig-ok:
|
|
1277
|
-
// PATCH https://api.fireworks.ai/
|
|
1278
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1279
|
+
// PATCH https://api.fireworks.ai/v1/accounts/{accountId}/deployments/{deploymentId}:scale
|
|
1278
1280
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1279
1281
|
scale: Object.assign(async (accountId, deploymentId, req, signal) => {
|
|
1280
1282
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/deployments/${deploymentId}:scale`, req, undefined, signal);
|
|
@@ -1283,8 +1285,8 @@ export function createFireworks(opts) {
|
|
|
1283
1285
|
}),
|
|
1284
1286
|
},
|
|
1285
1287
|
deployedModels: {
|
|
1286
|
-
// sig-ok:
|
|
1287
|
-
// PATCH https://api.fireworks.ai/
|
|
1288
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1289
|
+
// PATCH https://api.fireworks.ai/v1/accounts/{accountId}/deployedModels/{deployedModelId}
|
|
1288
1290
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1289
1291
|
update: Object.assign(async (accountId, deployedModelId, req, signal) => {
|
|
1290
1292
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/deployedModels/${deployedModelId}`, req, undefined, signal);
|
|
@@ -1293,8 +1295,8 @@ export function createFireworks(opts) {
|
|
|
1293
1295
|
}),
|
|
1294
1296
|
},
|
|
1295
1297
|
secrets: {
|
|
1296
|
-
// sig-ok:
|
|
1297
|
-
// PATCH https://api.fireworks.ai/
|
|
1298
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1299
|
+
// PATCH https://api.fireworks.ai/v1/accounts/{accountId}/secrets/{secretId}
|
|
1298
1300
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1299
1301
|
update: Object.assign(async (accountId, secretId, req, signal) => {
|
|
1300
1302
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/secrets/${secretId}`, req, undefined, signal);
|
|
@@ -1303,8 +1305,8 @@ export function createFireworks(opts) {
|
|
|
1303
1305
|
}),
|
|
1304
1306
|
},
|
|
1305
1307
|
evaluators: {
|
|
1306
|
-
// sig-ok:
|
|
1307
|
-
// PATCH https://api.fireworks.ai/
|
|
1308
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1309
|
+
// PATCH https://api.fireworks.ai/v1/accounts/{accountId}/evaluators/{evaluatorId}
|
|
1308
1310
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1309
1311
|
update: Object.assign(async (accountId, evaluatorId, req, options, signal) => {
|
|
1310
1312
|
return await makeModelsRequest("PATCH", `/v1/accounts/${accountId}/evaluators/${evaluatorId}`, req, options, signal);
|
|
@@ -1318,8 +1320,8 @@ export function createFireworks(opts) {
|
|
|
1318
1320
|
const deleteV1 = {
|
|
1319
1321
|
accounts: {
|
|
1320
1322
|
apiKeys: {
|
|
1321
|
-
// sig-ok:
|
|
1322
|
-
// DELETE https://api.fireworks.ai/
|
|
1323
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1324
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/users/{userId}/apiKeys:delete
|
|
1323
1325
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1324
1326
|
delete: Object.assign(async (accountId, userId, req, signal) => {
|
|
1325
1327
|
return await makeModelsRequest("POST", `/v1/accounts/${accountId}/users/${userId}/apiKeys:delete`, req, undefined, signal);
|
|
@@ -1328,16 +1330,16 @@ export function createFireworks(opts) {
|
|
|
1328
1330
|
}),
|
|
1329
1331
|
},
|
|
1330
1332
|
secrets: {
|
|
1331
|
-
// sig-ok:
|
|
1332
|
-
// DELETE https://api.fireworks.ai/
|
|
1333
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1334
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/secrets/{secretId}
|
|
1333
1335
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1334
1336
|
delete: async (accountId, secretId, signal) => {
|
|
1335
1337
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/secrets/${secretId}`, undefined, undefined, signal);
|
|
1336
1338
|
},
|
|
1337
1339
|
},
|
|
1338
1340
|
models: {
|
|
1339
|
-
// sig-ok:
|
|
1340
|
-
// DELETE https://api.fireworks.ai/
|
|
1341
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1342
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/models/{modelId}
|
|
1341
1343
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1342
1344
|
delete: Object.assign(async (accountId, modelId, signal) => {
|
|
1343
1345
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/models/${modelId}`, undefined, undefined, signal);
|
|
@@ -1346,24 +1348,24 @@ export function createFireworks(opts) {
|
|
|
1346
1348
|
}),
|
|
1347
1349
|
},
|
|
1348
1350
|
datasets: {
|
|
1349
|
-
// sig-ok:
|
|
1350
|
-
// DELETE https://api.fireworks.ai/
|
|
1351
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1352
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/datasets/{datasetId}
|
|
1351
1353
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1352
1354
|
delete: async (accountId, datasetId, signal) => {
|
|
1353
1355
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/datasets/${datasetId}`, undefined, undefined, signal);
|
|
1354
1356
|
},
|
|
1355
1357
|
},
|
|
1356
1358
|
batchInferenceJobs: {
|
|
1357
|
-
// sig-ok:
|
|
1358
|
-
// DELETE https://api.fireworks.ai/
|
|
1359
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1360
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/batchInferenceJobs/{jobId}
|
|
1359
1361
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1360
1362
|
delete: async (accountId, jobId, signal) => {
|
|
1361
1363
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/batchInferenceJobs/${jobId}`, undefined, undefined, signal);
|
|
1362
1364
|
},
|
|
1363
1365
|
},
|
|
1364
1366
|
supervisedFineTuningJobs: {
|
|
1365
|
-
// sig-ok:
|
|
1366
|
-
// DELETE https://api.fireworks.ai/
|
|
1367
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1368
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{param}/supervisedFineTuningJobs/{param}
|
|
1367
1369
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1368
1370
|
delete: Object.assign(async (req, signal) => {
|
|
1369
1371
|
return await makeModelsRequest("DELETE", `/v1/accounts/${req.accountId}/supervisedFineTuningJobs/${req.jobId}`, undefined, undefined, signal);
|
|
@@ -1372,56 +1374,56 @@ export function createFireworks(opts) {
|
|
|
1372
1374
|
}),
|
|
1373
1375
|
},
|
|
1374
1376
|
deployments: {
|
|
1375
|
-
// sig-ok:
|
|
1376
|
-
// DELETE https://api.fireworks.ai/
|
|
1377
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1378
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/deployments/{deploymentId}
|
|
1377
1379
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1378
1380
|
delete: async (accountId, deploymentId, options, signal) => {
|
|
1379
1381
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/deployments/${deploymentId}`, undefined, options, signal);
|
|
1380
1382
|
},
|
|
1381
1383
|
},
|
|
1382
1384
|
deployedModels: {
|
|
1383
|
-
// sig-ok:
|
|
1384
|
-
// DELETE https://api.fireworks.ai/
|
|
1385
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1386
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/deployedModels/{deployedModelId}
|
|
1385
1387
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1386
1388
|
delete: async (accountId, deployedModelId, signal) => {
|
|
1387
1389
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/deployedModels/${deployedModelId}`, undefined, undefined, signal);
|
|
1388
1390
|
},
|
|
1389
1391
|
},
|
|
1390
1392
|
dpoJobs: {
|
|
1391
|
-
// sig-ok:
|
|
1392
|
-
// DELETE https://api.fireworks.ai/
|
|
1393
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1394
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/dpoJobs/{jobId}
|
|
1393
1395
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1394
1396
|
delete: async (accountId, jobId, signal) => {
|
|
1395
1397
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/dpoJobs/${jobId}`, undefined, undefined, signal);
|
|
1396
1398
|
},
|
|
1397
1399
|
},
|
|
1398
1400
|
evaluators: {
|
|
1399
|
-
// sig-ok:
|
|
1400
|
-
// DELETE https://api.fireworks.ai/
|
|
1401
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1402
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/evaluators/{evaluatorId}
|
|
1401
1403
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1402
1404
|
delete: async (accountId, evaluatorId, signal) => {
|
|
1403
1405
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/evaluators/${evaluatorId}`, undefined, undefined, signal);
|
|
1404
1406
|
},
|
|
1405
1407
|
},
|
|
1406
1408
|
evaluationJobs: {
|
|
1407
|
-
// sig-ok:
|
|
1408
|
-
// DELETE https://api.fireworks.ai/
|
|
1409
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1410
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/evaluationJobs/{evaluationJobId}
|
|
1409
1411
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1410
1412
|
delete: async (accountId, evaluationJobId, signal) => {
|
|
1411
1413
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/evaluationJobs/${evaluationJobId}`, undefined, undefined, signal);
|
|
1412
1414
|
},
|
|
1413
1415
|
},
|
|
1414
1416
|
reinforcementFineTuningJobs: {
|
|
1415
|
-
// sig-ok:
|
|
1416
|
-
// DELETE https://api.fireworks.ai/
|
|
1417
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1418
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/reinforcementFineTuningJobs/{jobId}
|
|
1417
1419
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1418
1420
|
delete: async (accountId, jobId, signal) => {
|
|
1419
1421
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/reinforcementFineTuningJobs/${jobId}`, undefined, undefined, signal);
|
|
1420
1422
|
},
|
|
1421
1423
|
},
|
|
1422
1424
|
rlorTrainerJobs: {
|
|
1423
|
-
// sig-ok:
|
|
1424
|
-
// DELETE https://api.fireworks.ai/
|
|
1425
|
+
// sig-ok: Fireworks management endpoints stay under the inference namespace.
|
|
1426
|
+
// DELETE https://api.fireworks.ai/v1/accounts/{accountId}/rlorTrainerJobs/{jobId}
|
|
1425
1427
|
// Docs: https://docs.fireworks.ai/api-reference
|
|
1426
1428
|
delete: async (accountId, jobId, signal) => {
|
|
1427
1429
|
return await makeModelsRequest("DELETE", `/v1/accounts/${accountId}/rlorTrainerJobs/${jobId}`, undefined, undefined, signal);
|