Skip to content

Commit

Permalink
#19: Spring Boot Starter For Qian fan
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain4j committed Jul 1, 2024
1 parent 41c33ef commit cd5d1c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import dev.langchain4j.model.output.Response;
import dev.langchain4j.model.qianfan.*;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;

Expand All @@ -24,7 +25,9 @@
* @version: 1.0
* @Description:
*/
@EnabledIfEnvironmentVariable(named = "QIANFAN_API_KEY", matches = ".+")
class AutoConfigIT {

private static final String API_KEY = System.getenv("QIANFAN_API_KEY");
private static final String SECRET_KEY = System.getenv("QIANFAN_SECRET_KEY");

Expand Down

0 comments on commit cd5d1c8

Please sign in to comment.