Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 2 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- main
- next
- 'stl/**'
- 'codegen/stl/**'
pull_request:
branches:
- main
Expand Down Expand Up @@ -47,10 +45,6 @@ jobs:

build:
name: CI / build + Jackson compatibility
if: >-
!(github.repository == 'stainless-sdks/openai-java' &&
github.event_name == 'push' &&
!startsWith(github.ref, 'refs/heads/stl/'))
runs-on: ${{ vars.SDK_GHA_RUNNER || 'ubuntu-24.04' }}
timeout-minutes: 30

Expand Down Expand Up @@ -207,10 +201,7 @@ jobs:
if: >-
always() &&
needs.version_support_matrix.result == 'success' &&
(needs.build.result == 'success' ||
(github.repository == 'stainless-sdks/openai-java' &&
github.event_name == 'push' &&
!startsWith(github.ref, 'refs/heads/stl/')))
needs.build.result == 'success'
runs-on: ${{ vars.SDK_GHA_RUNNER || 'ubuntu-24.04' }}
timeout-minutes: 20

Expand Down Expand Up @@ -272,8 +263,6 @@ jobs:
- name: Verify required jobs succeeded
env:
EVENT_NAME: ${{ github.event_name }}
REPOSITORY: ${{ github.repository }}
REF: ${{ github.ref }}
LINT_RESULT: ${{ needs.lint.result }}
BUILD_RESULT: ${{ needs.build.result }}
TEST_RESULT: ${{ needs.test.result }}
Expand All @@ -284,17 +273,9 @@ jobs:

failed_jobs=()
[[ "$LINT_RESULT" == "success" ]] || failed_jobs+=("lint: $LINT_RESULT")
[[ "$BUILD_RESULT" == "success" ]] || failed_jobs+=("build: $BUILD_RESULT")
[[ "$TEST_RESULT" == "success" ]] || failed_jobs+=("test: $TEST_RESULT")

if [[ "$EVENT_NAME" == "push" &&
"$REPOSITORY" == "stainless-sdks/openai-java" &&
"$REF" != refs/heads/stl/* ]]; then
[[ "$BUILD_RESULT" == "skipped" ]] ||
failed_jobs+=("build: expected skipped, got $BUILD_RESULT")
else
[[ "$BUILD_RESULT" == "success" ]] || failed_jobs+=("build: $BUILD_RESULT")
fi

if [[ "$EVENT_NAME" == "pull_request" &&
"$API_COMPATIBILITY_RESULT" != "success" ]]; then
failed_jobs+=("API compatibility: $API_COMPATIBILITY_RESULT")
Expand Down
108 changes: 0 additions & 108 deletions .github/workflows/stainless-maven-artifacts.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .stats.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ OpenAIClient client = OpenAIOkHttpClient.builder()

### Why don't you use plain `enum` classes?

Java `enum` classes are not trivially [forwards compatible](https://www.stainless.com/blog/making-java-enums-forwards-compatible). Using them in the SDK could cause runtime exceptions if the API is updated to respond with a new enum value.
Java `enum` classes are not trivially forwards compatible. Using them in the SDK could cause runtime exceptions if the API is updated to respond with a new enum value.

### Why do you represent fields using `JsonField<T>` instead of just plain `T`?

Expand Down
28 changes: 6 additions & 22 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,12 @@

## Reporting Security Issues

This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.

To report a security issue, please contact the Stainless team at security@stainless.com.
Please report potential security vulnerabilities through OpenAI's
[coordinated vulnerability disclosure process](https://openai.com/policies/coordinated-vulnerability-disclosure-policy).
For questions about that process, contact disclosure@openai.com.

## Responsible Disclosure

We appreciate the efforts of security researchers and individuals who help us maintain the security of
SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible
disclosure practices by allowing us a reasonable amount of time to investigate and address the issue
before making any information public.

## Reporting Non-SDK Related Security Issues

If you encounter security issues that are not directly related to SDKs but pertain to the services
or products provided by OpenAI, please follow the respective company's security reporting guidelines.

### OpenAI Terms and Policies

Our Security Policy can be found at [Security Policy URL](https://openai.com/policies/coordinated-vulnerability-disclosure-policy).

Please contact disclosure@openai.com for any questions or concerns regarding the security of our services.

---

Thank you for helping us keep the SDKs and systems they interact with secure.
Please allow OpenAI a reasonable amount of time to investigate and address the
issue before making information public. Thank you for helping us keep this SDK
and the systems it interacts with secure.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.client.okhttp

import com.fasterxml.jackson.databind.json.JsonMapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.client.okhttp

import com.fasterxml.jackson.databind.json.JsonMapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core

import java.util.stream.Stream
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core

import com.openai.core.http.AsyncStreamResponse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core

import com.fasterxml.jackson.databind.json.JsonMapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core

/** The level at which to log request and response information. */
Expand Down
2 changes: 0 additions & 2 deletions openai-java-core/src/main/kotlin/com/openai/core/Page.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core

import java.util.concurrent.CompletableFuture
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core

import java.util.Objects
Expand Down
2 changes: 0 additions & 2 deletions openai-java-core/src/main/kotlin/com/openai/core/Timeout.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core

import java.time.Duration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

@file:JvmName("ErrorHandler")

package com.openai.core.handlers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

@file:JvmName("SseHandler")

package com.openai.core.handlers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core.http

import com.openai.core.JsonArray
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

@file:JvmName("HttpRequestBodies")

package com.openai.core.http
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core.http

import java.io.InputStream
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core.http

import com.openai.core.LogLevel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core.http

import com.openai.core.JsonArray
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core.http

import com.openai.core.DefaultSleeper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.core.http

import com.fasterxml.jackson.databind.json.JsonMapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.errors

import com.openai.core.JsonField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// File generated from our OpenAPI spec by Stainless.

package com.openai.models.beta.realtime

import com.fasterxml.jackson.annotation.JsonAnyGetter
Expand Down
Loading
Loading