openai
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.sap.ai.sdk.foundationmodels</groupId> <artifactId>openai</artifactId> <version>1.7.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.sap.ai.sdk</groupId> <artifactId>sdk-parent</artifactId> <version>1.7.0</version> <relativePath>../../pom.xml</relativePath> </parent> <groupId>com.sap.ai.sdk.foundationmodels</groupId> <artifactId>openai</artifactId> <name>OpenAI client</name> <description>SAP Cloud SDK for AI is the official Software Development Kit (SDK) for SAP AI Core, SAP Generative AI Hub, and Orchestration Service. This is the client for consuming Azure OpenAI models without Orchestration Service.</description> <url>https://github.com/SAP/ai-sdk-java?tab=readme-ov-file#documentation</url> <organization> <name>SAP SE</name> <url>https://www.sap.com</url> </organization> <licenses> <license> <name>The Apache Software License, Version 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <developers> <developer> <name>SAP</name> <email>cloudsdk@sap.com</email> <organization>SAP SE</organization> <organizationUrl>https://www.sap.com</organizationUrl> </developer> </developers> <properties> <project.rootdir>${project.basedir}/../../</project.rootdir> <coverage.complexity>72%</coverage.complexity> <coverage.line>80%</coverage.line> <coverage.instruction>76%</coverage.instruction> <coverage.branch>70%</coverage.branch> <coverage.method>83%</coverage.method> <coverage.class>84%</coverage.class> </properties> <dependencies> <dependency> <groupId>com.sap.cloud.sdk.cloudplatform</groupId> <artifactId>cloudplatform-connectivity</artifactId> </dependency> <dependency> <groupId>com.sap.cloud.sdk.cloudplatform</groupId> <artifactId>connectivity-apache-httpclient5</artifactId> </dependency> <dependency> <groupId>org.apache.httpcomponents.client5</groupId> <artifactId>httpclient5</artifactId> </dependency> <dependency> <groupId>org.apache.httpcomponents.core5</groupId> <artifactId>httpcore5</artifactId> </dependency> <dependency> <groupId>com.sap.ai.sdk</groupId> <artifactId>core</artifactId> </dependency> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> </dependency> <dependency> <groupId>io.vavr</groupId> <artifactId>vavr</artifactId> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </dependency> <dependency> <groupId>org.springframework.ai</groupId> <artifactId>spring-ai-core</artifactId> <optional>true</optional> </dependency> <!-- scope "provided" --> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <scope>provided</scope> </dependency> <!-- scope "test" --> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-params</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.wiremock</groupId> <artifactId>wiremock</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.github.javaparser</groupId> <artifactId>javaparser-core</artifactId> <scope>test</scope> </dependency> </dependencies> <profiles> <profile> <id>generate</id> <activation> <activeByDefault>false</activeByDefault> <property> <name>generate</name> </property> </activation> <build> <plugins> <plugin> <groupId>com.sap.cloud.sdk.datamodel</groupId> <artifactId>openapi-generator-maven-plugin</artifactId> <configuration> <outputDirectory>${project.basedir}/src/main/java</outputDirectory> <apiMaturity>beta</apiMaturity> <enableOneOfAnyOfGeneration>true</enableOneOfAnyOfGeneration> <compileScope>COMPILE</compileScope> <deleteOutputDirectory>true</deleteOutputDirectory> </configuration> <executions> <execution> <id>openai</id> <goals> <goal>generate</goal> </goals> <phase>generate-sources</phase> <configuration> <inputSpec>${project.basedir}/src/main/resources/spec/openapi-2024-10-21.yaml</inputSpec> <apiPackage>com.sap.ai.sdk.foundationmodels.openai.generated.api</apiPackage> <modelPackage>com.sap.ai.sdk.foundationmodels.openai.generated.model</modelPackage> <generateApis>false</generateApis> <additionalProperties> <enumUnknownDefaultCase>true</enumUnknownDefaultCase> <useOneOfInterfaces>true</useOneOfInterfaces> <useOneOfCreators>true</useOneOfCreators> <useFloatArrays>true</useFloatArrays> <!-- new exclude paths --> <excludePaths>/deployments/{deployment-id}/completions /deployments/{deployment-id}/audio/transcriptions /deployments/{deployment-id}/audio/translations /deployments/{deployment-id}/images/generations</excludePaths> <!-- new exclude properties --> <excludeProperties>chatCompletionResponseMessage.context createChatCompletionRequest.data_sources</excludeProperties> <!-- new: remove unassigned components --> <removeUnusedComponents>true</removeUnusedComponents> </additionalProperties> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>