@ax-llm/ax 11.0.4 → 11.0.6
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 +2 -2
- package/index.cjs.map +1 -1
- package/index.d.cts +1 -1
- package/index.d.ts +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -529,7 +529,7 @@ interface AxAIAnthropicArgs {
|
|
|
529
529
|
region?: string;
|
|
530
530
|
config?: Readonly<Partial<AxAIAnthropicConfig>>;
|
|
531
531
|
options?: Readonly<AxAIServiceOptions>;
|
|
532
|
-
models?: AxAIModelList<AxAIAnthropicModel>;
|
|
532
|
+
models?: AxAIModelList<AxAIAnthropicModel | AxAIAnthropicVertexModel>;
|
|
533
533
|
}
|
|
534
534
|
declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicModel | AxAIAnthropicVertexModel, unknown, AxAIAnthropicChatRequest, unknown, AxAIAnthropicChatResponse, AxAIAnthropicChatResponseDelta, unknown> {
|
|
535
535
|
constructor({ apiKey, projectId, region, config, options, models, }: Readonly<Omit<AxAIAnthropicArgs, 'name'>>);
|
package/index.d.ts
CHANGED
|
@@ -529,7 +529,7 @@ interface AxAIAnthropicArgs {
|
|
|
529
529
|
region?: string;
|
|
530
530
|
config?: Readonly<Partial<AxAIAnthropicConfig>>;
|
|
531
531
|
options?: Readonly<AxAIServiceOptions>;
|
|
532
|
-
models?: AxAIModelList<AxAIAnthropicModel>;
|
|
532
|
+
models?: AxAIModelList<AxAIAnthropicModel | AxAIAnthropicVertexModel>;
|
|
533
533
|
}
|
|
534
534
|
declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicModel | AxAIAnthropicVertexModel, unknown, AxAIAnthropicChatRequest, unknown, AxAIAnthropicChatResponse, AxAIAnthropicChatResponseDelta, unknown> {
|
|
535
535
|
constructor({ apiKey, projectId, region, config, options, models, }: Readonly<Omit<AxAIAnthropicArgs, 'name'>>);
|
package/index.js
CHANGED
|
@@ -5817,8 +5817,8 @@ var AxGen = class extends AxProgramWithSignature {
|
|
|
5817
5817
|
}) {
|
|
5818
5818
|
const values = {};
|
|
5819
5819
|
let results = res.results ?? [];
|
|
5820
|
-
if (
|
|
5821
|
-
results =
|
|
5820
|
+
if (results.length > 1) {
|
|
5821
|
+
results = results.filter((r) => r.functionCalls);
|
|
5822
5822
|
}
|
|
5823
5823
|
for (const result of results) {
|
|
5824
5824
|
if (res.modelUsage) {
|