This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 9899c01c6a7 [Chore](compile) add compile check in llm (#55568)
9899c01c6a7 is described below
commit 9899c01c6a7be8dff3329ffb6dd5af2d176e7fe0
Author: linrrarity <[email protected]>
AuthorDate: Wed Sep 3 15:08:08 2025 +0800
[Chore](compile) add compile check in llm (#55568)
---
be/src/vec/functions/llm/functions_llm.h | 3 +++
be/src/vec/functions/llm/llm_adapter.h | 3 +++
fe/fe-core/src/main/java/org/apache/doris/catalog/LLMResource.java | 4 ++--
gensrc/thrift/PaloInternalService.thrift | 4 ++--
4 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/be/src/vec/functions/llm/functions_llm.h
b/be/src/vec/functions/llm/functions_llm.h
index f459b31c0ad..9dab80819de 100644
--- a/be/src/vec/functions/llm/functions_llm.h
+++ b/be/src/vec/functions/llm/functions_llm.h
@@ -43,6 +43,8 @@
#include "vec/functions/llm/llm_adapter.h"
namespace doris::vectorized {
+#include "common/compile_check_begin.h"
+
// Base class for LLM-based functions
template <typename Derived>
class LLMFunction : public IFunction {
@@ -329,4 +331,5 @@ private:
}
};
+#include "common/compile_check_end.h"
} // namespace doris::vectorized
\ No newline at end of file
diff --git a/be/src/vec/functions/llm/llm_adapter.h
b/be/src/vec/functions/llm/llm_adapter.h
index e26414a16fb..3cb56ceeb32 100644
--- a/be/src/vec/functions/llm/llm_adapter.h
+++ b/be/src/vec/functions/llm/llm_adapter.h
@@ -34,6 +34,7 @@
#include "rapidjson/writer.h"
namespace doris::vectorized {
+#include "common/compile_check_begin.h"
class LLMAdapter {
public:
virtual ~LLMAdapter() = default;
@@ -937,4 +938,6 @@ public:
return (it != adapters.end()) ? it->second() : nullptr;
}
};
+
+#include "common/compile_check_end.h"
} // namespace doris::vectorized
\ No newline at end of file
diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/LLMResource.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/LLMResource.java
index 39e2d655b3d..ad064015b86 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/LLMResource.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/LLMResource.java
@@ -168,13 +168,13 @@ public class LLMResource extends Resource {
+
properties.get(LLMProperties.MAX_TOKEN));
}
try {
-
tLLMResource.setMaxRetries(Long.parseLong(properties.get(LLMProperties.MAX_RETRIES)));
+
tLLMResource.setMaxRetries(Integer.parseInt(properties.get(LLMProperties.MAX_RETRIES)));
} catch (NumberFormatException e) {
throw new NumberFormatException("Failed to parse max_retries: "
+
properties.get(LLMProperties.MAX_RETRIES));
}
try {
-
tLLMResource.setRetryDelaySecond(Long.parseLong(properties.get(LLMProperties.RETRY_DELAY_SECOND)));
+
tLLMResource.setRetryDelaySecond(Integer.parseInt(properties.get(LLMProperties.RETRY_DELAY_SECOND)));
} catch (NumberFormatException e) {
throw new NumberFormatException("Failed to parse
retry_delay_second: "
+
properties.get(LLMProperties.RETRY_DELAY_SECOND));
diff --git a/gensrc/thrift/PaloInternalService.thrift
b/gensrc/thrift/PaloInternalService.thrift
index fdcf52e0fa3..f81447f94d1 100644
--- a/gensrc/thrift/PaloInternalService.thrift
+++ b/gensrc/thrift/PaloInternalService.thrift
@@ -737,8 +737,8 @@ struct TLLMResource {
4: optional string api_key
5: optional double temperature
6: optional i64 max_tokens
- 7: optional i64 max_retries
- 8: optional i64 retry_delay_second
+ 7: optional i32 max_retries
+ 8: optional i32 retry_delay_second
9: optional string anthropic_version
10: optional i32 dimensions
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]