@ax-llm/ax 11.0.48 → 11.0.49
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/index.cjs +158 -78
- package/index.cjs.map +1 -1
- package/index.d.cts +18 -12
- package/index.d.ts +18 -12
- package/index.js +158 -78
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -799,8 +799,9 @@ declare const axAIOpenAIDefaultConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, A
|
|
|
799
799
|
declare const axAIOpenAIBestConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;
|
|
800
800
|
declare const axAIOpenAICreativeConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;
|
|
801
801
|
declare const axAIOpenAIFastConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;
|
|
802
|
-
interface AxAIOpenAIArgs<TName = 'openai', TModel = AxAIOpenAIModel, TEmbedModel = AxAIOpenAIEmbedModel, TChatReq extends AxAIOpenAIChatRequest<TModel> = AxAIOpenAIChatRequest<TModel>> extends Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq>, 'config' | 'modelInfo'> {
|
|
802
|
+
interface AxAIOpenAIArgs<TName = 'openai', TModel = AxAIOpenAIModel, TEmbedModel = AxAIOpenAIEmbedModel, TChatReq extends AxAIOpenAIChatRequest<TModel> = AxAIOpenAIChatRequest<TModel>> extends Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq>, 'config' | 'supportFor' | 'modelInfo'> {
|
|
803
803
|
name: TName;
|
|
804
|
+
modelInfo?: AxModelInfo[];
|
|
804
805
|
config?: Partial<AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq>['config']>;
|
|
805
806
|
}
|
|
806
807
|
type ChatReqUpdater<TModel, TChatReq extends AxAIOpenAIChatRequest<TModel>> = (req: Readonly<TChatReq>) => TChatReq;
|
|
@@ -814,13 +815,13 @@ interface AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq extends AxAIOpenAICha
|
|
|
814
815
|
modelInfo: Readonly<AxModelInfo[]>;
|
|
815
816
|
models?: AxAIInputModelList<TModel, TEmbedModel>;
|
|
816
817
|
chatReqUpdater?: ChatReqUpdater<TModel, TChatReq>;
|
|
817
|
-
supportFor
|
|
818
|
+
supportFor: AxAIFeatures | ((model: TModel) => AxAIFeatures);
|
|
818
819
|
}
|
|
819
820
|
declare class AxAIOpenAIBase<TModel, TEmbedModel, TChatReq extends AxAIOpenAIChatRequest<TModel> = AxAIOpenAIChatRequest<TModel>> extends AxBaseAI<TModel, TEmbedModel, AxAIOpenAIChatRequest<TModel>, AxAIOpenAIEmbedRequest<TEmbedModel>, AxAIOpenAIChatResponse, AxAIOpenAIChatResponseDelta, AxAIOpenAIEmbedResponse> {
|
|
820
821
|
constructor({ apiKey, config, options, apiURL, modelInfo, models, chatReqUpdater, supportFor, }: Readonly<Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq>, 'name'>>);
|
|
821
822
|
}
|
|
822
823
|
declare class AxAIOpenAI extends AxAIOpenAIBase<AxAIOpenAIModel, AxAIOpenAIEmbedModel> {
|
|
823
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIOpenAIArgs, 'name'
|
|
824
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIOpenAIArgs, 'name'>>);
|
|
824
825
|
}
|
|
825
826
|
|
|
826
827
|
declare const axAIAzureOpenAIDefaultConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;
|
|
@@ -834,7 +835,7 @@ type AxAIAzureOpenAIArgs = AxAIOpenAIArgs<'azure-openai', AxAIOpenAIModel, AxAIO
|
|
|
834
835
|
version?: string;
|
|
835
836
|
};
|
|
836
837
|
declare class AxAIAzureOpenAI extends AxAIOpenAIBase<AxAIOpenAIModel, AxAIOpenAIEmbedModel> {
|
|
837
|
-
constructor({ apiKey, resourceName, deploymentName, version, config, options, models, }: Readonly<Omit<AxAIAzureOpenAIArgs, 'name'
|
|
838
|
+
constructor({ apiKey, resourceName, deploymentName, version, config, options, models, modelInfo, }: Readonly<Omit<AxAIAzureOpenAIArgs, 'name'>>);
|
|
838
839
|
}
|
|
839
840
|
|
|
840
841
|
/**
|
|
@@ -954,7 +955,8 @@ declare class AxAICohere extends AxBaseAI<AxAICohereModel, AxAICohereEmbedModel,
|
|
|
954
955
|
*/
|
|
955
956
|
declare enum AxAIDeepSeekModel {
|
|
956
957
|
DeepSeekChat = "deepseek-chat",
|
|
957
|
-
DeepSeekCoder = "deepseek-coder"
|
|
958
|
+
DeepSeekCoder = "deepseek-coder",
|
|
959
|
+
DeepSeekReasoner = "deepseek-reasoner"
|
|
958
960
|
}
|
|
959
961
|
|
|
960
962
|
type DeepSeekConfig = AxAIOpenAIConfig<AxAIDeepSeekModel, undefined>;
|
|
@@ -962,7 +964,7 @@ declare const axAIDeepSeekDefaultConfig: () => DeepSeekConfig;
|
|
|
962
964
|
declare const axAIDeepSeekCodeConfig: () => DeepSeekConfig;
|
|
963
965
|
type AxAIDeepSeekArgs = AxAIOpenAIArgs<'deepseek', AxAIDeepSeekModel, undefined>;
|
|
964
966
|
declare class AxAIDeepSeek extends AxAIOpenAIBase<AxAIDeepSeekModel, undefined> {
|
|
965
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIDeepSeekArgs, 'name'>>);
|
|
967
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIDeepSeekArgs, 'name'>>);
|
|
966
968
|
}
|
|
967
969
|
|
|
968
970
|
declare enum AxAIGoogleGeminiModel {
|
|
@@ -970,7 +972,6 @@ declare enum AxAIGoogleGeminiModel {
|
|
|
970
972
|
Gemini25Flash = "gemini-2.5-flash-preview-04-17",
|
|
971
973
|
Gemini20Flash = "gemini-2.0-flash",
|
|
972
974
|
Gemini20FlashLite = "gemini-2.0-flash-lite-preview-02-05",
|
|
973
|
-
Gemini20FlashThinking = "gemini-2.0-flash-thinking-exp-01-21",
|
|
974
975
|
Gemini1Pro = "gemini-1.0-pro",
|
|
975
976
|
Gemini15Flash = "gemini-1.5-flash",
|
|
976
977
|
Gemini15Flash002 = "gemini-1.5-flash-002",
|
|
@@ -1056,6 +1057,7 @@ type AxAIGoogleGeminiTool = {
|
|
|
1056
1057
|
function_declarations?: AxAIGoogleGeminiToolFunctionDeclaration[];
|
|
1057
1058
|
code_execution?: object;
|
|
1058
1059
|
google_search_retrieval?: AxAIGoogleGeminiToolGoogleSearchRetrieval;
|
|
1060
|
+
google_search?: object;
|
|
1059
1061
|
url_context?: object;
|
|
1060
1062
|
};
|
|
1061
1063
|
type AxAIGoogleGeminiToolConfig = {
|
|
@@ -1202,12 +1204,13 @@ interface AxAIGoogleGeminiArgs {
|
|
|
1202
1204
|
config?: Readonly<Partial<AxAIGoogleGeminiConfig>>;
|
|
1203
1205
|
options?: Readonly<AxAIServiceOptions & AxAIGoogleGeminiOptionsTools>;
|
|
1204
1206
|
models?: AxAIInputModelList<AxAIGoogleGeminiModel, AxAIGoogleGeminiEmbedModel>;
|
|
1207
|
+
modelInfo?: AxModelInfo[];
|
|
1205
1208
|
}
|
|
1206
1209
|
/**
|
|
1207
1210
|
* AxAIGoogleGemini: AI Service
|
|
1208
1211
|
*/
|
|
1209
1212
|
declare class AxAIGoogleGemini extends AxBaseAI<AxAIGoogleGeminiModel, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiChatRequest, AxAIGoogleGeminiBatchEmbedRequest | AxAIGoogleVertexBatchEmbedRequest, AxAIGoogleGeminiChatResponse, AxAIGoogleGeminiChatResponseDelta, AxAIGoogleGeminiBatchEmbedResponse | AxAIGoogleVertexBatchEmbedResponse> {
|
|
1210
|
-
constructor({ apiKey, projectId, region, endpointId, config, options, models, }: Readonly<Omit<AxAIGoogleGeminiArgs, 'name'>>);
|
|
1213
|
+
constructor({ apiKey, projectId, region, endpointId, config, options, models, modelInfo, }: Readonly<Omit<AxAIGoogleGeminiArgs, 'name'>>);
|
|
1211
1214
|
}
|
|
1212
1215
|
|
|
1213
1216
|
declare enum AxAIGroqModel {
|
|
@@ -1221,9 +1224,10 @@ type AxAIGroqArgs = AxAIOpenAIArgs<'groq', AxAIGroqModel, undefined> & {
|
|
|
1221
1224
|
options?: Readonly<AxAIServiceOptions> & {
|
|
1222
1225
|
tokensPerMinute?: number;
|
|
1223
1226
|
};
|
|
1227
|
+
modelInfo?: AxModelInfo[];
|
|
1224
1228
|
};
|
|
1225
1229
|
declare class AxAIGroq extends AxAIOpenAIBase<AxAIGroqModel, undefined> {
|
|
1226
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIGroqArgs, 'name'>>);
|
|
1230
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIGroqArgs, 'name'>>);
|
|
1227
1231
|
setOptions: (options: Readonly<AxAIServiceOptions>) => void;
|
|
1228
1232
|
private newRateLimiter;
|
|
1229
1233
|
}
|
|
@@ -1296,9 +1300,10 @@ type AxAIMistralArgs = AxAIOpenAIArgs<'mistral', AxAIMistralModel, AxAIMistralEm
|
|
|
1296
1300
|
options?: Readonly<AxAIServiceOptions> & {
|
|
1297
1301
|
tokensPerMinute?: number;
|
|
1298
1302
|
};
|
|
1303
|
+
modelInfo?: AxModelInfo[];
|
|
1299
1304
|
};
|
|
1300
1305
|
declare class AxAIMistral extends AxAIOpenAIBase<AxAIMistralModel, AxAIMistralEmbedModels> {
|
|
1301
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIMistralArgs, 'name'>>);
|
|
1306
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIMistralArgs, 'name'>>);
|
|
1302
1307
|
}
|
|
1303
1308
|
|
|
1304
1309
|
type AxAIOllamaAIConfig = AxAIOpenAIConfig<string, string>;
|
|
@@ -1406,7 +1411,7 @@ type TogetherAIConfig = AxAIOpenAIConfig<string, unknown>;
|
|
|
1406
1411
|
declare const axAITogetherDefaultConfig: () => TogetherAIConfig;
|
|
1407
1412
|
type AxAITogetherArgs = AxAIOpenAIArgs<'together', string, unknown>;
|
|
1408
1413
|
declare class AxAITogether extends AxAIOpenAIBase<string, unknown> {
|
|
1409
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAITogetherArgs, 'name'>>);
|
|
1414
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAITogetherArgs, 'name'>>);
|
|
1410
1415
|
}
|
|
1411
1416
|
|
|
1412
1417
|
type AxAIArgs = AxAIOpenAIArgs | AxAIAzureOpenAIArgs | AxAITogetherArgs | AxAIAnthropicArgs | AxAIGroqArgs | AxAIGoogleGeminiArgs | AxAICohereArgs | AxAIHuggingFaceArgs | AxAIMistralArgs | AxAIDeepSeekArgs | AxAIOllamaArgs | AxAIRekaArgs;
|
|
@@ -1448,9 +1453,10 @@ type AxAIGrokArgs = AxAIOpenAIArgs<'grok', AxAIGrokModel, AxAIGrokEmbedModels> &
|
|
|
1448
1453
|
options?: Readonly<AxAIServiceOptions> & {
|
|
1449
1454
|
tokensPerMinute?: number;
|
|
1450
1455
|
};
|
|
1456
|
+
modelInfo?: AxModelInfo[];
|
|
1451
1457
|
};
|
|
1452
1458
|
declare class AxAIGrok extends AxAIOpenAIBase<AxAIGrokModel, AxAIGrokEmbedModels> {
|
|
1453
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIGrokArgs, 'name'>>);
|
|
1459
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIGrokArgs, 'name'>>);
|
|
1454
1460
|
}
|
|
1455
1461
|
|
|
1456
1462
|
interface AxAIMemory {
|
package/index.d.ts
CHANGED
|
@@ -799,8 +799,9 @@ declare const axAIOpenAIDefaultConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, A
|
|
|
799
799
|
declare const axAIOpenAIBestConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;
|
|
800
800
|
declare const axAIOpenAICreativeConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;
|
|
801
801
|
declare const axAIOpenAIFastConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;
|
|
802
|
-
interface AxAIOpenAIArgs<TName = 'openai', TModel = AxAIOpenAIModel, TEmbedModel = AxAIOpenAIEmbedModel, TChatReq extends AxAIOpenAIChatRequest<TModel> = AxAIOpenAIChatRequest<TModel>> extends Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq>, 'config' | 'modelInfo'> {
|
|
802
|
+
interface AxAIOpenAIArgs<TName = 'openai', TModel = AxAIOpenAIModel, TEmbedModel = AxAIOpenAIEmbedModel, TChatReq extends AxAIOpenAIChatRequest<TModel> = AxAIOpenAIChatRequest<TModel>> extends Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq>, 'config' | 'supportFor' | 'modelInfo'> {
|
|
803
803
|
name: TName;
|
|
804
|
+
modelInfo?: AxModelInfo[];
|
|
804
805
|
config?: Partial<AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq>['config']>;
|
|
805
806
|
}
|
|
806
807
|
type ChatReqUpdater<TModel, TChatReq extends AxAIOpenAIChatRequest<TModel>> = (req: Readonly<TChatReq>) => TChatReq;
|
|
@@ -814,13 +815,13 @@ interface AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq extends AxAIOpenAICha
|
|
|
814
815
|
modelInfo: Readonly<AxModelInfo[]>;
|
|
815
816
|
models?: AxAIInputModelList<TModel, TEmbedModel>;
|
|
816
817
|
chatReqUpdater?: ChatReqUpdater<TModel, TChatReq>;
|
|
817
|
-
supportFor
|
|
818
|
+
supportFor: AxAIFeatures | ((model: TModel) => AxAIFeatures);
|
|
818
819
|
}
|
|
819
820
|
declare class AxAIOpenAIBase<TModel, TEmbedModel, TChatReq extends AxAIOpenAIChatRequest<TModel> = AxAIOpenAIChatRequest<TModel>> extends AxBaseAI<TModel, TEmbedModel, AxAIOpenAIChatRequest<TModel>, AxAIOpenAIEmbedRequest<TEmbedModel>, AxAIOpenAIChatResponse, AxAIOpenAIChatResponseDelta, AxAIOpenAIEmbedResponse> {
|
|
820
821
|
constructor({ apiKey, config, options, apiURL, modelInfo, models, chatReqUpdater, supportFor, }: Readonly<Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel, TChatReq>, 'name'>>);
|
|
821
822
|
}
|
|
822
823
|
declare class AxAIOpenAI extends AxAIOpenAIBase<AxAIOpenAIModel, AxAIOpenAIEmbedModel> {
|
|
823
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIOpenAIArgs, 'name'
|
|
824
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIOpenAIArgs, 'name'>>);
|
|
824
825
|
}
|
|
825
826
|
|
|
826
827
|
declare const axAIAzureOpenAIDefaultConfig: () => AxAIOpenAIConfig<AxAIOpenAIModel, AxAIOpenAIEmbedModel>;
|
|
@@ -834,7 +835,7 @@ type AxAIAzureOpenAIArgs = AxAIOpenAIArgs<'azure-openai', AxAIOpenAIModel, AxAIO
|
|
|
834
835
|
version?: string;
|
|
835
836
|
};
|
|
836
837
|
declare class AxAIAzureOpenAI extends AxAIOpenAIBase<AxAIOpenAIModel, AxAIOpenAIEmbedModel> {
|
|
837
|
-
constructor({ apiKey, resourceName, deploymentName, version, config, options, models, }: Readonly<Omit<AxAIAzureOpenAIArgs, 'name'
|
|
838
|
+
constructor({ apiKey, resourceName, deploymentName, version, config, options, models, modelInfo, }: Readonly<Omit<AxAIAzureOpenAIArgs, 'name'>>);
|
|
838
839
|
}
|
|
839
840
|
|
|
840
841
|
/**
|
|
@@ -954,7 +955,8 @@ declare class AxAICohere extends AxBaseAI<AxAICohereModel, AxAICohereEmbedModel,
|
|
|
954
955
|
*/
|
|
955
956
|
declare enum AxAIDeepSeekModel {
|
|
956
957
|
DeepSeekChat = "deepseek-chat",
|
|
957
|
-
DeepSeekCoder = "deepseek-coder"
|
|
958
|
+
DeepSeekCoder = "deepseek-coder",
|
|
959
|
+
DeepSeekReasoner = "deepseek-reasoner"
|
|
958
960
|
}
|
|
959
961
|
|
|
960
962
|
type DeepSeekConfig = AxAIOpenAIConfig<AxAIDeepSeekModel, undefined>;
|
|
@@ -962,7 +964,7 @@ declare const axAIDeepSeekDefaultConfig: () => DeepSeekConfig;
|
|
|
962
964
|
declare const axAIDeepSeekCodeConfig: () => DeepSeekConfig;
|
|
963
965
|
type AxAIDeepSeekArgs = AxAIOpenAIArgs<'deepseek', AxAIDeepSeekModel, undefined>;
|
|
964
966
|
declare class AxAIDeepSeek extends AxAIOpenAIBase<AxAIDeepSeekModel, undefined> {
|
|
965
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIDeepSeekArgs, 'name'>>);
|
|
967
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIDeepSeekArgs, 'name'>>);
|
|
966
968
|
}
|
|
967
969
|
|
|
968
970
|
declare enum AxAIGoogleGeminiModel {
|
|
@@ -970,7 +972,6 @@ declare enum AxAIGoogleGeminiModel {
|
|
|
970
972
|
Gemini25Flash = "gemini-2.5-flash-preview-04-17",
|
|
971
973
|
Gemini20Flash = "gemini-2.0-flash",
|
|
972
974
|
Gemini20FlashLite = "gemini-2.0-flash-lite-preview-02-05",
|
|
973
|
-
Gemini20FlashThinking = "gemini-2.0-flash-thinking-exp-01-21",
|
|
974
975
|
Gemini1Pro = "gemini-1.0-pro",
|
|
975
976
|
Gemini15Flash = "gemini-1.5-flash",
|
|
976
977
|
Gemini15Flash002 = "gemini-1.5-flash-002",
|
|
@@ -1056,6 +1057,7 @@ type AxAIGoogleGeminiTool = {
|
|
|
1056
1057
|
function_declarations?: AxAIGoogleGeminiToolFunctionDeclaration[];
|
|
1057
1058
|
code_execution?: object;
|
|
1058
1059
|
google_search_retrieval?: AxAIGoogleGeminiToolGoogleSearchRetrieval;
|
|
1060
|
+
google_search?: object;
|
|
1059
1061
|
url_context?: object;
|
|
1060
1062
|
};
|
|
1061
1063
|
type AxAIGoogleGeminiToolConfig = {
|
|
@@ -1202,12 +1204,13 @@ interface AxAIGoogleGeminiArgs {
|
|
|
1202
1204
|
config?: Readonly<Partial<AxAIGoogleGeminiConfig>>;
|
|
1203
1205
|
options?: Readonly<AxAIServiceOptions & AxAIGoogleGeminiOptionsTools>;
|
|
1204
1206
|
models?: AxAIInputModelList<AxAIGoogleGeminiModel, AxAIGoogleGeminiEmbedModel>;
|
|
1207
|
+
modelInfo?: AxModelInfo[];
|
|
1205
1208
|
}
|
|
1206
1209
|
/**
|
|
1207
1210
|
* AxAIGoogleGemini: AI Service
|
|
1208
1211
|
*/
|
|
1209
1212
|
declare class AxAIGoogleGemini extends AxBaseAI<AxAIGoogleGeminiModel, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiChatRequest, AxAIGoogleGeminiBatchEmbedRequest | AxAIGoogleVertexBatchEmbedRequest, AxAIGoogleGeminiChatResponse, AxAIGoogleGeminiChatResponseDelta, AxAIGoogleGeminiBatchEmbedResponse | AxAIGoogleVertexBatchEmbedResponse> {
|
|
1210
|
-
constructor({ apiKey, projectId, region, endpointId, config, options, models, }: Readonly<Omit<AxAIGoogleGeminiArgs, 'name'>>);
|
|
1213
|
+
constructor({ apiKey, projectId, region, endpointId, config, options, models, modelInfo, }: Readonly<Omit<AxAIGoogleGeminiArgs, 'name'>>);
|
|
1211
1214
|
}
|
|
1212
1215
|
|
|
1213
1216
|
declare enum AxAIGroqModel {
|
|
@@ -1221,9 +1224,10 @@ type AxAIGroqArgs = AxAIOpenAIArgs<'groq', AxAIGroqModel, undefined> & {
|
|
|
1221
1224
|
options?: Readonly<AxAIServiceOptions> & {
|
|
1222
1225
|
tokensPerMinute?: number;
|
|
1223
1226
|
};
|
|
1227
|
+
modelInfo?: AxModelInfo[];
|
|
1224
1228
|
};
|
|
1225
1229
|
declare class AxAIGroq extends AxAIOpenAIBase<AxAIGroqModel, undefined> {
|
|
1226
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIGroqArgs, 'name'>>);
|
|
1230
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIGroqArgs, 'name'>>);
|
|
1227
1231
|
setOptions: (options: Readonly<AxAIServiceOptions>) => void;
|
|
1228
1232
|
private newRateLimiter;
|
|
1229
1233
|
}
|
|
@@ -1296,9 +1300,10 @@ type AxAIMistralArgs = AxAIOpenAIArgs<'mistral', AxAIMistralModel, AxAIMistralEm
|
|
|
1296
1300
|
options?: Readonly<AxAIServiceOptions> & {
|
|
1297
1301
|
tokensPerMinute?: number;
|
|
1298
1302
|
};
|
|
1303
|
+
modelInfo?: AxModelInfo[];
|
|
1299
1304
|
};
|
|
1300
1305
|
declare class AxAIMistral extends AxAIOpenAIBase<AxAIMistralModel, AxAIMistralEmbedModels> {
|
|
1301
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIMistralArgs, 'name'>>);
|
|
1306
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIMistralArgs, 'name'>>);
|
|
1302
1307
|
}
|
|
1303
1308
|
|
|
1304
1309
|
type AxAIOllamaAIConfig = AxAIOpenAIConfig<string, string>;
|
|
@@ -1406,7 +1411,7 @@ type TogetherAIConfig = AxAIOpenAIConfig<string, unknown>;
|
|
|
1406
1411
|
declare const axAITogetherDefaultConfig: () => TogetherAIConfig;
|
|
1407
1412
|
type AxAITogetherArgs = AxAIOpenAIArgs<'together', string, unknown>;
|
|
1408
1413
|
declare class AxAITogether extends AxAIOpenAIBase<string, unknown> {
|
|
1409
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAITogetherArgs, 'name'>>);
|
|
1414
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAITogetherArgs, 'name'>>);
|
|
1410
1415
|
}
|
|
1411
1416
|
|
|
1412
1417
|
type AxAIArgs = AxAIOpenAIArgs | AxAIAzureOpenAIArgs | AxAITogetherArgs | AxAIAnthropicArgs | AxAIGroqArgs | AxAIGoogleGeminiArgs | AxAICohereArgs | AxAIHuggingFaceArgs | AxAIMistralArgs | AxAIDeepSeekArgs | AxAIOllamaArgs | AxAIRekaArgs;
|
|
@@ -1448,9 +1453,10 @@ type AxAIGrokArgs = AxAIOpenAIArgs<'grok', AxAIGrokModel, AxAIGrokEmbedModels> &
|
|
|
1448
1453
|
options?: Readonly<AxAIServiceOptions> & {
|
|
1449
1454
|
tokensPerMinute?: number;
|
|
1450
1455
|
};
|
|
1456
|
+
modelInfo?: AxModelInfo[];
|
|
1451
1457
|
};
|
|
1452
1458
|
declare class AxAIGrok extends AxAIOpenAIBase<AxAIGrokModel, AxAIGrokEmbedModels> {
|
|
1453
|
-
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIGrokArgs, 'name'>>);
|
|
1459
|
+
constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIGrokArgs, 'name'>>);
|
|
1454
1460
|
}
|
|
1455
1461
|
|
|
1456
1462
|
interface AxAIMemory {
|