Skip to content

[new release] anthropic (0.1.0) #28183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tmattio
Copy link
Contributor

@tmattio tmattio commented Jul 16, 2025

OCaml bindings for the Anthropic API

CHANGES:

Initial release of OCaml Anthropic bindings.

Features

  • Complete implementation of Anthropic Messages API
  • Support for all Claude models (Haiku, Sonnet, Opus)
  • Streaming responses with real-time event handling
  • Tool use/function calling support
  • Batch processing for bulk operations
  • Models API for querying available models
  • Beta Files API for file uploads and references
  • Automatic retry logic with exponential backoff

@tmattio tmattio marked this pull request as draft July 17, 2025 12:40
CHANGES:

Initial release of OCaml Anthropic bindings.

### Features

- Complete implementation of Anthropic Messages API
- Support for all Claude models (Haiku, Sonnet, Opus)
- Streaming responses with real-time event handling
- Tool use/function calling support
- Batch processing for bulk operations
- Models API for querying available models
- Beta Files API for file uploads and references
- Automatic retry logic with exponential backoff

[0.1.0]: https://github.com/tmattio/ocaml-anthropic/releases/tag/v0.1.0
@tmattio tmattio force-pushed the release-anthropic-0.1.0 branch from 4540b84 to e1310dc Compare July 18, 2025 14:39
@tmattio tmattio marked this pull request as ready for review July 18, 2025 14:39
@tmattio
Copy link
Contributor Author

tmattio commented Jul 18, 2025

I'm a bit confused with the error
anthropic.0.1.0 (failed: The module Eio.Switch is an alias for module Eio__core.Switch, which is missing)

Any idea where this is coming from?

@Zeta611
Copy link
Member

Zeta611 commented Jul 24, 2025

Thank you for the contribution!
I can reproduce it the error on my mac as well using OCaml 5.1.1; with OCaml 5.2.0 it builds fine. Is putting the lower bound 5.2.0 an option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants