Download the PHP package modelflow-ai/anthropic without Composer
On this page you can find all versions of the php package modelflow-ai/anthropic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download modelflow-ai/anthropic
More information about modelflow-ai/anthropic
Files in modelflow-ai/anthropic
Informations about the package anthropic
Modelflow AI
Anthropic
Note: This is part of the
modelflow-aiproject create issues in the main repository.Note: This project is heavily under development and any feedback is greatly appreciated.
Installation
To install the Anthropic package, you need to have PHP 8.2 or higher and Composer installed on your machine. Then, you can add the package to your project by running the following command:
Examples
Here are some examples of how you can use the Anthropic in your PHP applications. You can find more detailed examples in the examples directory.
Usage
Creating a Client
First, you need to create a client. The client is the main entry point to interact with the Anthropic AI model. You can
create a client using the Anthropic class:
Using the Chat Resource
The Chat resource allows you to create chat conversations and get chat completions.
API Documentation
For more detailed information about the Anthropic API, please refer to the official API documentation.
Open Points
Streaming Tools
Streaming of tools are not yet available in the Anthropic API. As soon as they are available, we will provide a the stream option with the tools.
Text completions
The Text Completions resource is not yet in this package.
Embeddings
The Embeddings resource is not yet in the Anthropic API. As soon as it is available, we will provide a resource to generate and manipulate embeddings for your data.
Testing
To run the tests, use PHPUnit:
Contributing
Contributions are welcome. Please open an issue or submit a pull request in the main repository at https://github.com/modelflow-ai/.github.
License
This project is licensed under the MIT License. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.