Basically AI generated README.

This commit is contained in:
Eric Guo
2025-02-24 11:31:08 +08:00
parent 500b3e674e
commit fee9aa40b2
+4 -3
View File
@@ -25,13 +25,14 @@ To use the DifyClient gem, follow these steps:
1 Require the gem:
```ruby
require 'dify_client'
require 'dify/client'
```
2 Create a new client instance:
```ruby
api_key = 'YOUR_API_KEY'
client = DifyClient::Client.new(api_key)
client = ChatClient.new(api_key)
```
3 Use the available methods to interact with the Dify.ai API. Here are the methods provided by the DifyClient::Client class:
@@ -101,4 +102,4 @@ Bug reports and pull requests are welcome on GitHub at [https://github.com/langg
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).