Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

SDK Size

オープン
#602 コメント 7 件 リアクション 7 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
静か
技術スタック
java, kotlin

調査の方向性

まず openai-java-core 依存関係を測定し、生成された com/openai/models と com/openai/services の内容、特に ResponseStreamEvent.class を調査します。Kotlin 依存関係の範囲を特定し、生成コードと SDK サイズを削減するための実行可能な設計を見つけます。依頼された依存関係とサイズの削減が、SDK を壊すことなく実証されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

question sdk

Context

  • The jar dependency adds around 30MB to my final spring boot project, based on the main dependency and its child dependencies.
  • The decompressed openai-java-core takes about 76MB.
  • The ResponseStreamEvent.class is by itself 91KB. The contents of this file are more equivalent to a god function written in C than object oriented code written in Java. Maybe due to some sort of scripted code creation?
 62M	./com/openai/models
 10M	./com/openai/services

Concerns

  • The first concern is the added size in terms of MB to the project size.
  • The second concern is that when this code runs, it will instantiate larger than necessary objects that will consume more memory (compared to a better design).
    • For instance ResponseStreamEvent, it has: 51 member variables, leading to very large functions such as equals, hashcode, toString, and most other methods; across 2400 lines of code
  • The third concern is about forcing integrators to have to pull in Kotlin into a server side project. Additionally, when there is no intention to run on Android.

Feature Request

Please consider to:

  • refactor and remove the kotlin dependency
  • refactor and reduce the overall SDK size.
主要言語
Kotlin
スター
1.5k
フォーク
266
平均マージ
9時間 50分
マージ済み PR(30日)
146

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openai/openai-java のほかの issue

openai/openai-java の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。