No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Thorsten Klein 047c247bed
docs: add upstream attribution and NOTICE (#2)
Prepare the repository for being made public with proper attribution to the original upstream project, as required by Apache-2.0 §4.

- Add `NOTICE`: fork of the gptscript-ai upstream project originally developed by Acorn Labs, Inc. and the gptscript-ai contributors (Apache-2.0), "Modifications Copyright 2026 BasePeak GmbH", the maintained location, and a statement that files were modified since the fork on 2026-06-13 with git history recording the changes (Apache §4(b); no per-file headers)
- Add/rewrite `README.md`: short description, module path `git.basepeak.dev/basepeak-ai/chat-completion-client`, origin/attribution section linking upstream, and a License section
- `LICENSE` (Apache-2.0) is unchanged
- Deeper provenance: upstream was itself a hard fork of [sashabaranov/go-openai](https://github.com/sashabaranov/go-openai) (Apache-2.0, no upstream NOTICE file); credited in both NOTICE and README. The previous README's statement about this is preserved in substance.

No CI workflow exists in this repository, so there are no checks on this PR.
2026-10-18 10:27:50 +00:00
.gitignore Initial fork 2024-04-03 18:30:40 -07:00
chat.go feat: add optional retryOptions to chat completion and chat completion stream requests (#3) 2024-12-16 21:36:33 +01:00
chat_stream.go feat: add optional retryOptions to chat completion and chat completion stream requests (#3) 2024-12-16 21:36:33 +01:00
client.go fix: return the context canceled error for request (#8) 2025-02-24 11:47:18 -05:00
common.go Initial fork 2024-04-03 18:30:40 -07:00
config.go Initial fork 2024-04-03 18:30:40 -07:00
error.go fix: return error including the actual error message (extracted from response body) (#6) 2025-01-23 13:31:06 +01:00
go.mod fix(deps): raise go directive to 1.26.9 (#1) 2026-10-18 10:27:42 +00:00
LICENSE Initial fork 2024-04-03 18:30:40 -07:00
messages.go Initial fork 2024-04-03 18:30:40 -07:00
models.go feat: add metadata field to models 2024-11-26 19:51:08 -05:00
NOTICE docs: add upstream attribution and NOTICE (#2) 2026-10-18 10:27:50 +00:00
ratelimit.go Initial fork 2024-04-03 18:30:40 -07:00
README.md docs: add upstream attribution and NOTICE (#2) 2026-10-18 10:27:50 +00:00
request_builder.go Initial fork 2024-04-03 18:30:40 -07:00
stream_reader.go Initial fork 2024-04-03 18:30:40 -07:00

chat-completion-client

A minimal Go client for OpenAI-compatible chat completion APIs (including streaming). It contains only the API surface needed by GPTScript.

go get git.basepeak.dev/basepeak-ai/chat-completion-client
import openai "git.basepeak.dev/basepeak-ai/chat-completion-client"

Origin and attribution

This repository is a fork of gptscript-ai/chat-completion-client, originally developed by Acorn Labs, Inc. (now Obot Inc.) and the gptscript-ai contributors. BasePeak GmbH has maintained it as a hard fork since 2026-06-13 under the module path git.basepeak.dev/basepeak-ai/chat-completion-client. Many thanks to the original authors.

The upstream project was itself a hard fork of sashabaranov/go-openai by Alexander Baranov and the go-openai contributors (Apache-2.0), trimmed down to just the APIs needed by GPTScript.

License

Licensed under the Apache License, Version 2.0.

  • Original work Copyright 2024-2025 Obot Inc. (formerly Acorn Labs, Inc.)
  • Modifications Copyright 2026 BasePeak GmbH

See NOTICE for attribution details.