diff --git a/agents-flex-llm/agents-flex-llm-gitee/src/test/java/com/agentsflex/llm/gitee/GiteeAiEmbeddingTest.java b/agents-flex-llm/agents-flex-llm-gitee/src/test/java/com/agentsflex/llm/gitee/GiteeAiEmbeddingTest.java new file mode 100644 index 0000000..2142f5f --- /dev/null +++ b/agents-flex-llm/agents-flex-llm-gitee/src/test/java/com/agentsflex/llm/gitee/GiteeAiEmbeddingTest.java @@ -0,0 +1,16 @@ +package com.agentsflex.llm.gitee; + +import com.agentsflex.core.document.Document; +import com.agentsflex.core.store.VectorData; + +public class GiteeAiEmbeddingTest { + + public static void main(String[] args) { + GiteeAiLlmConfig config = new GiteeAiLlmConfig(); + config.setApiKey("your-api-key"); + + GiteeAiLlm llm = new GiteeAiLlm(config); + VectorData result = llm.embed(Document.of("你好")); + System.out.println(result); + } +}