runapi-infinitetalk 0.2.7 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e89cac6baa5f9d175c9fd56314131d2af51d6487c9a9367e61938f3627f003c8
4
- data.tar.gz: fb5b1c2e61201b5a9d6459cfb361c7f967d9b35cd9264b9b37eab0692acc250c
3
+ metadata.gz: a2736d320b45fdad00cdae8dc677bf00e4b6c33707b1afacda4a26786e6a5241
4
+ data.tar.gz: 21fa99c416e57ba8b6c8c0b397421b3813dfaa762178142d3121f90951db5e87
5
5
  SHA512:
6
- metadata.gz: 7e77fd019642d0bfb19b9646134df5f273d6cc6dfde150d98d8d7fb5ea50ae3b64844031145ecfb9e9c8e3db4d78ef37795ec2c1e9db8a13cd55fb4446b0c539
7
- data.tar.gz: 53d70b3746b85b30ff80863c5c50fcc615831ad0f0dd6fca4846a0db9d2f203d26e2d8152c09f58eb21d9b29bd80b9ce0d8b70fc3b72e6c6fbb91916283fcd54
6
+ metadata.gz: e3cdd5e8135ec94a99861dc2289239c67ce63f64f65212ad27d2f5cecccf6a2ea90547bf7d23c598db9a654f1369e694ff05214ce7fb68ebcbfd3dd7f92c8f55
7
+ data.tar.gz: 4afbd0f257c00ba662319189187a771651b84592c123981f5f00299f52e914788ceac52eda67c99f917822c0cbcf3a37a94e712e57a443a7a3cf8183febe9806
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The InfiniteTalk Ruby SDK is the language-specific package for InfiniteTalk on RunAPI. Use this package for video generation, animation, and video editing workflows when your application needs request bodies, task status lookup, and consistent RunAPI errors in Ruby.
4
4
 
5
- This README is the Ruby package guide inside the public `infinitetalk-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/infinitetalk; for API reference, use https://runapi.ai/docs#infinitetalk; for SDK docs, use https://runapi.ai/docs#sdk-infinitetalk.
5
+ This README is the Ruby package guide inside the public `infinitetalk-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/infinitetalk; for API reference, use https://runapi.ai/docs/api/infinitetalk/audio-to-video; for SDK docs, use https://runapi.ai/docs/resources/sdks.
6
6
 
7
7
  ## Install
8
8
 
@@ -13,11 +13,11 @@ gem install runapi-infinitetalk
13
13
  ## Quick start
14
14
 
15
15
  ```ruby
16
- require "runapi-infinitetalk"
16
+ require "runapi/infinitetalk"
17
17
 
18
18
  client = RunApi::Infinitalk::Client.new
19
19
  task = client.audio_to_video.create(
20
- # Pass the InfiniteTalk JSON request body from https://runapi.ai/docs#infinitetalk.
20
+ # Pass the InfiniteTalk JSON request body from https://runapi.ai/docs/api/infinitetalk/audio-to-video.
21
21
  )
22
22
  status = client.audio_to_video.get(task.id)
23
23
  ```
@@ -33,8 +33,8 @@ Use Ruby keyword arguments and the `RunApi::Infinitalk` error classes when build
33
33
  ## Links
34
34
 
35
35
  - Model page: https://runapi.ai/models/infinitetalk
36
- - SDK docs: https://runapi.ai/docs#sdk-infinitetalk
37
- - Product docs: https://runapi.ai/docs#infinitetalk
36
+ - SDK docs: https://runapi.ai/docs/resources/sdks
37
+ - Product docs: https://runapi.ai/docs/api/infinitetalk/audio-to-video
38
38
  - Pricing and rate limits: https://runapi.ai/models/infinitetalk
39
39
  - Provider comparison: https://runapi.ai/providers/meigen-ai
40
40
  - Full catalog: https://runapi.ai/models
@@ -18,19 +18,19 @@ module RunApi
18
18
  @http = http
19
19
  end
20
20
 
21
- def run(**params)
22
- task = create(**params)
23
- poll_until_complete { get(task.id) }
21
+ def run(options: nil, **params)
22
+ task = create(options: options, **params)
23
+ poll_until_complete { get(task.id, options: options) }
24
24
  end
25
25
 
26
- def create(**params)
26
+ def create(options: nil, **params)
27
27
  params = compact_params(params)
28
28
  validate_params!(params)
29
- request(:post, ENDPOINT, body: params)
29
+ request(:post, ENDPOINT, body: params, options: options)
30
30
  end
31
31
 
32
- def get(id)
33
- request(:get, "#{ENDPOINT}/#{id}")
32
+ def get(id, options: nil)
33
+ request(:get, "#{ENDPOINT}/#{id}", options: options)
34
34
  end
35
35
 
36
36
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runapi-infinitetalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - RunAPI
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 0.2.7
18
+ version: 0.4.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 0.2.7
25
+ version: 0.4.0
26
26
  description: The InfiniteTalk Ruby SDK is the language-specific package for InfiniteTalk
27
27
  on RunAPI. Use this package for video generation, animation, and video editing workflows
28
28
  when your application needs request bodies, task status lookup, and consistent RunAPI