Files
OpenCode 68a9071cf1 feat: reconcile local master with origin (exa/hot-platform hunters, leaks ledger, latest results)
Local branch had diverged from origin/master (sibling commits on the same base). Rewrote local history linearly on top of origin/master, folding in all local content: exa/hot-platform discovery hunters, leaks ledger, nightly sweep orchestrator, updated .gitignore and skill docs, plus the latest hunt output and vault state. Remote-only files (vault keys, channel scripts) were restored rather than dropped, so the resulting tree is a full union of both sides.
2026-08-07 12:53:47 +08:00

1 line
30 KiB
JSON

{"repo": "apache/seatunnel", "files": {"seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/nlpmodel/ModelProvider.java": {"6bf786bee7cce1b8d4f64808ba3ac91e60cfc041": {"t": 1785746117.2194111, "n": 2836, "h": "4ff89b25b8bfa0ef", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.seatunnel.shade.org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n AMAZON(\"https://aws.amazon.com/bedrock\", \"https://aws.amazon.com/bedrock/amazon-models\"),\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings/multimodal\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n DEEPSEEK(\"https://api.deepseek.com/chat/completions\", \"\"),\n MICROSOFT(\"\", \"\"),\n ZHIPU(\n \"https://open.bigmodel.cn/api/paas/v4/chat/completions\",\n \"https://open.bigmodel.cn/api/paas/v4/embeddings\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n private final String MultimodalEmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n this(llmProviderPath, embeddingProviderPath, \"\");\n }\n\n ModelProvider(\n String llmProviderPath,\n String embeddingProviderPath,\n String multimodalEmbeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n MultimodalEmbeddingProviderPath = multimodalEmbeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path, boolean isMultimodalFields) {\n if (StringUtils.isBlank(path)) {\n return isMultimodalFields ? MultimodalEmbeddingProviderPath : EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "abb9124b0576ca9d0277c1aaf21a3e64b2d7327c": {"t": 1785759987.745658, "n": 2836, "h": "4ff89b25b8bfa0ef", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.seatunnel.shade.org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n AMAZON(\"https://aws.amazon.com/bedrock\", \"https://aws.amazon.com/bedrock/amazon-models\"),\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings/multimodal\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n DEEPSEEK(\"https://api.deepseek.com/chat/completions\", \"\"),\n MICROSOFT(\"\", \"\"),\n ZHIPU(\n \"https://open.bigmodel.cn/api/paas/v4/chat/completions\",\n \"https://open.bigmodel.cn/api/paas/v4/embeddings\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n private final String MultimodalEmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n this(llmProviderPath, embeddingProviderPath, \"\");\n }\n\n ModelProvider(\n String llmProviderPath,\n String embeddingProviderPath,\n String multimodalEmbeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n MultimodalEmbeddingProviderPath = multimodalEmbeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path, boolean isMultimodalFields) {\n if (StringUtils.isBlank(path)) {\n return isMultimodalFields ? MultimodalEmbeddingProviderPath : EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "12414c4eab869bf779193e2815db23f1d28a446e": {"t": 1785759989.363391, "n": 2809, "h": "3e3593661f7ac1f3", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n AMAZON(\"https://aws.amazon.com/bedrock\", \"https://aws.amazon.com/bedrock/amazon-models\"),\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings/multimodal\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n DEEPSEEK(\"https://api.deepseek.com/chat/completions\", \"\"),\n MICROSOFT(\"\", \"\"),\n ZHIPU(\n \"https://open.bigmodel.cn/api/paas/v4/chat/completions\",\n \"https://open.bigmodel.cn/api/paas/v4/embeddings\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n private final String MultimodalEmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n this(llmProviderPath, embeddingProviderPath, \"\");\n }\n\n ModelProvider(\n String llmProviderPath,\n String embeddingProviderPath,\n String multimodalEmbeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n MultimodalEmbeddingProviderPath = multimodalEmbeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path, boolean isMultimodalFields) {\n if (StringUtils.isBlank(path)) {\n return isMultimodalFields ? MultimodalEmbeddingProviderPath : EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "37d410ccb329098178da65a94279d9b4a5db4dfe": {"t": 1785759990.97772, "n": 2299, "h": "986f455b01a5d0ad", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n AMAZON(\"https://aws.amazon.com/bedrock\", \"https://aws.amazon.com/bedrock/amazon-models\"),\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n DEEPSEEK(\"https://api.deepseek.com/chat/completions\", \"\"),\n MICROSOFT(\"\", \"\"),\n ZHIPU(\n \"https://open.bigmodel.cn/api/paas/v4/chat/completions\",\n \"https://open.bigmodel.cn/api/paas/v4/embeddings\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path) {\n if (StringUtils.isBlank(path)) {\n return EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "51ffc5a97e4f7a75d1df47ecba9039a52d59abae": {"t": 1785759992.5860868, "n": 2205, "h": "875f73dd5d0cd3e1", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n DEEPSEEK(\"https://api.deepseek.com/chat/completions\", \"\"),\n MICROSOFT(\"\", \"\"),\n ZHIPU(\n \"https://open.bigmodel.cn/api/paas/v4/chat/completions\",\n \"https://open.bigmodel.cn/api/paas/v4/embeddings\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path) {\n if (StringUtils.isBlank(path)) {\n return EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "6a39c9a883a505f667a32337ecb2233f78cdc754": {"t": 1785759994.4068105, "n": 2061, "h": "76ff0d64fb072a2b", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n DEEPSEEK(\"https://api.deepseek.com/chat/completions\", \"\"),\n MICROSOFT(\"\", \"\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path) {\n if (StringUtils.isBlank(path)) {\n return EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "5b5ee8413052730cf5f361b701465b6f4fbfb219": {"t": 1785759995.9193962, "n": 1998, "h": "be0d066556e68503", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n MICROSOFT(\"\", \"\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path) {\n if (StringUtils.isBlank(path)) {\n return EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "ecd317368d1357d35d0fbac7fe3be66da6674127": {"t": 1785759997.366582, "n": 1975, "h": "8c6cc8b6fb30e932", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path) {\n if (StringUtils.isBlank(path)) {\n return EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "f3ca5a4faf399a233cae104dd616e4aa36f4b1dd": {"t": 1785759998.8112307, "n": 1912, "h": "12338bad12be3b9e", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path) {\n if (StringUtils.isBlank(path)) {\n return EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "3310cfcd347a00fae2cb0906093c9e3c51c93212": {"t": 1785760000.3014252, "n": 1830, "h": "508f3b2e3dae67dd", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\"\", \"https://ark.cn-beijing.volces.com/api/v3/embeddings\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path) {\n if (StringUtils.isBlank(path)) {\n return EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "7fdab176bdfcaa1ff05c59fa26d87a930192b072": {"t": 1786067586.812154, "n": 2836, "h": "4ff89b25b8bfa0ef", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.seatunnel.shade.org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n AMAZON(\"https://aws.amazon.com/bedrock\", \"https://aws.amazon.com/bedrock/amazon-models\"),\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings/multimodal\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n DEEPSEEK(\"https://api.deepseek.com/chat/completions\", \"\"),\n MICROSOFT(\"\", \"\"),\n ZHIPU(\n \"https://open.bigmodel.cn/api/paas/v4/chat/completions\",\n \"https://open.bigmodel.cn/api/paas/v4/embeddings\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n private final String MultimodalEmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n this(llmProviderPath, embeddingProviderPath, \"\");\n }\n\n ModelProvider(\n String llmProviderPath,\n String embeddingProviderPath,\n String multimodalEmbeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n MultimodalEmbeddingProviderPath = multimodalEmbeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path, boolean isMultimodalFields) {\n if (StringUtils.isBlank(path)) {\n return isMultimodalFields ? MultimodalEmbeddingProviderPath : EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}, "543f2a5a64d9aac7c63760aa5051ecaf4b852107": {"t": 1786068378.4723303, "n": 2836, "h": "4ff89b25b8bfa0ef", "c": "/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. 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\npackage org.apache.seatunnel.transform.nlpmodel;\n\nimport org.apache.seatunnel.shade.org.apache.commons.lang3.StringUtils;\n\npublic enum ModelProvider {\n AMAZON(\"https://aws.amazon.com/bedrock\", \"https://aws.amazon.com/bedrock/amazon-models\"),\n OPENAI(\"https://api.openai.com/v1/chat/completions\", \"https://api.openai.com/v1/embeddings\"),\n DOUBAO(\n \"https://ark.cn-beijing.volces.com/api/v3/chat/completions\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings\",\n \"https://ark.cn-beijing.volces.com/api/v3/embeddings/multimodal\"),\n QIANFAN(\"\", \"https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings\"),\n KIMIAI(\"https://api.moonshot.cn/v1/chat/completions\", \"\"),\n DEEPSEEK(\"https://api.deepseek.com/chat/completions\", \"\"),\n MICROSOFT(\"\", \"\"),\n ZHIPU(\n \"https://open.bigmodel.cn/api/paas/v4/chat/completions\",\n \"https://open.bigmodel.cn/api/paas/v4/embeddings\"),\n CUSTOM(\"\", \"\"),\n LOCAL(\"\", \"\");\n\n private final String LLMProviderPath;\n private final String EmbeddingProviderPath;\n private final String MultimodalEmbeddingProviderPath;\n\n ModelProvider(String llmProviderPath, String embeddingProviderPath) {\n this(llmProviderPath, embeddingProviderPath, \"\");\n }\n\n ModelProvider(\n String llmProviderPath,\n String embeddingProviderPath,\n String multimodalEmbeddingProviderPath) {\n LLMProviderPath = llmProviderPath;\n EmbeddingProviderPath = embeddingProviderPath;\n MultimodalEmbeddingProviderPath = multimodalEmbeddingProviderPath;\n }\n\n public String usedLLMPath(String path) {\n if (StringUtils.isBlank(path)) {\n return LLMProviderPath;\n }\n return path;\n }\n\n public String usedEmbeddingPath(String path, boolean isMultimodalFields) {\n if (StringUtils.isBlank(path)) {\n return isMultimodalFields ? MultimodalEmbeddingProviderPath : EmbeddingProviderPath;\n }\n return path;\n }\n}\n"}}}}