From 268f6edcf688ccfa0cd7d725f537f622310642f3 Mon Sep 17 00:00:00 2001 From: 0007 <0007@qq.com> Date: Wed, 27 Aug 2025 19:57:43 +0800 Subject: [PATCH] Add File --- .../llm/gitee/GiteeAiEmbeddingTest.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 agents-flex-llm/agents-flex-llm-gitee/src/test/java/com/agentsflex/llm/gitee/GiteeAiEmbeddingTest.java 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); + } +}