@@ -64,7 +64,8 @@ export type AIRunResponse =
64
64
| AIRunResponse . UnionMember7
65
65
| AIRunResponse . Translation
66
66
| AIRunResponse . Summarization
67
- | AIRunResponse . ImageToText ;
67
+ | AIRunResponse . ImageToText
68
+ | AIRunResponse . ImageTextToText ;
68
69
69
70
export namespace AIRunResponse {
70
71
export interface TextClassification {
@@ -186,7 +187,7 @@ export namespace AIRunResponse {
186
187
/**
187
188
* The generated text response from the model
188
189
*/
189
- response ? : string ;
190
+ response : string ;
190
191
191
192
/**
192
193
* An array of tool calls requests made during the response generation
@@ -250,6 +251,10 @@ export namespace AIRunResponse {
250
251
export interface ImageToText {
251
252
description ?: string ;
252
253
}
254
+
255
+ export interface ImageTextToText {
256
+ description ?: string ;
257
+ }
253
258
}
254
259
255
260
export type AIRunParams =
@@ -264,7 +269,9 @@ export type AIRunParams =
264
269
| AIRunParams . Messages
265
270
| AIRunParams . Translation
266
271
| AIRunParams . Summarization
267
- | AIRunParams . ImageToText ;
272
+ | AIRunParams . ImageToText
273
+ | AIRunParams . Variant12
274
+ | AIRunParams . Variant13 ;
268
275
269
276
export declare namespace AIRunParams {
270
277
export interface TextClassification {
@@ -355,7 +362,7 @@ export declare namespace AIRunParams {
355
362
account_id : string ;
356
363
357
364
/**
358
- * Body param: A text description of the image you want to generate
365
+ * Body param: A text description of the audio you want to generate
359
366
*/
360
367
prompt : string ;
361
368
@@ -549,6 +556,12 @@ export declare namespace AIRunParams {
549
556
*/
550
557
presence_penalty ?: number ;
551
558
559
+ /**
560
+ * Body param: If true, a chat template is not applied and you must adhere to the
561
+ * specific model's expected formatting.
562
+ */
563
+ raw ?: boolean ;
564
+
552
565
/**
553
566
* Body param: Penalty for repeated tokens; higher values discourage repetition.
554
567
*/
@@ -565,7 +578,8 @@ export declare namespace AIRunParams {
565
578
seed ?: number ;
566
579
567
580
/**
568
- * Body param: If true, the response will be streamed back incrementally.
581
+ * Body param: If true, the response will be streamed back incrementally using SSE,
582
+ * Server Sent Events.
569
583
*/
570
584
stream ?: boolean ;
571
585
@@ -588,7 +602,7 @@ export declare namespace AIRunParams {
588
602
top_k ?: number ;
589
603
590
604
/**
591
- * Body param: Controls the creativity of the AI's responses by adjusting how many
605
+ * Body param: Adjusts the creativity of the AI's responses by controlling how many
592
606
* possible words it considers. Lower values make outputs more predictable; higher
593
607
* values allow for more varied and creative responses.
594
608
*/
@@ -854,6 +868,158 @@ export declare namespace AIRunParams {
854
868
*/
855
869
top_p ?: number ;
856
870
}
871
+
872
+ export interface Variant12 {
873
+ /**
874
+ * Path param:
875
+ */
876
+ account_id : string ;
877
+
878
+ /**
879
+ * Body param: Image in base64 encoded format.
880
+ */
881
+ image : string ;
882
+
883
+ /**
884
+ * Body param: The input text prompt for the model to generate a response.
885
+ */
886
+ prompt : string ;
887
+
888
+ /**
889
+ * Body param: Decreases the likelihood of the model repeating the same lines
890
+ * verbatim.
891
+ */
892
+ frequency_penalty ?: number ;
893
+
894
+ /**
895
+ * Body param: Whether to ignore the EOS token and continue generating tokens after
896
+ * the EOS token is generated.
897
+ */
898
+ ignore_eos ?: boolean ;
899
+
900
+ /**
901
+ * Body param: The maximum number of tokens to generate in the response.
902
+ */
903
+ max_tokens ?: number ;
904
+
905
+ /**
906
+ * Body param: Increases the likelihood of the model introducing new topics.
907
+ */
908
+ presence_penalty ?: number ;
909
+
910
+ /**
911
+ * Body param: Penalty for repeated tokens; higher values discourage repetition.
912
+ */
913
+ repetition_penalty ?: number ;
914
+
915
+ /**
916
+ * Body param: Random seed for reproducibility of the generation.
917
+ */
918
+ seed ?: number ;
919
+
920
+ /**
921
+ * Body param: Controls the randomness of the output; higher values produce more
922
+ * random results.
923
+ */
924
+ temperature ?: number ;
925
+
926
+ /**
927
+ * Body param: Limits the AI to choose from the top 'k' most probable words. Lower
928
+ * values make responses more focused; higher values introduce more variety and
929
+ * potential surprises.
930
+ */
931
+ top_k ?: number ;
932
+
933
+ /**
934
+ * Body param: Controls the creativity of the AI's responses by adjusting how many
935
+ * possible words it considers. Lower values make outputs more predictable; higher
936
+ * values allow for more varied and creative responses.
937
+ */
938
+ top_p ?: number ;
939
+ }
940
+
941
+ export interface Variant13 {
942
+ /**
943
+ * Path param:
944
+ */
945
+ account_id : string ;
946
+
947
+ /**
948
+ * Body param: Image in base64 encoded format.
949
+ */
950
+ image : string ;
951
+
952
+ /**
953
+ * Body param: An array of message objects representing the conversation history.
954
+ */
955
+ messages : Array < Variant13 . Message > ;
956
+
957
+ /**
958
+ * Body param: Decreases the likelihood of the model repeating the same lines
959
+ * verbatim.
960
+ */
961
+ frequency_penalty ?: number ;
962
+
963
+ /**
964
+ * Body param: Whether to ignore the EOS token and continue generating tokens after
965
+ * the EOS token is generated.
966
+ */
967
+ ignore_eos ?: boolean ;
968
+
969
+ /**
970
+ * Body param: The maximum number of tokens to generate in the response.
971
+ */
972
+ max_tokens ?: number ;
973
+
974
+ /**
975
+ * Body param: Increases the likelihood of the model introducing new topics.
976
+ */
977
+ presence_penalty ?: number ;
978
+
979
+ /**
980
+ * Body param: Penalty for repeated tokens; higher values discourage repetition.
981
+ */
982
+ repetition_penalty ?: number ;
983
+
984
+ /**
985
+ * Body param: Random seed for reproducibility of the generation.
986
+ */
987
+ seed ?: number ;
988
+
989
+ /**
990
+ * Body param: Controls the randomness of the output; higher values produce more
991
+ * random results.
992
+ */
993
+ temperature ?: number ;
994
+
995
+ /**
996
+ * Body param: Limits the AI to choose from the top 'k' most probable words. Lower
997
+ * values make responses more focused; higher values introduce more variety and
998
+ * potential surprises.
999
+ */
1000
+ top_k ?: number ;
1001
+
1002
+ /**
1003
+ * Body param: Controls the creativity of the AI's responses by adjusting how many
1004
+ * possible words it considers. Lower values make outputs more predictable; higher
1005
+ * values allow for more varied and creative responses.
1006
+ */
1007
+ top_p ?: number ;
1008
+ }
1009
+
1010
+ export namespace Variant13 {
1011
+ export interface Message {
1012
+ /**
1013
+ * The content of the message as a string.
1014
+ */
1015
+ content : string ;
1016
+
1017
+ /**
1018
+ * The role of the message sender (e.g., 'user', 'assistant', 'system', 'tool').
1019
+ */
1020
+ role : string ;
1021
+ }
1022
+ }
857
1023
}
858
1024
859
1025
AI . Finetunes = Finetunes ;
0 commit comments