Skip to content

feat: ChatCompletionsHttpClient - support a custom OkHttpClient and lazily create the shared one#1346

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_943089648
Open

feat: ChatCompletionsHttpClient - support a custom OkHttpClient and lazily create the shared one#1346
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_943089648

Conversation

@copybara-service

Copy link
Copy Markdown

feat: ChatCompletionsHttpClient - support a custom OkHttpClient and lazily create the shared one

Memoize the shared OkHttpClient so its pool/threads are created only after first use,
and add a public ChatCompletionsHttpClient(HttpOptions, OkHttpClient) so callers
can pass their own client.

…azily create the shared one

Memoize the shared OkHttpClient so its pool/threads are created only after first use,
and add a public ChatCompletionsHttpClient(HttpOptions, OkHttpClient) so callers
can pass their own client.

PiperOrigin-RevId: 943089648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant