generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 19
feat: [OpenAI] PoC - Responses API support with OpenAI SDK Adapter #794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rpanackal
wants to merge
26
commits into
main
Choose a base branch
from
feat/poc-openai-responses-apache
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
27b7e3f
Minimal new module setup including spec
rpanackal a2c9456
Generation partial-success
rpanackal aed34ae
Remove examples
rpanackal 9e7c90d
Successfully filter by path
rpanackal a9a299a
Attach spec filter command
rpanackal eaf74ba
Initial setup
rpanackal 372769e
Successful PoC with OpenAI Models
rpanackal 3726089
Version 1
rpanackal 01c7f61
Stable api
rpanackal c921a86
Change class name
rpanackal 2491d07
Add tests
rpanackal c004481
fix dependency analyse issues
rpanackal fbff9b0
Initial draft untested
rpanackal 68524b2
Second draft
rpanackal 37ea275
Successful E2E
rpanackal 3bda22a
Streaming initial draft
rpanackal 229db60
Streaming E2E with chat completion
rpanackal 7ffe122
isStreaming check simplified
rpanackal 5553e1b
Cleanup PoC and rename module
rpanackal 2a55080
Reduce Javadoc verbosity
rpanackal 4ca8af1
Restrict to `/responses` api
rpanackal 7061cbc
Cleanup comments
rpanackal 6eb57fc
Charles review suggestions
rpanackal 38ced86
Charles review - round 2 suggestions
rpanackal d8e1902
Add dependency
rpanackal dae1906
Mark openai dependency optional and new client `@Beta`
rpanackal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| <?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.17.0-SNAPSHOT</version> | ||
| <relativePath>../../pom.xml</relativePath> | ||
| </parent> | ||
| <groupId>com.sap.ai.sdk.foundationmodels</groupId> | ||
| <artifactId>openai-v1</artifactId> | ||
| <name>OpenAI V1 API 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> | ||
| <scm> | ||
| <connection>scm:git:git://github.com/SAP/ai-sdk-java.git</connection> | ||
| <developerConnection>scm:git:ssh://github.com:SAP/ai-sdk-java.git</developerConnection> | ||
| <url>https://github.com/SAP/ai-sdk-java/tree/main</url> | ||
| </scm> | ||
| <properties> | ||
| <project.rootdir>${project.basedir}/../../</project.rootdir> | ||
| <coverage.complexity>48%</coverage.complexity> | ||
| <coverage.line>60%</coverage.line> | ||
| <coverage.instruction>58%</coverage.instruction> | ||
| <coverage.branch>50%</coverage.branch> | ||
| <coverage.method>56%</coverage.method> | ||
| <coverage.class>0.75%</coverage.class> | ||
rpanackal marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </properties> | ||
| <dependencies> | ||
| <!-- scope "compile" --> | ||
| <dependency> | ||
| <groupId>com.sap.ai.sdk</groupId> | ||
| <artifactId>core</artifactId> | ||
| </dependency> | ||
| <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>com.openai</groupId> | ||
| <artifactId>openai-java-core</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>org.slf4j</groupId> | ||
| <artifactId>slf4j-api</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.google.code.findbugs</groupId> | ||
| <artifactId>jsr305</artifactId> | ||
| </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.assertj</groupId> | ||
| <artifactId>assertj-core</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.wiremock</groupId> | ||
| <artifactId>wiremock</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| </dependencies> | ||
| </project> | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.