openai-go icon indicating copy to clipboard operation
openai-go copied to clipboard

The official Go library for the OpenAI API

Results 100 openai-go issues
Sort by recently updated
recently updated
newest added

can @chatcompletion.go support reasoning_content?

## Summary The `ResponseNewParams` fails to JSON unmarshal of list of messages for the `input` parameter (instead of just a simple string). The field-based discriminator union pattern used in `internal/apijson/union.go`...

## Bug Report: SSE Stream Crashes on Empty Events (retry directives, comment lines) ### Description The SDK's `ssestream` package crashes with `unexpected end of JSON input` errors when processing Server-Sent...

… errors Fix crash when parsing SSE streams that contain empty events from retry: directives or comment lines. Fixes #556 ## Problem The eventStreamDecoder creates events with empty Data when...

add this replace to go.mod ``` replace github.com/openai/openai-go/v3 => github.com/weedge/openai-go/v3 v3.0.0-20251017144926-bc848e556df2 ```

The parameters were in the wrong order, causing 400 bad request errors. Also added test to verify the correct URL path is used during polling.

This is just like #538, but for `VectorStoreFileBatchService.PollStatus`. ## Summary The `PollStatus` method in `VectorStoreFileBatchService` passes parameters to the `Get` method in the wrong order, causing API calls to fail...

Problem: In the current OpenAI Go SDK, the inline union ChatCompletionNewParamsResponseFormatUnion has a deserialization bug: The union contains three inline structs: OfText, OfJSONSchema, and OfJSONObject, each of which has a...

change `go get -u 'github.com/openai/openai-go/[email protected]'` to `go get -u 'github.com/openai/openai-go/[email protected]'`