You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,51 @@
1
1
# Changelog
2
2
3
+
## 2.0.0 (2025-08-07)
4
+
5
+
Full Changelog: [v1.12.0...v2.0.0](https://github.com/openai/openai-go/compare/v1.12.0...v2.0.0)
6
+
7
+
### Breaking changes
8
+
9
+
With the launch of `custom` tools in Chat Completions, `function` tools have been renamed to clarify the difference between the two.
10
+
11
+
`ChatCompletionToolParam` has become a union and is now named `ChatCompletionToolUnionParam`.
12
+
13
+
Older versions of the SDK used function tools: to migrate
14
+
15
+
16
+
```diff
17
+
- openai.ChatCompletionToolParam{
18
+
- Function: openai.FunctionDefinitionParam{
19
+
+ openai.ChatCompletionFunctionTool(
20
+
+ openai.FunctionDefinitionParam{
21
+
Name: "get_weather",
22
+
Description: openai.String("Get weather at the given location"),
23
+
Parameters: openai.FunctionParameters{ … },
24
+
+ },
25
+
+ )
26
+
- },
27
+
```
28
+
29
+
### Features
30
+
31
+
***api:** adds GPT-5 and new API features: platform.openai.com/docs/guides/gpt-5 ([af46c88](https://github.com/openai/openai-go/commit/af46c885ea2414ba2b960f5d3accce89699a6250))
0 commit comments