Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
fd41f7a
Fix integration test (#762)
TheAdamSmith Jun 13, 2024
7e96c71
run integration tests (#769)
sashabaranov Jun 13, 2024
c69c3bb
integration tests: pass openai secret (#770)
sashabaranov Jun 13, 2024
99cc170
feat: support batches api (#746)
eiixy Jun 13, 2024
68acf22
Support Tool Resources properties for Threads (#760)
pkosiec Jun 13, 2024
0a42130
feat: provide vector store (#772)
Pengguancheng Jun 19, 2024
e311859
remove errors.Join (#778)
sashabaranov Jun 26, 2024
03851d2
allow custom voice and speech models (#691)
adrianliechti Jun 30, 2024
727944c
feat: ParallelToolCalls to ChatCompletionRequest with helper function…
structwafel Jul 12, 2024
3e47e6f
fix: #790 (#798)
eiixy Jul 19, 2024
27c1c56
feat: Add GPT-4o Mini model support (#796)
danielchalef Jul 19, 2024
92f4830
fix: #794 (#797)
eiixy Jul 19, 2024
ae903d7
fix: Updated ThreadMessage struct with latest fields based on OpenAI …
ecoralic Jul 19, 2024
a7e9f0e
add hyperparams (#793)
janukobytsch Jul 19, 2024
966ee68
Add New Optional Parameters to `AssistantRequest` Struct (#795)
Vanessamae23 Jul 19, 2024
581da2f
fix: #804 (#807)
eiixy Jul 28, 2024
dbe726c
Add support for `gpt-4o-2024-08-06` (#812)
danielchalef Aug 7, 2024
623074c
feat: Support Structured Outputs (#813)
eiixy Aug 7, 2024
6439e1f
Make reponse format JSONSchema optional (#820)
tylergannon Aug 7, 2024
1880333
Run integration tests for PRs (#823)
HaraldNordgren Aug 9, 2024
2c6889e
fix: #788 (#800)
eiixy Aug 10, 2024
dd7f582
fix: fullURL endpoint generation (#817)
eiixy Aug 16, 2024
d86425a
Allow structured outputs via function calling (#828)
greysteil Aug 16, 2024
6d02119
feat: Support Delete Message API (#799)
kappa-lab Aug 22, 2024
5162adb
Support http client middlewareing (#830)
michurin Aug 23, 2024
a3bd256
Improve handling of JSON Schema in OpenAI API Response Context (#819)
eiixy Aug 24, 2024
030b7cb
fix integration tests (#834)
sashabaranov Aug 24, 2024
c37cf9a
Dynamic model (#838)
mathisen99 Sep 1, 2024
643da8d
depricated model GPT3Ada changed to GPT3Babbage002 (#843)
Arundas666 Sep 4, 2024
194a03e
Add refusal (#844)
qhenkart Sep 11, 2024
a5fb553
Support OpenAI reasoning models (#850)
abatilo Sep 17, 2024
1ec8c24
fix: jsonschema integer validation (#852)
WeiAnAn Sep 20, 2024
9add1c3
add max_completions_tokens for o1 series models (#857)
chococola Sep 20, 2024
9a4f3a7
feat: add ParallelToolCalls to RunRequest (#847)
kenshin54 Sep 20, 2024
e095df5
run_id string Optional (#855)
floodwm Sep 20, 2024
38bdc81
Optimize Client Error Return (#856)
eiixy Sep 26, 2024
7f80303
Fix max_completion_tokens (#860)
alexsacr Sep 26, 2024
e9d8485
fix: ParallelToolCalls should be added to RunRequest (#861)
kenshin54 Sep 26, 2024
fdd59d9
feat: usage struct add CompletionTokensDetails (#863)
liushuangls Sep 26, 2024
bac7d59
fix MaxCompletionTokens typo (#862)
l-winston Oct 3, 2024
7c145eb
add jailbreak filter result, add ContentFilterResults on output (#864)
juliomartinsdev Oct 3, 2024
9913264
Completion API: add new params (#870)
isaacseymour Oct 9, 2024
cfe15ff
return response body as byte slice for RequestError type (#873)
AyushSawant18588 Oct 14, 2024
21f7134
Adding new moderation model constants (#875)
Mhjacobs Oct 14, 2024
b162541
Cleanup (#879)
sashabaranov Oct 15, 2024
9fe2c6c
Completion API: add Store and Metadata parameters (#878)
smackcrane Oct 15, 2024
fb15ff9
Handling for non-json response (#881)
AyushSawant18588 Oct 21, 2024
3672c0d
fix: Updated Assistent struct with latest fields based on OpenAI docs…
ecoralic Oct 21, 2024
6e08732
Updated checkPromptType function to handle prompt list in completions…
AyushSawant18588 Oct 25, 2024
d10f1b8
add chatcompletion stream delta refusal and logprobs (#882)
Yu0u Oct 29, 2024
f5e6e0e
Added Vector Store File List properties that allow for pagination (#891)
MattDavisRV Nov 8, 2024
6d066bb
Support Attachments in MessageRequest (#890)
kodernubie Nov 8, 2024
b3ece4d
Updated client_test to solve lint error (#900)
AyushSawant18588 Nov 19, 2024
1687616
o1 model support stream (#904)
ldnvnbl Nov 20, 2024
74ed75f
Make user field optional in embedding request (#899)
nagar-ajay Nov 20, 2024
21fa42c
feat: add gpt-4o-2024-11-20 model (#905)
liushuangls Nov 30, 2024
c203ca0
feat: add RecvRaw (#896)
WqyJh Nov 30, 2024
af5355f
Fix ID field to be optional (#911)
TimMisiak Dec 8, 2024
56a9acf
Ignore test.mp3 (#913)
sashabaranov Dec 8, 2024
2a0ff5a
Added additional_messages (#914)
sabuhigr Dec 27, 2024
7a2915a
Simplify tests with T.TempDir (#929)
alexandear Jan 31, 2025
9823a8b
Chat Completion API: add ReasoningEffort and new o1 models (#928)
trevorcreech Jan 31, 2025
45aa996
Make "Content" field in "ChatCompletionMessage" omitempty (#926)
saileshd1402 Jan 31, 2025
2054db0
Add support for O3-mini (#930)
rorymalcolm Feb 6, 2025
a62919e
ref: add image url support to messages (#933)
mazyaryousefinia Feb 9, 2025
c0a9a75
feat: add developer role (#936)
liushuangls Feb 12, 2025
85f578b
fix: remove validateO1Specific (#939)
liushuangls Feb 17, 2025
be2e238
feat: add Anthropic API support with custom version header (#934)
danackerson Feb 25, 2025
261721b
Fix linter (#943)
sashabaranov Feb 25, 2025
74d6449
feat: add gpt-4.5-preview models (#947)
liushuangls Mar 4, 2025
e99eb54
add enum tag to jsonschema (#962)
jtarchie Apr 13, 2025
d68a683
feat: add new GPT-4.1 model variants to completion.go (#966)
Apr 23, 2025
658beda
feat: Add missing TTS models and voices (#958)
netr Apr 26, 2025
306fbbb
Add support for reasoning_content field in chat completion messages f…
xushuanglong227 Apr 29, 2025
4cccc6c
Adapt different stream data prefix, with or without space (#945)
panzhongxian Apr 29, 2025
bb5bc27
Add support for `4o-mini` and `3o` (#968)
rorymalcolm Apr 29, 2025
da5f9bc
Add CompletionRequest.StreamOptions (#959)
stmcginnis Apr 29, 2025
6836cf6
Remove redundant typecheck linter (#955)
alexandear Apr 29, 2025
93a611c
Add Prediction field (#970)
danielpeng2 Apr 29, 2025
d65f0cb
Fix: Corrected typo in O4Mini20250416 model name and endpoint map. (#…
bakatz May 3, 2025
5ea214a
Improve unit test coverage (#984)
sashabaranov May 3, 2025
77ccac8
Upgrade golangci-lint to 2.1.5 (#986)
sashabaranov May 3, 2025
6181fac
update codecov action, pass token (#987)
sashabaranov May 4, 2025
8ba38f6
remove backup file (#996)
sashabaranov May 13, 2025
0116f29
feat: add support for image generation using `gpt-image-1` (#971)
PChaparro May 13, 2025
6aaa732
add ChatTemplateKwargs to ChatCompletionRequest (#980)
justa-cai May 13, 2025
4d2e7ab
fix lint (#998)
sashabaranov May 13, 2025
8c65b35
update image api *os.File to io.Reader (#994)
Axb12 May 20, 2025
ff9d83a
skip json field (#1009)
jtarchie May 29, 2025
d7dca83
fix image api missing filename bug (#1017)
Axb12 Jun 16, 2025
a931bf7
test: enhance error accumulator and form builder tests, add marshalle…
Whitea029 Jun 17, 2025
c125ae2
Fix for removing usage in every stream chunk response. (#1022)
Hritik003 Jun 25, 2025
8e9b2ac
fix: properly unmarshal JSON schema in ChatCompletionResponseFormatJS…
eiixy Jul 8, 2025
bd612ce
Add support for Chat Completion Service Tier (#1023)
mathewtinsley Jul 8, 2025
c650976
Support $ref and $defs in JSON Schema (#1030)
eiixy Jul 10, 2025
1bf77f6
Improve unit test coverage (#1032)
sashabaranov Jul 10, 2025
a0c185f
Removed root $ref from GenerateSchemaForType (#1033)
eiixy Jul 11, 2025
575aff4
Add tests for form and request builders (#1036)
sashabaranov Jul 11, 2025
88eb1df
Ignore codecov coverage for examples and internal/test (#1038)
sashabaranov Jul 11, 2025
8d681e7
Increase image.go test coverage to 100% (#1039)
sashabaranov Jul 11, 2025
8665ad7
Increase jsonschema test coverage (#1040)
sashabaranov Jul 11, 2025
1e91217
test: cover CreateFile request builder failure (#1041)
sashabaranov Jul 11, 2025
3bb1014
ci: enable version compatibility vet (#1042)
sashabaranov Jul 11, 2025
bd36c45
Support for extra_body parameter for embeddings API (#906)
AyushSawant18588 Jul 11, 2025
e6c1d3e
Increase jsonschema test coverage (#1043)
sashabaranov Jul 11, 2025
181c0e8
Add tests for internal utilities (#1044)
sashabaranov Jul 11, 2025
4f87294
Add GuidedChoice to ChatCompletionRequest (#1034)
AyushSawant18588 Jul 19, 2025
c4273cb
fix(chat): shorten comment to pass linter (#1050)
sashabaranov Jul 19, 2025
f7d6ece
add GPT-5 model constants and reasoning validation (#1062)
behzadsp Aug 11, 2025
f71d1a6
feat: add safety_identifier params (#1066)
liushuangls Aug 12, 2025
8e5611c
Add Verbosity parameter to Chat Completion Request (#1064)
azdaev Aug 29, 2025
5d7a276
Stop stripping dots in azure model mapper for models that aren't 3.5 …
krissetto Oct 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage:
ignore:
- "examples/**"
- "internal/test/**"
21 changes: 21 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Integration tests

on:
push:
branches:
- master

jobs:
integration_tests:
name: Run integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Run integration tests
env:
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
run: go test -v -tags=integration ./api_integration_test.go
14 changes: 8 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.24'
- name: Run vet
run: |
go vet .
go vet -stdversion ./...
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v7
with:
version: latest
version: v2.1.5
- name: Run tests
run: go test -race -covermode=atomic -coverprofile=coverage.out -v .
run: go test -race -covermode=atomic -coverprofile=coverage.out -v ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@

# Auth token for tests
.openai-token
.idea
.idea

# Generated by tests
test.mp3
Loading