openai / openai/openai-java

Support interceptors

Open
#339 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement sdk
Dominant language
Kotlin
Stars
1.5k
Forks
264
Avg merge
9h 46m
Merged PRs (30d)
96

Description

Feature Request

Description

  • Support adding interceptors into OkHttp client, allowing users to customize and extend its behavior.
  • Reference: OkHttp Interceptors

Use case

  • The interceptor mechanism provides a flexible way to modify requests and responses, enabling various enhancements such as logging, authentication, and request modification.
  • For organizations and teams using this library, interceptors offer a standardised approach to extending functionality while maintaining consistency across implementations.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked OkHttp Interceptors reference and the repository's client-construction entry points. The issue names no files or tests, so first identify where interceptor configuration belongs; done should mean users can add interceptors that customize requests and responses, with coverage for that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.