Skip to content

Tags: sashabaranov/go-openai

Tags

v1.35.6

Toggle v1.35.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Support Attachments in MessageRequest (#890)

* add attachments in MessageRequest

* Move tools const to message

* remove const, just use assistanttool const

v1.32.5

Toggle v1.32.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
add chatcompletion stream delta refusal and logprobs (#882)

* add chatcompletion stream refusal and logprobs

* fix slice to struct

* add  integration test

* fix lint

* fix lint

* fix: the object should be pointer

---------

Co-authored-by: genglixia <genglixia@enjoypartytime.com>

v1.32.4

Toggle v1.32.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Updated checkPromptType function to handle prompt list in completions (

…#885)

* updated checkPromptType function to handle prompt list in completions

* removed generated test file

* added corresponding unit testcases

* Updated to use less nesting with early returns

v1.32.3

Toggle v1.32.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: Updated Assistent struct with latest fields based on OpenAI docs (

…#883)

v1.32.2

Toggle v1.32.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Completion API: add Store and Metadata parameters (#878)

v1.32.1

Toggle v1.32.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adding new moderation model constants (#875)

v1.32.0

Toggle v1.32.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Completion API: add new params (#870)

* Completion API: add 'store' param

This param allows you to opt a completion request in to being stored,
for use in distillations and evals.

* Add cached and audio tokens to usage structs

These have been added to the completions API recently:
https://platform.openai.com/docs/api-reference/chat/object#chat/object-usage

v1.31.0

Toggle v1.31.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: usage struct add CompletionTokensDetails (#863)

v1.30.3

Toggle v1.30.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add ParallelToolCalls to RunRequest (#847)

v1.30.2

Toggle v1.30.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
add max_completions_tokens for o1 series models (#857)

* add max_completions_tokens for o1 series models

* add validation for o1 series models validataion + beta limitations