beeai-framework 0.1.13 → 0.1.14
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/dist/adapters/amazon-bedrock/backend/chat.d.cts +2 -2
- package/dist/adapters/amazon-bedrock/backend/chat.d.ts +2 -2
- package/dist/adapters/amazon-bedrock/backend/client.cjs +3 -1
- package/dist/adapters/amazon-bedrock/backend/client.cjs.map +1 -1
- package/dist/adapters/amazon-bedrock/backend/client.js +3 -1
- package/dist/adapters/amazon-bedrock/backend/client.js.map +1 -1
- package/dist/adapters/amazon-bedrock/backend/embedding.d.cts +2 -2
- package/dist/adapters/amazon-bedrock/backend/embedding.d.ts +2 -2
- package/dist/adapters/anthropic/backend/chat.d.cts +2 -2
- package/dist/adapters/anthropic/backend/chat.d.ts +2 -2
- package/dist/adapters/anthropic/backend/client.cjs +3 -1
- package/dist/adapters/anthropic/backend/client.cjs.map +1 -1
- package/dist/adapters/anthropic/backend/client.js +3 -1
- package/dist/adapters/anthropic/backend/client.js.map +1 -1
- package/dist/adapters/anthropic/backend/embedding.d.cts +2 -2
- package/dist/adapters/anthropic/backend/embedding.d.ts +2 -2
- package/dist/adapters/azure-openai/backend/chat.d.cts +2 -2
- package/dist/adapters/azure-openai/backend/chat.d.ts +2 -2
- package/dist/adapters/azure-openai/backend/client.cjs +3 -1
- package/dist/adapters/azure-openai/backend/client.cjs.map +1 -1
- package/dist/adapters/azure-openai/backend/client.js +3 -1
- package/dist/adapters/azure-openai/backend/client.js.map +1 -1
- package/dist/adapters/azure-openai/backend/embedding.d.cts +2 -2
- package/dist/adapters/azure-openai/backend/embedding.d.ts +2 -2
- package/dist/adapters/dummy/backend/chat.d.cts +2 -2
- package/dist/adapters/dummy/backend/chat.d.ts +2 -2
- package/dist/adapters/dummy/backend/embedding.d.cts +2 -2
- package/dist/adapters/dummy/backend/embedding.d.ts +2 -2
- package/dist/adapters/google-vertex/backend/chat.d.cts +2 -2
- package/dist/adapters/google-vertex/backend/chat.d.ts +2 -2
- package/dist/adapters/google-vertex/backend/client.cjs +3 -1
- package/dist/adapters/google-vertex/backend/client.cjs.map +1 -1
- package/dist/adapters/google-vertex/backend/client.js +3 -1
- package/dist/adapters/google-vertex/backend/client.js.map +1 -1
- package/dist/adapters/google-vertex/backend/embedding.d.cts +2 -2
- package/dist/adapters/google-vertex/backend/embedding.d.ts +2 -2
- package/dist/adapters/groq/backend/chat.d.cts +2 -2
- package/dist/adapters/groq/backend/chat.d.ts +2 -2
- package/dist/adapters/groq/backend/client.cjs +3 -1
- package/dist/adapters/groq/backend/client.cjs.map +1 -1
- package/dist/adapters/groq/backend/client.js +3 -1
- package/dist/adapters/groq/backend/client.js.map +1 -1
- package/dist/adapters/groq/backend/embedding.d.cts +2 -2
- package/dist/adapters/groq/backend/embedding.d.ts +2 -2
- package/dist/adapters/langchain/backend/chat.d.cts +2 -2
- package/dist/adapters/langchain/backend/chat.d.ts +2 -2
- package/dist/adapters/langchain/backend/embedding.d.cts +2 -2
- package/dist/adapters/langchain/backend/embedding.d.ts +2 -2
- package/dist/adapters/langchain/tools.d.cts +1 -1
- package/dist/adapters/langchain/tools.d.ts +1 -1
- package/dist/adapters/ollama/backend/chat.d.cts +2 -2
- package/dist/adapters/ollama/backend/chat.d.ts +2 -2
- package/dist/adapters/ollama/backend/client.cjs +3 -1
- package/dist/adapters/ollama/backend/client.cjs.map +1 -1
- package/dist/adapters/ollama/backend/client.js +3 -1
- package/dist/adapters/ollama/backend/client.js.map +1 -1
- package/dist/adapters/ollama/backend/embedding.d.cts +2 -2
- package/dist/adapters/ollama/backend/embedding.d.ts +2 -2
- package/dist/adapters/openai/backend/chat.d.cts +2 -2
- package/dist/adapters/openai/backend/chat.d.ts +2 -2
- package/dist/adapters/openai/backend/client.cjs +3 -1
- package/dist/adapters/openai/backend/client.cjs.map +1 -1
- package/dist/adapters/openai/backend/client.js +3 -1
- package/dist/adapters/openai/backend/client.js.map +1 -1
- package/dist/adapters/openai/backend/embedding.d.cts +2 -2
- package/dist/adapters/openai/backend/embedding.d.ts +2 -2
- package/dist/adapters/vercel/backend/chat.cjs +7 -3
- package/dist/adapters/vercel/backend/chat.cjs.map +1 -1
- package/dist/adapters/vercel/backend/chat.d.cts +2 -2
- package/dist/adapters/vercel/backend/chat.d.ts +2 -2
- package/dist/adapters/vercel/backend/chat.js +8 -4
- package/dist/adapters/vercel/backend/chat.js.map +1 -1
- package/dist/adapters/vercel/backend/embedding.d.cts +2 -2
- package/dist/adapters/vercel/backend/embedding.d.ts +2 -2
- package/dist/adapters/vercel/backend/utils.cjs +82 -0
- package/dist/adapters/vercel/backend/utils.cjs.map +1 -0
- package/dist/adapters/vercel/backend/utils.d.cts +30 -0
- package/dist/adapters/vercel/backend/utils.d.ts +30 -0
- package/dist/adapters/vercel/backend/utils.js +78 -0
- package/dist/adapters/vercel/backend/utils.js.map +1 -0
- package/dist/adapters/watsonx/backend/chat.d.cts +2 -2
- package/dist/adapters/watsonx/backend/chat.d.ts +2 -2
- package/dist/adapters/watsonx/backend/embedding.d.cts +2 -2
- package/dist/adapters/watsonx/backend/embedding.d.ts +2 -2
- package/dist/{agent-Cmnvjx_k.d.cts → agent-B60_2RXt.d.cts} +4 -4
- package/dist/{agent-B55OuVCj.d.ts → agent-BgLMNZbc.d.ts} +4 -4
- package/dist/agents/base.d.cts +2 -2
- package/dist/agents/base.d.ts +2 -2
- package/dist/agents/experimental/remote/agent.d.cts +2 -2
- package/dist/agents/experimental/remote/agent.d.ts +2 -2
- package/dist/agents/experimental/replan/agent.d.cts +3 -3
- package/dist/agents/experimental/replan/agent.d.ts +3 -3
- package/dist/agents/experimental/replan/prompts.d.cts +1 -1
- package/dist/agents/experimental/replan/prompts.d.ts +1 -1
- package/dist/agents/experimental/streamlit/agent.d.cts +3 -3
- package/dist/agents/experimental/streamlit/agent.d.ts +3 -3
- package/dist/agents/react/agent.d.cts +4 -4
- package/dist/agents/react/agent.d.ts +4 -4
- package/dist/agents/react/prompts.d.cts +1 -1
- package/dist/agents/react/prompts.d.ts +1 -1
- package/dist/agents/react/runners/base.d.cts +4 -4
- package/dist/agents/react/runners/base.d.ts +4 -4
- package/dist/agents/react/runners/deep-think/prompts.d.cts +1 -1
- package/dist/agents/react/runners/deep-think/prompts.d.ts +1 -1
- package/dist/agents/react/runners/deep-think/runner.d.cts +5 -5
- package/dist/agents/react/runners/deep-think/runner.d.ts +5 -5
- package/dist/agents/react/runners/default/runner.d.cts +5 -5
- package/dist/agents/react/runners/default/runner.d.ts +5 -5
- package/dist/agents/react/runners/granite/prompts.d.cts +1 -1
- package/dist/agents/react/runners/granite/prompts.d.ts +1 -1
- package/dist/agents/react/runners/granite/runner.d.cts +5 -5
- package/dist/agents/react/runners/granite/runner.d.ts +5 -5
- package/dist/agents/react/types.d.cts +2 -2
- package/dist/agents/react/types.d.ts +2 -2
- package/dist/agents/toolCalling/agent.d.cts +3 -3
- package/dist/agents/toolCalling/agent.d.ts +3 -3
- package/dist/agents/toolCalling/types.d.cts +1 -1
- package/dist/agents/toolCalling/types.d.ts +1 -1
- package/dist/agents/types.d.cts +2 -2
- package/dist/agents/types.d.ts +2 -2
- package/dist/backend/backend.d.cts +2 -2
- package/dist/backend/backend.d.ts +2 -2
- package/dist/backend/chat.d.cts +2 -2
- package/dist/backend/chat.d.ts +2 -2
- package/dist/backend/core.d.cts +2 -2
- package/dist/backend/core.d.ts +2 -2
- package/dist/backend/embedding.d.cts +2 -2
- package/dist/backend/embedding.d.ts +2 -2
- package/dist/backend/utils.d.cts +2 -2
- package/dist/backend/utils.d.ts +2 -2
- package/dist/{base-szR2Izbt.d.cts → base-BPsHNV2O.d.cts} +1 -1
- package/dist/{base-BOCDDBvG.d.ts → base-ZnwDK6ZB.d.ts} +1 -1
- package/dist/{chat-DvMzAHj6.d.cts → chat-BvyMdWFo.d.cts} +1 -1
- package/dist/{chat-BdN8hGWn.d.ts → chat-diSK3Sui.d.ts} +1 -1
- package/dist/context.d.cts +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/emitter/emitter.d.cts +1 -1
- package/dist/emitter/emitter.d.ts +1 -1
- package/dist/emitter/types.d.cts +1 -1
- package/dist/emitter/types.d.ts +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/internals/fetcher.d.cts +1 -1
- package/dist/internals/fetcher.d.ts +1 -1
- package/dist/memory/summarizeMemory.d.cts +2 -2
- package/dist/memory/summarizeMemory.d.ts +2 -2
- package/dist/parsers/linePrefix.d.cts +1 -1
- package/dist/parsers/linePrefix.d.ts +1 -1
- package/dist/tools/arxiv.d.cts +1 -1
- package/dist/tools/arxiv.d.ts +1 -1
- package/dist/tools/base.d.cts +1 -1
- package/dist/tools/base.d.ts +1 -1
- package/dist/tools/calculator.d.cts +1 -1
- package/dist/tools/calculator.d.ts +1 -1
- package/dist/tools/custom.d.cts +2 -2
- package/dist/tools/custom.d.ts +2 -2
- package/dist/tools/database/elasticsearch.d.cts +1 -1
- package/dist/tools/database/elasticsearch.d.ts +1 -1
- package/dist/tools/database/milvus.d.cts +3 -3
- package/dist/tools/database/milvus.d.ts +3 -3
- package/dist/tools/database/qdrant.cjs +174 -0
- package/dist/tools/database/qdrant.cjs.map +1 -0
- package/dist/tools/database/qdrant.d.cts +86 -0
- package/dist/tools/database/qdrant.d.ts +86 -0
- package/dist/tools/database/qdrant.js +171 -0
- package/dist/tools/database/qdrant.js.map +1 -0
- package/dist/tools/database/sql.d.cts +1 -1
- package/dist/tools/database/sql.d.ts +1 -1
- package/dist/tools/llm.d.cts +2 -2
- package/dist/tools/llm.d.ts +2 -2
- package/dist/tools/mcp.d.cts +1 -1
- package/dist/tools/mcp.d.ts +1 -1
- package/dist/tools/openapi.d.cts +1 -1
- package/dist/tools/openapi.d.ts +1 -1
- package/dist/tools/python/output.d.cts +1 -1
- package/dist/tools/python/output.d.ts +1 -1
- package/dist/tools/python/python.d.cts +2 -2
- package/dist/tools/python/python.d.ts +2 -2
- package/dist/tools/search/base.d.cts +1 -1
- package/dist/tools/search/base.d.ts +1 -1
- package/dist/tools/search/duckDuckGoSearch.d.cts +1 -1
- package/dist/tools/search/duckDuckGoSearch.d.ts +1 -1
- package/dist/tools/search/googleSearch.d.cts +1 -1
- package/dist/tools/search/googleSearch.d.ts +1 -1
- package/dist/tools/search/searXNGSearch.d.cts +1 -1
- package/dist/tools/search/searXNGSearch.d.ts +1 -1
- package/dist/tools/search/wikipedia.d.cts +1 -1
- package/dist/tools/search/wikipedia.d.ts +1 -1
- package/dist/tools/similarity.d.cts +1 -1
- package/dist/tools/similarity.d.ts +1 -1
- package/dist/tools/weather/openMeteo.d.cts +1 -1
- package/dist/tools/weather/openMeteo.d.ts +1 -1
- package/dist/tools/web/webCrawler.d.cts +1 -1
- package/dist/tools/web/webCrawler.d.ts +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/workflows/agent.d.cts +40 -40
- package/dist/workflows/agent.d.ts +40 -40
- package/dist/workflows/workflow.d.cts +1 -1
- package/dist/workflows/workflow.d.ts +1 -1
- package/package.json +8 -3
- package/dist/{emitter-D5Mu0EEH.d.cts → emitter-BTr99H7I.d.cts} +1 -1
- package/dist/{emitter-C3dO-s2P.d.ts → emitter-DiGmS_5O.d.ts} +1 -1
|
@@ -8,11 +8,11 @@ import '../../../internals/helpers/guards.cjs';
|
|
|
8
8
|
import '../../../logger/logger.cjs';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import '../../../errors.cjs';
|
|
11
|
-
import '../../../chat-
|
|
11
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
12
12
|
import '../../../backend/message.cjs';
|
|
13
13
|
import 'ai';
|
|
14
14
|
import '../../../context.cjs';
|
|
15
|
-
import '../../../emitter-
|
|
15
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
16
16
|
import '../../../internals/helpers/promise.cjs';
|
|
17
17
|
import 'promise-based-task';
|
|
18
18
|
import '../../../cache/base.cjs';
|
|
@@ -8,11 +8,11 @@ import '../../../internals/helpers/guards.js';
|
|
|
8
8
|
import '../../../logger/logger.js';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import '../../../errors.js';
|
|
11
|
-
import '../../../chat-
|
|
11
|
+
import '../../../chat-diSK3Sui.js';
|
|
12
12
|
import '../../../backend/message.js';
|
|
13
13
|
import 'ai';
|
|
14
14
|
import '../../../context.js';
|
|
15
|
-
import '../../../emitter-
|
|
15
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
16
16
|
import '../../../internals/helpers/promise.js';
|
|
17
17
|
import 'promise-based-task';
|
|
18
18
|
import '../../../cache/base.js';
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var amazonBedrock = require('@ai-sdk/amazon-bedrock');
|
|
4
4
|
var client_cjs = require('../../../backend/client.cjs');
|
|
5
|
+
var utils_cjs = require('../../vercel/backend/utils.cjs');
|
|
5
6
|
|
|
6
7
|
var __defProp = Object.defineProperty;
|
|
7
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -11,7 +12,8 @@ class AmazonBedrockClient extends client_cjs.BackendClient {
|
|
|
11
12
|
}
|
|
12
13
|
create() {
|
|
13
14
|
return amazonBedrock.createAmazonBedrock({
|
|
14
|
-
...this.settings
|
|
15
|
+
...this.settings,
|
|
16
|
+
fetch: utils_cjs.vercelFetcher(this.settings?.fetch)
|
|
15
17
|
});
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["AmazonBedrockClient","BackendClient","create","createAmazonBedrock","settings"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["AmazonBedrockClient","BackendClient","create","createAmazonBedrock","settings","fetch","vercelFetcher"],"mappings":";;;;;;;;AA0BO,MAAMA,4BAA4BC,wBAAAA,CAAAA;EA1BzC;;;EA8BYC,MAAgC,GAAA;AACxC,IAAA,OAAOC,iCAAoB,CAAA;AACzB,MAAA,GAAG,IAAKC,CAAAA,QAAAA;MACRC,KAAOC,EAAAA,uBAAAA,CAAc,IAAKF,CAAAA,QAAAA,EAAUC,KAAAA;KACtC,CAAA;AACF;AACF","file":"client.cjs","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createAmazonBedrock,\n AmazonBedrockProviderSettings,\n AmazonBedrockProvider,\n} from \"@ai-sdk/amazon-bedrock\";\nimport { BackendClient } from \"@/backend/client.js\";\nimport { vercelFetcher } from \"@/adapters/vercel/backend/utils.js\";\n\nexport type AmazonBedrockClientSettings = AmazonBedrockProviderSettings;\n\nexport class AmazonBedrockClient extends BackendClient<\n AmazonBedrockClientSettings,\n AmazonBedrockProvider\n> {\n protected create(): AmazonBedrockProvider {\n return createAmazonBedrock({\n ...this.settings,\n fetch: vercelFetcher(this.settings?.fetch),\n });\n }\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createAmazonBedrock } from '@ai-sdk/amazon-bedrock';
|
|
2
2
|
import { BackendClient } from '../../../backend/client.js';
|
|
3
|
+
import { vercelFetcher } from '../../vercel/backend/utils.js';
|
|
3
4
|
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
5
6
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -9,7 +10,8 @@ class AmazonBedrockClient extends BackendClient {
|
|
|
9
10
|
}
|
|
10
11
|
create() {
|
|
11
12
|
return createAmazonBedrock({
|
|
12
|
-
...this.settings
|
|
13
|
+
...this.settings,
|
|
14
|
+
fetch: vercelFetcher(this.settings?.fetch)
|
|
13
15
|
});
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["AmazonBedrockClient","BackendClient","create","createAmazonBedrock","settings"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["AmazonBedrockClient","BackendClient","create","createAmazonBedrock","settings","fetch","vercelFetcher"],"mappings":";;;;;;AA0BO,MAAMA,4BAA4BC,aAAAA,CAAAA;EA1BzC;;;EA8BYC,MAAgC,GAAA;AACxC,IAAA,OAAOC,mBAAoB,CAAA;AACzB,MAAA,GAAG,IAAKC,CAAAA,QAAAA;MACRC,KAAOC,EAAAA,aAAAA,CAAc,IAAKF,CAAAA,QAAAA,EAAUC,KAAAA;KACtC,CAAA;AACF;AACF","file":"client.js","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createAmazonBedrock,\n AmazonBedrockProviderSettings,\n AmazonBedrockProvider,\n} from \"@ai-sdk/amazon-bedrock\";\nimport { BackendClient } from \"@/backend/client.js\";\nimport { vercelFetcher } from \"@/adapters/vercel/backend/utils.js\";\n\nexport type AmazonBedrockClientSettings = AmazonBedrockProviderSettings;\n\nexport class AmazonBedrockClient extends BackendClient<\n AmazonBedrockClientSettings,\n AmazonBedrockProvider\n> {\n protected create(): AmazonBedrockProvider {\n return createAmazonBedrock({\n ...this.settings,\n fetch: vercelFetcher(this.settings?.fetch),\n });\n }\n}\n"]}
|
|
@@ -3,13 +3,13 @@ import { AmazonBedrockProvider } from '@ai-sdk/amazon-bedrock';
|
|
|
3
3
|
import { AmazonBedrockClient, AmazonBedrockClientSettings } from './client.cjs';
|
|
4
4
|
import '../../../backend/embedding.cjs';
|
|
5
5
|
import '../../../context.cjs';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
10
|
import '../../../internals/helpers/promise.cjs';
|
|
11
11
|
import '../../../errors.cjs';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -3,13 +3,13 @@ import { AmazonBedrockProvider } from '@ai-sdk/amazon-bedrock';
|
|
|
3
3
|
import { AmazonBedrockClient, AmazonBedrockClientSettings } from './client.js';
|
|
4
4
|
import '../../../backend/embedding.js';
|
|
5
5
|
import '../../../context.js';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
import '../../../internals/helpers/guards.js';
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
10
|
import '../../../internals/helpers/promise.js';
|
|
11
11
|
import '../../../errors.js';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-diSK3Sui.js';
|
|
13
13
|
import '../../../backend/message.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -7,11 +7,11 @@ import '../../../errors.cjs';
|
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
|
-
import '../../../chat-
|
|
10
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
11
11
|
import '../../../backend/message.cjs';
|
|
12
12
|
import 'ai';
|
|
13
13
|
import '../../../context.cjs';
|
|
14
|
-
import '../../../emitter-
|
|
14
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
15
15
|
import '../../../internals/helpers/promise.cjs';
|
|
16
16
|
import 'promise-based-task';
|
|
17
17
|
import '../../../cache/base.cjs';
|
|
@@ -7,11 +7,11 @@ import '../../../errors.js';
|
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
import '../../../internals/helpers/guards.js';
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
|
-
import '../../../chat-
|
|
10
|
+
import '../../../chat-diSK3Sui.js';
|
|
11
11
|
import '../../../backend/message.js';
|
|
12
12
|
import 'ai';
|
|
13
13
|
import '../../../context.js';
|
|
14
|
-
import '../../../emitter-
|
|
14
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
15
15
|
import '../../../internals/helpers/promise.js';
|
|
16
16
|
import 'promise-based-task';
|
|
17
17
|
import '../../../cache/base.js';
|
|
@@ -4,6 +4,7 @@ var anthropic = require('@ai-sdk/anthropic');
|
|
|
4
4
|
var client_cjs = require('../../../backend/client.cjs');
|
|
5
5
|
var env_cjs = require('../../../internals/env.cjs');
|
|
6
6
|
var zod = require('zod');
|
|
7
|
+
var utils_cjs = require('../../vercel/backend/utils.cjs');
|
|
7
8
|
|
|
8
9
|
var __defProp = Object.defineProperty;
|
|
9
10
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -22,7 +23,8 @@ class AnthropicClient extends client_cjs.BackendClient {
|
|
|
22
23
|
headers: {
|
|
23
24
|
...extraHeaders,
|
|
24
25
|
...this.settings?.headers
|
|
25
|
-
}
|
|
26
|
+
},
|
|
27
|
+
fetch: utils_cjs.vercelFetcher(this.settings?.fetch)
|
|
26
28
|
});
|
|
27
29
|
}
|
|
28
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["AnthropicClient","BackendClient","create","extraHeaders","parseEnv","z","preprocess","value","Object","fromEntries","String","split","filter","pair","includes","map","record","string","createAnthropic","settings","baseURL","getEnv","apiKey","headers"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["AnthropicClient","BackendClient","create","extraHeaders","parseEnv","z","preprocess","value","Object","fromEntries","String","split","filter","pair","includes","map","record","string","createAnthropic","settings","baseURL","getEnv","apiKey","headers","fetch","vercelFetcher"],"mappings":";;;;;;;;;;AAwBO,MAAMA,wBAAwBC,wBAAAA,CAAAA;EAxBrC;;;EAyBYC,MAA4B,GAAA;AACpC,IAAA,MAAMC,eAAeC,gBACnB,CAAA,uBAAA,EACAC,KAAEC,CAAAA,UAAAA,CAAW,CAACC,KAAAA,KAAAA;AACZ,MAAOC,OAAAA,MAAAA,CAAOC,WACZC,CAAAA,MAAAA,CAAOH,KAAS,IAAA,EAAA,EACbI,KAAM,CAAA,GAAA,CACNC,CAAAA,MAAAA,CAAO,CAACC,IAAAA,KAASA,KAAKC,QAAS,CAAA,GAAA,CAAA,CAAA,CAC/BC,GAAI,CAAA,CAACF,SAASA,IAAKF,CAAAA,KAAAA,CAAM,GAAA,CAAA,CAAA,CAAA;AAEhC,KAAA,EAAGN,MAAEW,MAAOX,CAAAA,KAAAA,CAAEY,MAAM,EAAA,CAAA,CAAA,CAAA;AAGtB,IAAA,OAAOC,yBAAgB,CAAA;AACrB,MAAA,GAAG,IAAKC,CAAAA,QAAAA;AACRC,MAAAA,OAAAA,EAAS,IAAKD,CAAAA,QAAAA,EAAUC,OAAWC,IAAAA,cAAAA,CAAO,wBAAA,CAAA;AAC1CC,MAAAA,MAAAA,EAAQ,IAAKH,CAAAA,QAAAA,CAASG,MAAUD,IAAAA,cAAAA,CAAO,mBAAA,CAAA;MACvCE,OAAS,EAAA;QACP,GAAGpB,YAAAA;AACH,QAAA,GAAG,KAAKgB,QAAUI,EAAAA;AACpB,OAAA;MACAC,KAAOC,EAAAA,uBAAAA,CAAc,IAAKN,CAAAA,QAAAA,EAAUK,KAAAA;KACtC,CAAA;AACF;AACF","file":"client.cjs","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createAnthropic, AnthropicProvider, AnthropicProviderSettings } from \"@ai-sdk/anthropic\";\nimport { BackendClient } from \"@/backend/client.js\";\nimport { getEnv, parseEnv } from \"@/internals/env.js\";\nimport { z } from \"zod\";\nimport { vercelFetcher } from \"@/adapters/vercel/backend/utils.js\";\n\nexport type AnthropicClientSettings = AnthropicProviderSettings;\n\nexport class AnthropicClient extends BackendClient<AnthropicClientSettings, AnthropicProvider> {\n protected create(): AnthropicProvider {\n const extraHeaders = parseEnv(\n \"ANTHROPIC_API_HEADERS\",\n z.preprocess((value) => {\n return Object.fromEntries(\n String(value || \"\")\n .split(\",\")\n .filter((pair) => pair.includes(\"=\"))\n .map((pair) => pair.split(\"=\")),\n );\n }, z.record(z.string())),\n );\n\n return createAnthropic({\n ...this.settings,\n baseURL: this.settings?.baseURL || getEnv(\"ANTHROPIC_API_BASE_URL\"),\n apiKey: this.settings.apiKey || getEnv(\"ANTHROPIC_API_KEY\"),\n headers: {\n ...extraHeaders,\n ...this.settings?.headers,\n },\n fetch: vercelFetcher(this.settings?.fetch),\n });\n }\n}\n"]}
|
|
@@ -2,6 +2,7 @@ import { createAnthropic } from '@ai-sdk/anthropic';
|
|
|
2
2
|
import { BackendClient } from '../../../backend/client.js';
|
|
3
3
|
import { parseEnv, getEnv } from '../../../internals/env.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
+
import { vercelFetcher } from '../../vercel/backend/utils.js';
|
|
5
6
|
|
|
6
7
|
var __defProp = Object.defineProperty;
|
|
7
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -20,7 +21,8 @@ class AnthropicClient extends BackendClient {
|
|
|
20
21
|
headers: {
|
|
21
22
|
...extraHeaders,
|
|
22
23
|
...this.settings?.headers
|
|
23
|
-
}
|
|
24
|
+
},
|
|
25
|
+
fetch: vercelFetcher(this.settings?.fetch)
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["AnthropicClient","BackendClient","create","extraHeaders","parseEnv","z","preprocess","value","Object","fromEntries","String","split","filter","pair","includes","map","record","string","createAnthropic","settings","baseURL","getEnv","apiKey","headers"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["AnthropicClient","BackendClient","create","extraHeaders","parseEnv","z","preprocess","value","Object","fromEntries","String","split","filter","pair","includes","map","record","string","createAnthropic","settings","baseURL","getEnv","apiKey","headers","fetch","vercelFetcher"],"mappings":";;;;;;;;AAwBO,MAAMA,wBAAwBC,aAAAA,CAAAA;EAxBrC;;;EAyBYC,MAA4B,GAAA;AACpC,IAAA,MAAMC,eAAeC,QACnB,CAAA,uBAAA,EACAC,CAAEC,CAAAA,UAAAA,CAAW,CAACC,KAAAA,KAAAA;AACZ,MAAOC,OAAAA,MAAAA,CAAOC,WACZC,CAAAA,MAAAA,CAAOH,KAAS,IAAA,EAAA,EACbI,KAAM,CAAA,GAAA,CACNC,CAAAA,MAAAA,CAAO,CAACC,IAAAA,KAASA,KAAKC,QAAS,CAAA,GAAA,CAAA,CAAA,CAC/BC,GAAI,CAAA,CAACF,SAASA,IAAKF,CAAAA,KAAAA,CAAM,GAAA,CAAA,CAAA,CAAA;AAEhC,KAAA,EAAGN,EAAEW,MAAOX,CAAAA,CAAAA,CAAEY,MAAM,EAAA,CAAA,CAAA,CAAA;AAGtB,IAAA,OAAOC,eAAgB,CAAA;AACrB,MAAA,GAAG,IAAKC,CAAAA,QAAAA;AACRC,MAAAA,OAAAA,EAAS,IAAKD,CAAAA,QAAAA,EAAUC,OAAWC,IAAAA,MAAAA,CAAO,wBAAA,CAAA;AAC1CC,MAAAA,MAAAA,EAAQ,IAAKH,CAAAA,QAAAA,CAASG,MAAUD,IAAAA,MAAAA,CAAO,mBAAA,CAAA;MACvCE,OAAS,EAAA;QACP,GAAGpB,YAAAA;AACH,QAAA,GAAG,KAAKgB,QAAUI,EAAAA;AACpB,OAAA;MACAC,KAAOC,EAAAA,aAAAA,CAAc,IAAKN,CAAAA,QAAAA,EAAUK,KAAAA;KACtC,CAAA;AACF;AACF","file":"client.js","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createAnthropic, AnthropicProvider, AnthropicProviderSettings } from \"@ai-sdk/anthropic\";\nimport { BackendClient } from \"@/backend/client.js\";\nimport { getEnv, parseEnv } from \"@/internals/env.js\";\nimport { z } from \"zod\";\nimport { vercelFetcher } from \"@/adapters/vercel/backend/utils.js\";\n\nexport type AnthropicClientSettings = AnthropicProviderSettings;\n\nexport class AnthropicClient extends BackendClient<AnthropicClientSettings, AnthropicProvider> {\n protected create(): AnthropicProvider {\n const extraHeaders = parseEnv(\n \"ANTHROPIC_API_HEADERS\",\n z.preprocess((value) => {\n return Object.fromEntries(\n String(value || \"\")\n .split(\",\")\n .filter((pair) => pair.includes(\"=\"))\n .map((pair) => pair.split(\"=\")),\n );\n }, z.record(z.string())),\n );\n\n return createAnthropic({\n ...this.settings,\n baseURL: this.settings?.baseURL || getEnv(\"ANTHROPIC_API_BASE_URL\"),\n apiKey: this.settings.apiKey || getEnv(\"ANTHROPIC_API_KEY\"),\n headers: {\n ...extraHeaders,\n ...this.settings?.headers,\n },\n fetch: vercelFetcher(this.settings?.fetch),\n });\n }\n}\n"]}
|
|
@@ -3,13 +3,13 @@ import { AnthropicClientSettings, AnthropicClient } from './client.cjs';
|
|
|
3
3
|
import { AnthropicProvider } from '@ai-sdk/anthropic';
|
|
4
4
|
import '../../../backend/embedding.cjs';
|
|
5
5
|
import '../../../context.cjs';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
10
|
import '../../../internals/helpers/promise.cjs';
|
|
11
11
|
import '../../../errors.cjs';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -3,13 +3,13 @@ import { AnthropicClientSettings, AnthropicClient } from './client.js';
|
|
|
3
3
|
import { AnthropicProvider } from '@ai-sdk/anthropic';
|
|
4
4
|
import '../../../backend/embedding.js';
|
|
5
5
|
import '../../../context.js';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
import '../../../internals/helpers/guards.js';
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
10
|
import '../../../internals/helpers/promise.js';
|
|
11
11
|
import '../../../errors.js';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-diSK3Sui.js';
|
|
13
13
|
import '../../../backend/message.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -7,11 +7,11 @@ import '../../../errors.cjs';
|
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
|
-
import '../../../chat-
|
|
10
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
11
11
|
import '../../../backend/message.cjs';
|
|
12
12
|
import 'ai';
|
|
13
13
|
import '../../../context.cjs';
|
|
14
|
-
import '../../../emitter-
|
|
14
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
15
15
|
import '../../../internals/helpers/promise.cjs';
|
|
16
16
|
import 'promise-based-task';
|
|
17
17
|
import '../../../cache/base.cjs';
|
|
@@ -7,11 +7,11 @@ import '../../../errors.js';
|
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
import '../../../internals/helpers/guards.js';
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
|
-
import '../../../chat-
|
|
10
|
+
import '../../../chat-diSK3Sui.js';
|
|
11
11
|
import '../../../backend/message.js';
|
|
12
12
|
import 'ai';
|
|
13
13
|
import '../../../context.js';
|
|
14
|
-
import '../../../emitter-
|
|
14
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
15
15
|
import '../../../internals/helpers/promise.js';
|
|
16
16
|
import 'promise-based-task';
|
|
17
17
|
import '../../../cache/base.js';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var azure = require('@ai-sdk/azure');
|
|
4
4
|
var env_cjs = require('../../../internals/env.cjs');
|
|
5
5
|
var client_cjs = require('../../../backend/client.cjs');
|
|
6
|
+
var utils_cjs = require('../../vercel/backend/utils.cjs');
|
|
6
7
|
|
|
7
8
|
var __defProp = Object.defineProperty;
|
|
8
9
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -16,7 +17,8 @@ class AzureOpenAIClient extends client_cjs.BackendClient {
|
|
|
16
17
|
apiKey: this.settings.apiKey || env_cjs.getEnv("AZURE_OPENAI_API_KEY"),
|
|
17
18
|
baseURL: this.settings.baseURL || env_cjs.getEnv("AZURE_OPENAI_API_ENDPOINT"),
|
|
18
19
|
resourceName: this.settings.resourceName || env_cjs.getEnv("AZURE_OPENAI_API_RESOURCE"),
|
|
19
|
-
apiVersion: this.settings.apiVersion || env_cjs.getEnv("AZURE_OPENAI_API_VERSION")
|
|
20
|
+
apiVersion: this.settings.apiVersion || env_cjs.getEnv("AZURE_OPENAI_API_VERSION"),
|
|
21
|
+
fetch: utils_cjs.vercelFetcher(this.settings?.fetch)
|
|
20
22
|
});
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["AzureOpenAIClient","BackendClient","create","createAzure","settings","apiKey","getEnv","baseURL","resourceName","apiVersion"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["AzureOpenAIClient","BackendClient","create","createAzure","settings","apiKey","getEnv","baseURL","resourceName","apiVersion","fetch","vercelFetcher"],"mappings":";;;;;;;;;AAuBO,MAAMA,0BAA0BC,wBAAAA,CAAAA;EAvBvC;;;EA2BYC,MAA8B,GAAA;AACtC,IAAA,OAAOC,iBAAY,CAAA;AACjB,MAAA,GAAG,IAAKC,CAAAA,QAAAA;AACRC,MAAAA,MAAAA,EAAQ,IAAKD,CAAAA,QAAAA,CAASC,MAAUC,IAAAA,cAAAA,CAAO,sBAAA,CAAA;AACvCC,MAAAA,OAAAA,EAAS,IAAKH,CAAAA,QAAAA,CAASG,OAAWD,IAAAA,cAAAA,CAAO,2BAAA,CAAA;AACzCE,MAAAA,YAAAA,EAAc,IAAKJ,CAAAA,QAAAA,CAASI,YAAgBF,IAAAA,cAAAA,CAAO,2BAAA,CAAA;AACnDG,MAAAA,UAAAA,EAAY,IAAKL,CAAAA,QAAAA,CAASK,UAAcH,IAAAA,cAAAA,CAAO,0BAAA,CAAA;MAC/CI,KAAOC,EAAAA,uBAAAA,CAAc,IAAKP,CAAAA,QAAAA,EAAUM,KAAAA;KACtC,CAAA;AACF;AACF","file":"client.cjs","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AzureOpenAIProvider, AzureOpenAIProviderSettings, createAzure } from \"@ai-sdk/azure\";\nimport { getEnv } from \"@/internals/env.js\";\nimport { BackendClient } from \"@/backend/client.js\";\nimport { vercelFetcher } from \"@/adapters/vercel/backend/utils.js\";\n\nexport type AzureOpenAIClientSettings = AzureOpenAIProviderSettings;\n\nexport class AzureOpenAIClient extends BackendClient<\n AzureOpenAIClientSettings,\n AzureOpenAIProvider\n> {\n protected create(): AzureOpenAIProvider {\n return createAzure({\n ...this.settings,\n apiKey: this.settings.apiKey || getEnv(\"AZURE_OPENAI_API_KEY\"),\n baseURL: this.settings.baseURL || getEnv(\"AZURE_OPENAI_API_ENDPOINT\"),\n resourceName: this.settings.resourceName || getEnv(\"AZURE_OPENAI_API_RESOURCE\"),\n apiVersion: this.settings.apiVersion || getEnv(\"AZURE_OPENAI_API_VERSION\"),\n fetch: vercelFetcher(this.settings?.fetch),\n });\n }\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createAzure } from '@ai-sdk/azure';
|
|
2
2
|
import { getEnv } from '../../../internals/env.js';
|
|
3
3
|
import { BackendClient } from '../../../backend/client.js';
|
|
4
|
+
import { vercelFetcher } from '../../vercel/backend/utils.js';
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
6
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -14,7 +15,8 @@ class AzureOpenAIClient extends BackendClient {
|
|
|
14
15
|
apiKey: this.settings.apiKey || getEnv("AZURE_OPENAI_API_KEY"),
|
|
15
16
|
baseURL: this.settings.baseURL || getEnv("AZURE_OPENAI_API_ENDPOINT"),
|
|
16
17
|
resourceName: this.settings.resourceName || getEnv("AZURE_OPENAI_API_RESOURCE"),
|
|
17
|
-
apiVersion: this.settings.apiVersion || getEnv("AZURE_OPENAI_API_VERSION")
|
|
18
|
+
apiVersion: this.settings.apiVersion || getEnv("AZURE_OPENAI_API_VERSION"),
|
|
19
|
+
fetch: vercelFetcher(this.settings?.fetch)
|
|
18
20
|
});
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["AzureOpenAIClient","BackendClient","create","createAzure","settings","apiKey","getEnv","baseURL","resourceName","apiVersion"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["AzureOpenAIClient","BackendClient","create","createAzure","settings","apiKey","getEnv","baseURL","resourceName","apiVersion","fetch","vercelFetcher"],"mappings":";;;;;;;AAuBO,MAAMA,0BAA0BC,aAAAA,CAAAA;EAvBvC;;;EA2BYC,MAA8B,GAAA;AACtC,IAAA,OAAOC,WAAY,CAAA;AACjB,MAAA,GAAG,IAAKC,CAAAA,QAAAA;AACRC,MAAAA,MAAAA,EAAQ,IAAKD,CAAAA,QAAAA,CAASC,MAAUC,IAAAA,MAAAA,CAAO,sBAAA,CAAA;AACvCC,MAAAA,OAAAA,EAAS,IAAKH,CAAAA,QAAAA,CAASG,OAAWD,IAAAA,MAAAA,CAAO,2BAAA,CAAA;AACzCE,MAAAA,YAAAA,EAAc,IAAKJ,CAAAA,QAAAA,CAASI,YAAgBF,IAAAA,MAAAA,CAAO,2BAAA,CAAA;AACnDG,MAAAA,UAAAA,EAAY,IAAKL,CAAAA,QAAAA,CAASK,UAAcH,IAAAA,MAAAA,CAAO,0BAAA,CAAA;MAC/CI,KAAOC,EAAAA,aAAAA,CAAc,IAAKP,CAAAA,QAAAA,EAAUM,KAAAA;KACtC,CAAA;AACF;AACF","file":"client.js","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AzureOpenAIProvider, AzureOpenAIProviderSettings, createAzure } from \"@ai-sdk/azure\";\nimport { getEnv } from \"@/internals/env.js\";\nimport { BackendClient } from \"@/backend/client.js\";\nimport { vercelFetcher } from \"@/adapters/vercel/backend/utils.js\";\n\nexport type AzureOpenAIClientSettings = AzureOpenAIProviderSettings;\n\nexport class AzureOpenAIClient extends BackendClient<\n AzureOpenAIClientSettings,\n AzureOpenAIProvider\n> {\n protected create(): AzureOpenAIProvider {\n return createAzure({\n ...this.settings,\n apiKey: this.settings.apiKey || getEnv(\"AZURE_OPENAI_API_KEY\"),\n baseURL: this.settings.baseURL || getEnv(\"AZURE_OPENAI_API_ENDPOINT\"),\n resourceName: this.settings.resourceName || getEnv(\"AZURE_OPENAI_API_RESOURCE\"),\n apiVersion: this.settings.apiVersion || getEnv(\"AZURE_OPENAI_API_VERSION\"),\n fetch: vercelFetcher(this.settings?.fetch),\n });\n }\n}\n"]}
|
|
@@ -3,13 +3,13 @@ import { AzureOpenAIClient, AzureOpenAIClientSettings } from './client.cjs';
|
|
|
3
3
|
import { AzureOpenAIProvider } from '@ai-sdk/azure';
|
|
4
4
|
import '../../../backend/embedding.cjs';
|
|
5
5
|
import '../../../context.cjs';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
10
|
import '../../../internals/helpers/promise.cjs';
|
|
11
11
|
import '../../../errors.cjs';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
13
13
|
import '../../../backend/message.cjs';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -3,13 +3,13 @@ import { AzureOpenAIClient, AzureOpenAIClientSettings } from './client.js';
|
|
|
3
3
|
import { AzureOpenAIProvider } from '@ai-sdk/azure';
|
|
4
4
|
import '../../../backend/embedding.js';
|
|
5
5
|
import '../../../context.js';
|
|
6
|
-
import '../../../emitter-
|
|
6
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
import '../../../internals/helpers/guards.js';
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
10
|
import '../../../internals/helpers/promise.js';
|
|
11
11
|
import '../../../errors.js';
|
|
12
|
-
import '../../../chat-
|
|
12
|
+
import '../../../chat-diSK3Sui.js';
|
|
13
13
|
import '../../../backend/message.js';
|
|
14
14
|
import 'ai';
|
|
15
15
|
import 'promise-based-task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.cjs';
|
|
2
|
-
import { m as ChatModel, C as ChatModelParameters, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
2
|
+
import { m as ChatModel, C as ChatModelParameters, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-BvyMdWFo.cjs';
|
|
3
3
|
import { GetRunContext } from '../../../context.cjs';
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
4
|
+
import { E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
5
5
|
import 'pino';
|
|
6
6
|
import '../../../errors.cjs';
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Logger } from '../../../logger/logger.js';
|
|
2
|
-
import { m as ChatModel, C as ChatModelParameters, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-
|
|
2
|
+
import { m as ChatModel, C as ChatModelParameters, g as ChatModelEvents, d as ChatModelInput, n as ChatModelOutput, i as ChatModelCache, l as ChatModelToolChoiceSupport } from '../../../chat-diSK3Sui.js';
|
|
3
3
|
import { GetRunContext } from '../../../context.js';
|
|
4
|
-
import { E as Emitter } from '../../../emitter-
|
|
4
|
+
import { E as Emitter } from '../../../emitter-DiGmS_5O.js';
|
|
5
5
|
import 'pino';
|
|
6
6
|
import '../../../errors.js';
|
|
7
7
|
import '../../../internals/types.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GetRunContext } from '../../../context.cjs';
|
|
2
|
-
import { E as Emitter } from '../../../emitter-
|
|
2
|
+
import { E as Emitter } from '../../../emitter-BTr99H7I.cjs';
|
|
3
3
|
import { EmbeddingModel, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.cjs';
|
|
4
4
|
import '../../../internals/serializable.cjs';
|
|
5
5
|
import '../../../internals/types.cjs';
|
|
6
6
|
import '../../../internals/helpers/guards.cjs';
|
|
7
7
|
import '../../../internals/helpers/promise.cjs';
|
|
8
8
|
import '../../../errors.cjs';
|
|
9
|
-
import '../../../chat-
|
|
9
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
10
10
|
import '../../../backend/message.cjs';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import 'promise-based-task';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GetRunContext } from '../../../context.js';
|
|
2
|
-
import { E as Emitter } from '../../../emitter-
|
|
2
|
+
import { E as Emitter } from '../../../emitter-DiGmS_5O.js';
|
|
3
3
|
import { EmbeddingModel, EmbeddingModelEvents, EmbeddingModelInput, EmbeddingModelOutput } from '../../../backend/embedding.js';
|
|
4
4
|
import '../../../internals/serializable.js';
|
|
5
5
|
import '../../../internals/types.js';
|
|
6
6
|
import '../../../internals/helpers/guards.js';
|
|
7
7
|
import '../../../internals/helpers/promise.js';
|
|
8
8
|
import '../../../errors.js';
|
|
9
|
-
import '../../../chat-
|
|
9
|
+
import '../../../chat-diSK3Sui.js';
|
|
10
10
|
import '../../../backend/message.js';
|
|
11
11
|
import 'ai';
|
|
12
12
|
import 'promise-based-task';
|
|
@@ -7,11 +7,11 @@ import '../../../errors.cjs';
|
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
|
-
import '../../../chat-
|
|
10
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
11
11
|
import '../../../backend/message.cjs';
|
|
12
12
|
import 'ai';
|
|
13
13
|
import '../../../context.cjs';
|
|
14
|
-
import '../../../emitter-
|
|
14
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
15
15
|
import '../../../internals/helpers/promise.cjs';
|
|
16
16
|
import 'promise-based-task';
|
|
17
17
|
import '../../../cache/base.cjs';
|
|
@@ -7,11 +7,11 @@ import '../../../errors.js';
|
|
|
7
7
|
import '../../../internals/types.js';
|
|
8
8
|
import '../../../internals/helpers/guards.js';
|
|
9
9
|
import '../../../internals/serializable.js';
|
|
10
|
-
import '../../../chat-
|
|
10
|
+
import '../../../chat-diSK3Sui.js';
|
|
11
11
|
import '../../../backend/message.js';
|
|
12
12
|
import 'ai';
|
|
13
13
|
import '../../../context.js';
|
|
14
|
-
import '../../../emitter-
|
|
14
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
15
15
|
import '../../../internals/helpers/promise.js';
|
|
16
16
|
import 'promise-based-task';
|
|
17
17
|
import '../../../cache/base.js';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var env_cjs = require('../../../internals/env.cjs');
|
|
4
4
|
var googleVertex = require('@ai-sdk/google-vertex');
|
|
5
5
|
var client_cjs = require('../../../backend/client.cjs');
|
|
6
|
+
var utils_cjs = require('../../vercel/backend/utils.cjs');
|
|
6
7
|
|
|
7
8
|
var __defProp = Object.defineProperty;
|
|
8
9
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -15,7 +16,8 @@ class GoogleVertexClient extends client_cjs.BackendClient {
|
|
|
15
16
|
...this.settings,
|
|
16
17
|
project: this.settings?.project || env_cjs.getEnv("GOOGLE_VERTEX_PROJECT"),
|
|
17
18
|
baseURL: this.settings?.baseURL || env_cjs.getEnv("GOOGLE_VERTEX_ENDPOINT"),
|
|
18
|
-
location: this.settings?.location || env_cjs.getEnv("GOOGLE_VERTEX_LOCATION")
|
|
19
|
+
location: this.settings?.location || env_cjs.getEnv("GOOGLE_VERTEX_LOCATION"),
|
|
20
|
+
fetch: utils_cjs.vercelFetcher(this.settings?.fetch)
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["GoogleVertexClient","BackendClient","create","createVertex","settings","project","getEnv","baseURL","location"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["GoogleVertexClient","BackendClient","create","createVertex","settings","project","getEnv","baseURL","location","fetch","vercelFetcher"],"mappings":";;;;;;;;;AA2BO,MAAMA,2BAA2BC,wBAAAA,CAAAA;EA3BxC;;;EA+BYC,MAA+B,GAAA;AACvC,IAAA,OAAOC,yBAAa,CAAA;AAClB,MAAA,GAAG,IAAKC,CAAAA,QAAAA;AACRC,MAAAA,OAAAA,EAAS,IAAKD,CAAAA,QAAAA,EAAUC,OAAWC,IAAAA,cAAAA,CAAO,uBAAA,CAAA;AAC1CC,MAAAA,OAAAA,EAAS,IAAKH,CAAAA,QAAAA,EAAUG,OAAWD,IAAAA,cAAAA,CAAO,wBAAA,CAAA;AAC1CE,MAAAA,QAAAA,EAAU,IAAKJ,CAAAA,QAAAA,EAAUI,QAAYF,IAAAA,cAAAA,CAAO,wBAAA,CAAA;MAC5CG,KAAOC,EAAAA,uBAAAA,CAAc,IAAKN,CAAAA,QAAAA,EAAUK,KAAAA;KACtC,CAAA;AACF;AACF","file":"client.cjs","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getEnv } from \"@/internals/env.js\";\nimport {\n createVertex,\n GoogleVertexProvider,\n GoogleVertexProviderSettings,\n} from \"@ai-sdk/google-vertex\";\nimport { BackendClient } from \"@/backend/client.js\";\nimport { vercelFetcher } from \"@/adapters/vercel/backend/utils.js\";\n\nexport type GoogleVertexClientSettings = GoogleVertexProviderSettings;\n\nexport class GoogleVertexClient extends BackendClient<\n GoogleVertexClientSettings,\n GoogleVertexProvider\n> {\n protected create(): GoogleVertexProvider {\n return createVertex({\n ...this.settings,\n project: this.settings?.project || getEnv(\"GOOGLE_VERTEX_PROJECT\"),\n baseURL: this.settings?.baseURL || getEnv(\"GOOGLE_VERTEX_ENDPOINT\"),\n location: this.settings?.location || getEnv(\"GOOGLE_VERTEX_LOCATION\"),\n fetch: vercelFetcher(this.settings?.fetch),\n });\n }\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEnv } from '../../../internals/env.js';
|
|
2
2
|
import { createVertex } from '@ai-sdk/google-vertex';
|
|
3
3
|
import { BackendClient } from '../../../backend/client.js';
|
|
4
|
+
import { vercelFetcher } from '../../vercel/backend/utils.js';
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
6
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -13,7 +14,8 @@ class GoogleVertexClient extends BackendClient {
|
|
|
13
14
|
...this.settings,
|
|
14
15
|
project: this.settings?.project || getEnv("GOOGLE_VERTEX_PROJECT"),
|
|
15
16
|
baseURL: this.settings?.baseURL || getEnv("GOOGLE_VERTEX_ENDPOINT"),
|
|
16
|
-
location: this.settings?.location || getEnv("GOOGLE_VERTEX_LOCATION")
|
|
17
|
+
location: this.settings?.location || getEnv("GOOGLE_VERTEX_LOCATION"),
|
|
18
|
+
fetch: vercelFetcher(this.settings?.fetch)
|
|
17
19
|
});
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["client.ts"],"names":["GoogleVertexClient","BackendClient","create","createVertex","settings","project","getEnv","baseURL","location"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["client.ts"],"names":["GoogleVertexClient","BackendClient","create","createVertex","settings","project","getEnv","baseURL","location","fetch","vercelFetcher"],"mappings":";;;;;;;AA2BO,MAAMA,2BAA2BC,aAAAA,CAAAA;EA3BxC;;;EA+BYC,MAA+B,GAAA;AACvC,IAAA,OAAOC,YAAa,CAAA;AAClB,MAAA,GAAG,IAAKC,CAAAA,QAAAA;AACRC,MAAAA,OAAAA,EAAS,IAAKD,CAAAA,QAAAA,EAAUC,OAAWC,IAAAA,MAAAA,CAAO,uBAAA,CAAA;AAC1CC,MAAAA,OAAAA,EAAS,IAAKH,CAAAA,QAAAA,EAAUG,OAAWD,IAAAA,MAAAA,CAAO,wBAAA,CAAA;AAC1CE,MAAAA,QAAAA,EAAU,IAAKJ,CAAAA,QAAAA,EAAUI,QAAYF,IAAAA,MAAAA,CAAO,wBAAA,CAAA;MAC5CG,KAAOC,EAAAA,aAAAA,CAAc,IAAKN,CAAAA,QAAAA,EAAUK,KAAAA;KACtC,CAAA;AACF;AACF","file":"client.js","sourcesContent":["/**\n * Copyright 2025 © BeeAI a Series of LF Projects, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getEnv } from \"@/internals/env.js\";\nimport {\n createVertex,\n GoogleVertexProvider,\n GoogleVertexProviderSettings,\n} from \"@ai-sdk/google-vertex\";\nimport { BackendClient } from \"@/backend/client.js\";\nimport { vercelFetcher } from \"@/adapters/vercel/backend/utils.js\";\n\nexport type GoogleVertexClientSettings = GoogleVertexProviderSettings;\n\nexport class GoogleVertexClient extends BackendClient<\n GoogleVertexClientSettings,\n GoogleVertexProvider\n> {\n protected create(): GoogleVertexProvider {\n return createVertex({\n ...this.settings,\n project: this.settings?.project || getEnv(\"GOOGLE_VERTEX_PROJECT\"),\n baseURL: this.settings?.baseURL || getEnv(\"GOOGLE_VERTEX_ENDPOINT\"),\n location: this.settings?.location || getEnv(\"GOOGLE_VERTEX_LOCATION\"),\n fetch: vercelFetcher(this.settings?.fetch),\n });\n }\n}\n"]}
|
|
@@ -7,10 +7,10 @@ import '../../../internals/types.cjs';
|
|
|
7
7
|
import '../../../internals/helpers/guards.cjs';
|
|
8
8
|
import '../../../backend/embedding.cjs';
|
|
9
9
|
import '../../../context.cjs';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
11
11
|
import '../../../internals/helpers/promise.cjs';
|
|
12
12
|
import '../../../errors.cjs';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
14
14
|
import '../../../backend/message.cjs';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -7,10 +7,10 @@ import '../../../internals/types.js';
|
|
|
7
7
|
import '../../../internals/helpers/guards.js';
|
|
8
8
|
import '../../../backend/embedding.js';
|
|
9
9
|
import '../../../context.js';
|
|
10
|
-
import '../../../emitter-
|
|
10
|
+
import '../../../emitter-DiGmS_5O.js';
|
|
11
11
|
import '../../../internals/helpers/promise.js';
|
|
12
12
|
import '../../../errors.js';
|
|
13
|
-
import '../../../chat-
|
|
13
|
+
import '../../../chat-diSK3Sui.js';
|
|
14
14
|
import '../../../backend/message.js';
|
|
15
15
|
import 'ai';
|
|
16
16
|
import 'promise-based-task';
|
|
@@ -7,11 +7,11 @@ import '../../../errors.cjs';
|
|
|
7
7
|
import '../../../internals/types.cjs';
|
|
8
8
|
import '../../../internals/helpers/guards.cjs';
|
|
9
9
|
import '../../../internals/serializable.cjs';
|
|
10
|
-
import '../../../chat-
|
|
10
|
+
import '../../../chat-BvyMdWFo.cjs';
|
|
11
11
|
import '../../../backend/message.cjs';
|
|
12
12
|
import 'ai';
|
|
13
13
|
import '../../../context.cjs';
|
|
14
|
-
import '../../../emitter-
|
|
14
|
+
import '../../../emitter-BTr99H7I.cjs';
|
|
15
15
|
import '../../../internals/helpers/promise.cjs';
|
|
16
16
|
import 'promise-based-task';
|
|
17
17
|
import '../../../cache/base.cjs';
|