raccoonai 0.1.0a4__tar.gz → 0.1.0a6__tar.gz

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.

Potentially problematic release.


This version of raccoonai might be problematic. Click here for more details.

Files changed (78) hide show
  1. raccoonai-0.1.0a6/.release-please-manifest.json +3 -0
  2. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/CHANGELOG.md +24 -0
  3. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/CONTRIBUTING.md +2 -2
  4. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/PKG-INFO +13 -13
  5. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/README.md +6 -6
  6. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/pyproject.toml +4 -4
  7. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_base_client.py +1 -1
  8. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_constants.py +4 -4
  9. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_version.py +1 -1
  10. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/resources/fleet.py +4 -4
  11. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/resources/lam.py +4 -4
  12. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_client.py +26 -26
  13. raccoonai-0.1.0a4/.release-please-manifest.json +0 -3
  14. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/.gitignore +0 -0
  15. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/LICENSE +0 -0
  16. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/SECURITY.md +0 -0
  17. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/api.md +0 -0
  18. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/bin/check-release-environment +0 -0
  19. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/bin/publish-pypi +0 -0
  20. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/examples/.keep +0 -0
  21. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/mypy.ini +0 -0
  22. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/noxfile.py +0 -0
  23. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/release-please-config.json +0 -0
  24. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/requirements-dev.lock +0 -0
  25. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/requirements.lock +0 -0
  26. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/__init__.py +0 -0
  27. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_client.py +0 -0
  28. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_compat.py +0 -0
  29. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_exceptions.py +0 -0
  30. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_files.py +0 -0
  31. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_models.py +0 -0
  32. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_qs.py +0 -0
  33. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_resource.py +0 -0
  34. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_response.py +0 -0
  35. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_streaming.py +0 -0
  36. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_types.py +0 -0
  37. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_utils/__init__.py +0 -0
  38. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_utils/_logs.py +0 -0
  39. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_utils/_proxy.py +0 -0
  40. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_utils/_reflection.py +0 -0
  41. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_utils/_streams.py +0 -0
  42. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_utils/_sync.py +0 -0
  43. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_utils/_transform.py +0 -0
  44. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_utils/_typing.py +0 -0
  45. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/_utils/_utils.py +0 -0
  46. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/lib/.keep +0 -0
  47. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/py.typed +0 -0
  48. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/resources/__init__.py +0 -0
  49. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/__init__.py +0 -0
  50. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/fleet_create_params.py +0 -0
  51. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/fleet_create_response.py +0 -0
  52. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/fleet_logs_response.py +0 -0
  53. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/fleet_status_response.py +0 -0
  54. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/fleet_terminate_response.py +0 -0
  55. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/lam_extract_params.py +0 -0
  56. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/lam_extract_response.py +0 -0
  57. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/lam_integration_run_params.py +0 -0
  58. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/lam_integration_run_response.py +0 -0
  59. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/lam_run_params.py +0 -0
  60. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/src/raccoonai/types/lam_run_response.py +0 -0
  61. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/__init__.py +0 -0
  62. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/api_resources/__init__.py +0 -0
  63. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/api_resources/test_fleet.py +0 -0
  64. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/api_resources/test_lam.py +0 -0
  65. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/conftest.py +0 -0
  66. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/sample_file.txt +0 -0
  67. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_deepcopy.py +0 -0
  68. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_extract_files.py +0 -0
  69. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_files.py +0 -0
  70. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_models.py +0 -0
  71. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_qs.py +0 -0
  72. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_required_args.py +0 -0
  73. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_response.py +0 -0
  74. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_streaming.py +0 -0
  75. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_transform.py +0 -0
  76. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_utils/test_proxy.py +0 -0
  77. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/test_utils/test_typing.py +0 -0
  78. {raccoonai-0.1.0a4 → raccoonai-0.1.0a6}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.6"
3
+ }
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.6 (2025-02-21)
4
+
5
+ Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/raccoonaihq/raccoonai-python/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
6
+
7
+ ### Features
8
+
9
+ * **client:** allow passing `NotGiven` for body ([#24](https://github.com/raccoonaihq/raccoonai-python/issues/24)) ([c632aa5](https://github.com/raccoonaihq/raccoonai-python/commit/c632aa57554681c776cb5aad35c673b2c2db65c7))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **client:** mark some request bodies as optional ([c632aa5](https://github.com/raccoonaihq/raccoonai-python/commit/c632aa57554681c776cb5aad35c673b2c2db65c7))
15
+
16
+ ## 0.1.0-alpha.5 (2025-02-20)
17
+
18
+ Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/raccoonaihq/raccoonai-python/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
19
+
20
+ ### Features
21
+
22
+ * **api:** manual updates ([#22](https://github.com/raccoonaihq/raccoonai-python/issues/22)) ([cc6e554](https://github.com/raccoonaihq/raccoonai-python/commit/cc6e55441b2f704061e3a83573e4fc74503c8a68))
23
+ * **client:** increase initial delay in retries to 1 sec ([#21](https://github.com/raccoonaihq/raccoonai-python/issues/21)) ([7db68d9](https://github.com/raccoonaihq/raccoonai-python/commit/7db68d9a20f316e75c35cefdabb24856435c34cf))
24
+ * **client:** set default_timeout to 10 minutes and max_retries to 0 ([#18](https://github.com/raccoonaihq/raccoonai-python/issues/18)) ([51cc5e4](https://github.com/raccoonaihq/raccoonai-python/commit/51cc5e441b12bef5f11d7e942c2ce276f1fe71a0))
25
+ * **config:** update github org name ([#19](https://github.com/raccoonaihq/raccoonai-python/issues/19)) ([de5f0e1](https://github.com/raccoonaihq/raccoonai-python/commit/de5f0e128512d004b0e945e0b8a4c280bffe411b))
26
+
3
27
  ## 0.1.0-alpha.4 (2025-02-14)
4
28
 
5
29
  Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/flyingraccoonai/raccoonai-python/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
@@ -63,7 +63,7 @@ If you’d like to use the repository from source, you can either install from g
63
63
  To install via git:
64
64
 
65
65
  ```sh
66
- $ pip install git+ssh://git@github.com/flyingraccoonai/raccoonai-python.git
66
+ $ pip install git+ssh://git@github.com/raccoonaihq/raccoonai-python.git
67
67
  ```
68
68
 
69
69
  Alternatively, you can build from source and install the wheel file:
@@ -121,7 +121,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
121
121
 
122
122
  ### Publish with a GitHub workflow
123
123
 
124
- You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/flyingraccoonai/raccoonai-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
124
+ You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/raccoonaihq/raccoonai-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
125
125
 
126
126
  ### Publish manually
127
127
 
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: raccoonai
3
- Version: 0.1.0a4
3
+ Version: 0.1.0a6
4
4
  Summary: The official Python library for the raccoonAI API
5
- Project-URL: Homepage, https://github.com/flyingraccoonai/raccoonai-python
6
- Project-URL: Repository, https://github.com/flyingraccoonai/raccoonai-python
5
+ Project-URL: Homepage, https://github.com/raccoonaihq/raccoonai-python
6
+ Project-URL: Repository, https://github.com/raccoonaihq/raccoonai-python
7
7
  Author-email: Raccoon AI <team@flyingraccoon.tech>
8
8
  License-Expression: Apache-2.0
9
9
  License-File: LICENSE
@@ -42,7 +42,7 @@ It is generated with [Stainless](https://www.stainlessapi.com/).
42
42
 
43
43
  ## Documentation
44
44
 
45
- The REST API documentation can be found on [docs.flyingraccoon.tech](https://docs.flyingraccoon.tech). The full API of this library can be found in [api.md](https://github.com/flyingraccoonai/raccoonai-python/tree/main/api.md).
45
+ The REST API documentation can be found on [docs.flyingraccoon.tech](https://docs.flyingraccoon.tech). The full API of this library can be found in [api.md](https://github.com/raccoonaihq/raccoonai-python/tree/main/api.md).
46
46
 
47
47
  ## Installation
48
48
 
@@ -53,7 +53,7 @@ pip install --pre raccoonai
53
53
 
54
54
  ## Usage
55
55
 
56
- The full API of this library can be found in [api.md](https://github.com/flyingraccoonai/raccoonai-python/tree/main/api.md).
56
+ The full API of this library can be found in [api.md](https://github.com/raccoonaihq/raccoonai-python/tree/main/api.md).
57
57
 
58
58
  ```python
59
59
  import os
@@ -195,7 +195,7 @@ Error codes are as follows:
195
195
 
196
196
  ### Retries
197
197
 
198
- Certain errors are automatically retried 2 times by default, with a short exponential backoff.
198
+ Certain errors are automatically retried 0 times by default, with a short exponential backoff.
199
199
  Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
200
200
  429 Rate Limit, and >=500 Internal errors are all retried by default.
201
201
 
@@ -219,7 +219,7 @@ client.with_options(max_retries=5).lam.run(
219
219
 
220
220
  ### Timeouts
221
221
 
222
- By default requests time out after 1 minute. You can configure this with a `timeout` option,
222
+ By default requests time out after 10 minutes. You can configure this with a `timeout` option,
223
223
  which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object:
224
224
 
225
225
  ```python
@@ -227,7 +227,7 @@ from raccoonai import RaccoonAI
227
227
 
228
228
  # Configure the default for all requests:
229
229
  client = RaccoonAI(
230
- # 20 seconds (default is 1 minute)
230
+ # 20 seconds (default is 10 minutes)
231
231
  timeout=20.0,
232
232
  )
233
233
 
@@ -245,7 +245,7 @@ client.with_options(timeout=5.0).lam.run(
245
245
 
246
246
  On timeout, an `APITimeoutError` is thrown.
247
247
 
248
- Note that requests that time out are [retried twice by default](https://github.com/flyingraccoonai/raccoonai-python/tree/main/#retries).
248
+ Note that requests that time out are [retried twice by default](https://github.com/raccoonaihq/raccoonai-python/tree/main/#retries).
249
249
 
250
250
  ## Advanced
251
251
 
@@ -291,9 +291,9 @@ lam = response.parse() # get the object that `lam.run()` would have returned
291
291
  print(lam.livestream_url)
292
292
  ```
293
293
 
294
- These methods return an [`APIResponse`](https://github.com/flyingraccoonai/raccoonai-python/tree/main/src/raccoonai/_response.py) object.
294
+ These methods return an [`APIResponse`](https://github.com/raccoonaihq/raccoonai-python/tree/main/src/raccoonai/_response.py) object.
295
295
 
296
- The async client returns an [`AsyncAPIResponse`](https://github.com/flyingraccoonai/raccoonai-python/tree/main/src/raccoonai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
296
+ The async client returns an [`AsyncAPIResponse`](https://github.com/raccoonaihq/raccoonai-python/tree/main/src/raccoonai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
297
297
 
298
298
  #### `.with_streaming_response`
299
299
 
@@ -400,7 +400,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
400
400
 
401
401
  We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
402
402
 
403
- We are keen for your feedback; please open an [issue](https://www.github.com/flyingraccoonai/raccoonai-python/issues) with questions, bugs, or suggestions.
403
+ We are keen for your feedback; please open an [issue](https://www.github.com/raccoonaihq/raccoonai-python/issues) with questions, bugs, or suggestions.
404
404
 
405
405
  ### Determining the installed version
406
406
 
@@ -419,4 +419,4 @@ Python 3.8 or higher.
419
419
 
420
420
  ## Contributing
421
421
 
422
- See [the contributing documentation](https://github.com/flyingraccoonai/raccoonai-python/tree/main/./CONTRIBUTING.md).
422
+ See [the contributing documentation](https://github.com/raccoonaihq/raccoonai-python/tree/main/./CONTRIBUTING.md).
@@ -163,7 +163,7 @@ Error codes are as follows:
163
163
 
164
164
  ### Retries
165
165
 
166
- Certain errors are automatically retried 2 times by default, with a short exponential backoff.
166
+ Certain errors are automatically retried 0 times by default, with a short exponential backoff.
167
167
  Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
168
168
  429 Rate Limit, and >=500 Internal errors are all retried by default.
169
169
 
@@ -187,7 +187,7 @@ client.with_options(max_retries=5).lam.run(
187
187
 
188
188
  ### Timeouts
189
189
 
190
- By default requests time out after 1 minute. You can configure this with a `timeout` option,
190
+ By default requests time out after 10 minutes. You can configure this with a `timeout` option,
191
191
  which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/#fine-tuning-the-configuration) object:
192
192
 
193
193
  ```python
@@ -195,7 +195,7 @@ from raccoonai import RaccoonAI
195
195
 
196
196
  # Configure the default for all requests:
197
197
  client = RaccoonAI(
198
- # 20 seconds (default is 1 minute)
198
+ # 20 seconds (default is 10 minutes)
199
199
  timeout=20.0,
200
200
  )
201
201
 
@@ -259,9 +259,9 @@ lam = response.parse() # get the object that `lam.run()` would have returned
259
259
  print(lam.livestream_url)
260
260
  ```
261
261
 
262
- These methods return an [`APIResponse`](https://github.com/flyingraccoonai/raccoonai-python/tree/main/src/raccoonai/_response.py) object.
262
+ These methods return an [`APIResponse`](https://github.com/raccoonaihq/raccoonai-python/tree/main/src/raccoonai/_response.py) object.
263
263
 
264
- The async client returns an [`AsyncAPIResponse`](https://github.com/flyingraccoonai/raccoonai-python/tree/main/src/raccoonai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
264
+ The async client returns an [`AsyncAPIResponse`](https://github.com/raccoonaihq/raccoonai-python/tree/main/src/raccoonai/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
265
265
 
266
266
  #### `.with_streaming_response`
267
267
 
@@ -368,7 +368,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
368
368
 
369
369
  We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
370
370
 
371
- We are keen for your feedback; please open an [issue](https://www.github.com/flyingraccoonai/raccoonai-python/issues) with questions, bugs, or suggestions.
371
+ We are keen for your feedback; please open an [issue](https://www.github.com/raccoonaihq/raccoonai-python/issues) with questions, bugs, or suggestions.
372
372
 
373
373
  ### Determining the installed version
374
374
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "raccoonai"
3
- version = "0.1.0-alpha.4"
3
+ version = "0.1.0-alpha.6"
4
4
  description = "The official Python library for the raccoonAI API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -34,8 +34,8 @@ classifiers = [
34
34
  ]
35
35
 
36
36
  [project.urls]
37
- Homepage = "https://github.com/flyingraccoonai/raccoonai-python"
38
- Repository = "https://github.com/flyingraccoonai/raccoonai-python"
37
+ Homepage = "https://github.com/raccoonaihq/raccoonai-python"
38
+ Repository = "https://github.com/raccoonaihq/raccoonai-python"
39
39
 
40
40
 
41
41
 
@@ -122,7 +122,7 @@ path = "README.md"
122
122
  [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
123
123
  # replace relative links with absolute links
124
124
  pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
125
- replacement = '[\1](https://github.com/flyingraccoonai/raccoonai-python/tree/main/\g<2>)'
125
+ replacement = '[\1](https://github.com/raccoonaihq/raccoonai-python/tree/main/\g<2>)'
126
126
 
127
127
  [tool.pytest.ini_options]
128
128
  testpaths = ["tests"]
@@ -518,7 +518,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
518
518
  # so that passing a `TypedDict` doesn't cause an error.
519
519
  # https://github.com/microsoft/pyright/issues/3526#event-6715453066
520
520
  params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None,
521
- json=json_data,
521
+ json=json_data if is_given(json_data) else None,
522
522
  files=files,
523
523
  **kwargs,
524
524
  )
@@ -5,10 +5,10 @@ import httpx
5
5
  RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response"
6
6
  OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
7
7
 
8
- # default timeout is 1 minute
9
- DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
10
- DEFAULT_MAX_RETRIES = 2
8
+ # default timeout is 10 minutes
9
+ DEFAULT_TIMEOUT = httpx.Timeout(timeout=600, connect=5.0)
10
+ DEFAULT_MAX_RETRIES = 0
11
11
  DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
12
12
 
13
- INITIAL_RETRY_DELAY = 0.5
13
+ INITIAL_RETRY_DELAY = 1.0
14
14
  MAX_RETRY_DELAY = 8.0
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "raccoonai"
4
- __version__ = "0.1.0-alpha.4" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.6" # x-release-please-version
@@ -36,7 +36,7 @@ class FleetResource(SyncAPIResource):
36
36
  This property can be used as a prefix for any HTTP method call to return
37
37
  the raw response object instead of the parsed content.
38
38
 
39
- For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#accessing-raw-response-data-eg-headers
39
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
40
40
  """
41
41
  return FleetResourceWithRawResponse(self)
42
42
 
@@ -45,7 +45,7 @@ class FleetResource(SyncAPIResource):
45
45
  """
46
46
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
47
47
 
48
- For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#with_streaming_response
48
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
49
49
  """
50
50
  return FleetResourceWithStreamingResponse(self)
51
51
 
@@ -228,7 +228,7 @@ class AsyncFleetResource(AsyncAPIResource):
228
228
  This property can be used as a prefix for any HTTP method call to return
229
229
  the raw response object instead of the parsed content.
230
230
 
231
- For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#accessing-raw-response-data-eg-headers
231
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
232
232
  """
233
233
  return AsyncFleetResourceWithRawResponse(self)
234
234
 
@@ -237,7 +237,7 @@ class AsyncFleetResource(AsyncAPIResource):
237
237
  """
238
238
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
239
239
 
240
- For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#with_streaming_response
240
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
241
241
  """
242
242
  return AsyncFleetResourceWithStreamingResponse(self)
243
243
 
@@ -38,7 +38,7 @@ class LamResource(SyncAPIResource):
38
38
  This property can be used as a prefix for any HTTP method call to return
39
39
  the raw response object instead of the parsed content.
40
40
 
41
- For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#accessing-raw-response-data-eg-headers
41
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
42
42
  """
43
43
  return LamResourceWithRawResponse(self)
44
44
 
@@ -47,7 +47,7 @@ class LamResource(SyncAPIResource):
47
47
  """
48
48
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
49
49
 
50
- For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#with_streaming_response
50
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
51
51
  """
52
52
  return LamResourceWithStreamingResponse(self)
53
53
 
@@ -615,7 +615,7 @@ class AsyncLamResource(AsyncAPIResource):
615
615
  This property can be used as a prefix for any HTTP method call to return
616
616
  the raw response object instead of the parsed content.
617
617
 
618
- For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#accessing-raw-response-data-eg-headers
618
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#accessing-raw-response-data-eg-headers
619
619
  """
620
620
  return AsyncLamResourceWithRawResponse(self)
621
621
 
@@ -624,7 +624,7 @@ class AsyncLamResource(AsyncAPIResource):
624
624
  """
625
625
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
626
626
 
627
- For more information, see https://www.github.com/flyingraccoonai/raccoonai-python#with_streaming_response
627
+ For more information, see https://www.github.com/raccoonaihq/raccoonai-python#with_streaming_response
628
628
  """
629
629
  return AsyncLamResourceWithStreamingResponse(self)
630
630
 
@@ -94,7 +94,7 @@ class TestRaccoonAI:
94
94
  # options that have a default are overridden correctly
95
95
  copied = self.client.copy(max_retries=7)
96
96
  assert copied.max_retries == 7
97
- assert self.client.max_retries == 2
97
+ assert self.client.max_retries == 0
98
98
 
99
99
  copied2 = copied.copy(max_retries=6)
100
100
  assert copied2.max_retries == 6
@@ -708,20 +708,20 @@ class TestRaccoonAI:
708
708
  "remaining_retries,retry_after,timeout",
709
709
  [
710
710
  [3, "20", 20],
711
- [3, "0", 0.5],
712
- [3, "-10", 0.5],
711
+ [3, "0", 1],
712
+ [3, "-10", 1],
713
713
  [3, "60", 60],
714
- [3, "61", 0.5],
714
+ [3, "61", 1],
715
715
  [3, "Fri, 29 Sep 2023 16:26:57 GMT", 20],
716
- [3, "Fri, 29 Sep 2023 16:26:37 GMT", 0.5],
717
- [3, "Fri, 29 Sep 2023 16:26:27 GMT", 0.5],
716
+ [3, "Fri, 29 Sep 2023 16:26:37 GMT", 1],
717
+ [3, "Fri, 29 Sep 2023 16:26:27 GMT", 1],
718
718
  [3, "Fri, 29 Sep 2023 16:27:37 GMT", 60],
719
- [3, "Fri, 29 Sep 2023 16:27:38 GMT", 0.5],
720
- [3, "99999999999999999999999999999999999", 0.5],
721
- [3, "Zun, 29 Sep 2023 16:26:27 GMT", 0.5],
722
- [3, "", 0.5],
723
- [2, "", 0.5 * 2.0],
724
- [1, "", 0.5 * 4.0],
719
+ [3, "Fri, 29 Sep 2023 16:27:38 GMT", 1],
720
+ [3, "99999999999999999999999999999999999", 1],
721
+ [3, "Zun, 29 Sep 2023 16:26:27 GMT", 1],
722
+ [3, "", 1],
723
+ [2, "", 1 * 2.0],
724
+ [1, "", 1 * 4.0],
725
725
  [-1100, "", 8], # test large number potentially overflowing
726
726
  ],
727
727
  )
@@ -732,7 +732,7 @@ class TestRaccoonAI:
732
732
  headers = httpx.Headers({"retry-after": retry_after})
733
733
  options = FinalRequestOptions(method="get", url="/foo", max_retries=3)
734
734
  calculated = client._calculate_retry_timeout(remaining_retries, options, headers)
735
- assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
735
+ assert calculated == pytest.approx(timeout, 1 * 0.875) # pyright: ignore[reportUnknownMemberType]
736
736
 
737
737
  @mock.patch("raccoonai._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
738
738
  @pytest.mark.respx(base_url=base_url)
@@ -907,7 +907,7 @@ class TestAsyncRaccoonAI:
907
907
  # options that have a default are overridden correctly
908
908
  copied = self.client.copy(max_retries=7)
909
909
  assert copied.max_retries == 7
910
- assert self.client.max_retries == 2
910
+ assert self.client.max_retries == 0
911
911
 
912
912
  copied2 = copied.copy(max_retries=6)
913
913
  assert copied2.max_retries == 6
@@ -1524,20 +1524,20 @@ class TestAsyncRaccoonAI:
1524
1524
  "remaining_retries,retry_after,timeout",
1525
1525
  [
1526
1526
  [3, "20", 20],
1527
- [3, "0", 0.5],
1528
- [3, "-10", 0.5],
1527
+ [3, "0", 1],
1528
+ [3, "-10", 1],
1529
1529
  [3, "60", 60],
1530
- [3, "61", 0.5],
1530
+ [3, "61", 1],
1531
1531
  [3, "Fri, 29 Sep 2023 16:26:57 GMT", 20],
1532
- [3, "Fri, 29 Sep 2023 16:26:37 GMT", 0.5],
1533
- [3, "Fri, 29 Sep 2023 16:26:27 GMT", 0.5],
1532
+ [3, "Fri, 29 Sep 2023 16:26:37 GMT", 1],
1533
+ [3, "Fri, 29 Sep 2023 16:26:27 GMT", 1],
1534
1534
  [3, "Fri, 29 Sep 2023 16:27:37 GMT", 60],
1535
- [3, "Fri, 29 Sep 2023 16:27:38 GMT", 0.5],
1536
- [3, "99999999999999999999999999999999999", 0.5],
1537
- [3, "Zun, 29 Sep 2023 16:26:27 GMT", 0.5],
1538
- [3, "", 0.5],
1539
- [2, "", 0.5 * 2.0],
1540
- [1, "", 0.5 * 4.0],
1535
+ [3, "Fri, 29 Sep 2023 16:27:38 GMT", 1],
1536
+ [3, "99999999999999999999999999999999999", 1],
1537
+ [3, "Zun, 29 Sep 2023 16:26:27 GMT", 1],
1538
+ [3, "", 1],
1539
+ [2, "", 1 * 2.0],
1540
+ [1, "", 1 * 4.0],
1541
1541
  [-1100, "", 8], # test large number potentially overflowing
1542
1542
  ],
1543
1543
  )
@@ -1549,7 +1549,7 @@ class TestAsyncRaccoonAI:
1549
1549
  headers = httpx.Headers({"retry-after": retry_after})
1550
1550
  options = FinalRequestOptions(method="get", url="/foo", max_retries=3)
1551
1551
  calculated = client._calculate_retry_timeout(remaining_retries, options, headers)
1552
- assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
1552
+ assert calculated == pytest.approx(timeout, 1 * 0.875) # pyright: ignore[reportUnknownMemberType]
1553
1553
 
1554
1554
  @mock.patch("raccoonai._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
1555
1555
  @pytest.mark.respx(base_url=base_url)
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.1.0-alpha.4"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes