Bump github.com/sashabaranov/go-openai from 1.37.0 to 1.39.0 (#2145)

Bumps
[github.com/sashabaranov/go-openai](https://github.com/sashabaranov/go-openai)
from 1.37.0 to 1.39.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sashabaranov/go-openai/releases">github.com/sashabaranov/go-openai's
releases</a>.</em></p>
<blockquote>
<h2>v1.39.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Add support for reasoning_content field in chat completion messages
for DeepSeek R1 by <a
href="https://github.com/goodenough227"><code>@​goodenough227</code></a>
in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/925">sashabaranov/go-openai#925</a></li>
<li>Adapt different stream data prefix, with or without space by <a
href="https://github.com/panzhongxian"><code>@​panzhongxian</code></a>
in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/945">sashabaranov/go-openai#945</a></li>
<li>Add support for <code>o4-mini</code> and <code>o3</code> by <a
href="https://github.com/rorymalcolm"><code>@​rorymalcolm</code></a> in
<a
href="https://redirect.github.com/sashabaranov/go-openai/pull/968">sashabaranov/go-openai#968</a></li>
<li>Add CompletionRequest.StreamOptions by <a
href="https://github.com/stmcginnis"><code>@​stmcginnis</code></a> in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/959">sashabaranov/go-openai#959</a></li>
<li>Remove redundant typecheck linter by <a
href="https://github.com/alexandear"><code>@​alexandear</code></a> in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/955">sashabaranov/go-openai#955</a></li>
<li>Add Prediction field by <a
href="https://github.com/danielpeng2"><code>@​danielpeng2</code></a> in
<a
href="https://redirect.github.com/sashabaranov/go-openai/pull/970">sashabaranov/go-openai#970</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/goodenough227"><code>@​goodenough227</code></a>
made their first contribution in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/925">sashabaranov/go-openai#925</a></li>
<li><a
href="https://github.com/panzhongxian"><code>@​panzhongxian</code></a>
made their first contribution in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/945">sashabaranov/go-openai#945</a></li>
<li><a
href="https://github.com/stmcginnis"><code>@​stmcginnis</code></a> made
their first contribution in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/959">sashabaranov/go-openai#959</a></li>
<li><a
href="https://github.com/danielpeng2"><code>@​danielpeng2</code></a>
made their first contribution in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/970">sashabaranov/go-openai#970</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/sashabaranov/go-openai/compare/v1.38.3...v1.39.0">https://github.com/sashabaranov/go-openai/compare/v1.38.3...v1.39.0</a></p>
<h2>v1.38.3</h2>
<h2>What's Changed</h2>
<ul>
<li>feat: add new GPT-4.1 model variants to completion.go by <a
href="https://github.com/iktakahiro"><code>@​iktakahiro</code></a> in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/966">sashabaranov/go-openai#966</a></li>
<li>feat: Add missing TTS models and voices by <a
href="https://github.com/netr"><code>@​netr</code></a> in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/958">sashabaranov/go-openai#958</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/netr"><code>@​netr</code></a> made their
first contribution in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/958">sashabaranov/go-openai#958</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/sashabaranov/go-openai/compare/v1.38.2...v1.38.3">https://github.com/sashabaranov/go-openai/compare/v1.38.2...v1.38.3</a></p>
<h2>v1.38.2</h2>
<h2>What's Changed</h2>
<ul>
<li>add enum tag to jsonschema by <a
href="https://github.com/jtarchie"><code>@​jtarchie</code></a> in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/962">sashabaranov/go-openai#962</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/jtarchie"><code>@​jtarchie</code></a>
made their first contribution in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/962">sashabaranov/go-openai#962</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/sashabaranov/go-openai/compare/v1.38.1...v1.38.2">https://github.com/sashabaranov/go-openai/compare/v1.38.1...v1.38.2</a></p>
<h2>v1.38.1</h2>
<h2>What's Changed</h2>
<ul>
<li>feat: add gpt-4.5-preview models by <a
href="https://github.com/liushuangls"><code>@​liushuangls</code></a> in
<a
href="https://redirect.github.com/sashabaranov/go-openai/pull/947">sashabaranov/go-openai#947</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/sashabaranov/go-openai/compare/v1.38.0...v1.38.1">https://github.com/sashabaranov/go-openai/compare/v1.38.0...v1.38.1</a></p>
<h2>v1.38.0</h2>
<h2>What's Changed</h2>
<ul>
<li>ref: add image url support to messages by <a
href="https://github.com/mazyaryousefinia"><code>@​mazyaryousefinia</code></a>
in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/933">sashabaranov/go-openai#933</a></li>
<li>feat: add developer role by <a
href="https://github.com/liushuangls"><code>@​liushuangls</code></a> in
<a
href="https://redirect.github.com/sashabaranov/go-openai/pull/936">sashabaranov/go-openai#936</a></li>
<li>fix: remove validateO1Specific by <a
href="https://github.com/liushuangls"><code>@​liushuangls</code></a> in
<a
href="https://redirect.github.com/sashabaranov/go-openai/pull/939">sashabaranov/go-openai#939</a></li>
<li>feat: add Anthropic API support with custom version header by <a
href="https://github.com/danackerson"><code>@​danackerson</code></a> in
<a
href="https://redirect.github.com/sashabaranov/go-openai/pull/934">sashabaranov/go-openai#934</a></li>
<li>Fix linter by <a
href="https://github.com/sashabaranov"><code>@​sashabaranov</code></a>
in <a
href="https://redirect.github.com/sashabaranov/go-openai/pull/943">sashabaranov/go-openai#943</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="93a611cf4f"><code>93a611c</code></a>
Add Prediction field (<a
href="https://redirect.github.com/sashabaranov/go-openai/issues/970">#970</a>)</li>
<li><a
href="6836cf6a6f"><code>6836cf6</code></a>
Remove redundant typecheck linter (<a
href="https://redirect.github.com/sashabaranov/go-openai/issues/955">#955</a>)</li>
<li><a
href="da5f9bc9bc"><code>da5f9bc</code></a>
Add CompletionRequest.StreamOptions (<a
href="https://redirect.github.com/sashabaranov/go-openai/issues/959">#959</a>)</li>
<li><a
href="bb5bc27567"><code>bb5bc27</code></a>
Add support for <code>4o-mini</code> and <code>3o</code> (<a
href="https://redirect.github.com/sashabaranov/go-openai/issues/968">#968</a>)</li>
<li><a
href="4cccc6c934"><code>4cccc6c</code></a>
Adapt different stream data prefix, with or without space (<a
href="https://redirect.github.com/sashabaranov/go-openai/issues/945">#945</a>)</li>
<li><a
href="306fbbbe6f"><code>306fbbb</code></a>
Add support for reasoning_content field in chat completion messages for
DeepS...</li>
<li><a
href="658beda2ba"><code>658beda</code></a>
feat: Add missing TTS models and voices (<a
href="https://redirect.github.com/sashabaranov/go-openai/issues/958">#958</a>)</li>
<li><a
href="d68a683815"><code>d68a683</code></a>
feat: add new GPT-4.1 model variants to completion.go (<a
href="https://redirect.github.com/sashabaranov/go-openai/issues/966">#966</a>)</li>
<li><a
href="e99eb54c9d"><code>e99eb54</code></a>
add enum tag to jsonschema (<a
href="https://redirect.github.com/sashabaranov/go-openai/issues/962">#962</a>)</li>
<li><a
href="74d6449f22"><code>74d6449</code></a>
feat: add gpt-4.5-preview models (<a
href="https://redirect.github.com/sashabaranov/go-openai/issues/947">#947</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/sashabaranov/go-openai/compare/v1.37.0...v1.39.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/sashabaranov/go-openai&package-manager=go_modules&previous-version=1.37.0&new-version=1.39.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2025-05-02 10:36:08 -07:00 committed by GitHub
parent a5651fd2cf
commit 03508518cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

2
go.mod
View file

@ -24,7 +24,7 @@ require (
github.com/kevinburke/ssh_config v1.2.0
github.com/mattn/go-sqlite3 v1.14.24
github.com/mitchellh/mapstructure v1.5.0
github.com/sashabaranov/go-openai v1.37.0
github.com/sashabaranov/go-openai v1.39.0
github.com/sawka/txwrap v0.2.0
github.com/shirou/gopsutil/v4 v4.25.1
github.com/skeema/knownhosts v1.3.1

4
go.sum
View file

@ -144,8 +144,8 @@ github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUc
github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sashabaranov/go-openai v1.37.0 h1:hQQowgYm4OXJ1Z/wTrE+XZaO20BYsL0R3uRPSpfNZkY=
github.com/sashabaranov/go-openai v1.37.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
github.com/sashabaranov/go-openai v1.39.0 h1:7Ubg/9njZlBJ8qFs6q5gExpfkAhy3E9VN3pciG7H6pY=
github.com/sashabaranov/go-openai v1.39.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
github.com/sawka/txwrap v0.2.0 h1:V3LfvKVLULxcYSxdMguLwFyQFMEU9nFDJopg0ZkL+94=
github.com/sawka/txwrap v0.2.0/go.mod h1:wwQ2SQiN4U+6DU/iVPhbvr7OzXAtgZlQCIGuvOswEfA=
github.com/shirou/gopsutil/v4 v4.25.1 h1:QSWkTc+fu9LTAWfkZwZ6j8MSUk4A2LV7rbH0ZqmLjXs=