mirror of
https://github.com/langgenius/ruby-sdk.git
synced 2026-07-01 20:35:26 -04:00
Basically AI generated README.
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user