Commit e8f8b14
authored
refactor: rename BYTEDANCE to BYTEPLUS and migrate to provider mixins (withceleste#84)
* refactor(capabilities): rename bytedance provider directories to byteplus
Rename provider directories from 'bytedance' to 'byteplus' in both
image-generation and video-generation capabilities to align with updated
naming convention.
## Changes
- Image generation: Rename bytedance/ → byteplus/ (7 files)
- Video generation: Rename bytedance/ → byteplus/ (7 files)
- Includes: README, __init__, client, config, models, parameters, streaming
This is a directory rename only. Import statements and enum references
will be updated in subsequent commits.
* refactor: rename BYTEDANCE to BYTEPLUS across codebase
Update Provider enum, credentials, class names, variables, docstrings,
and all references from ByteDance/BYTEDANCE/bytedance to BytePlus/BYTEPLUS/byteplus.
## Core Changes
- Provider enum: BYTEDANCE → BYTEPLUS in core.py
- Credentials: bytedance_api_key → byteplus_api_key, BYTEDANCE_API_KEY → BYTEPLUS_API_KEY
- Package name: celeste_bytedance → celeste_byteplus
## Capability Changes
- Class names: ByteDance* → BytePlus* (clients, streams)
- Variable names: BYTEDANCE_* → BYTEPLUS_* (MODELS, PARAMETER_MAPPERS, etc.)
- Docstrings/comments: ByteDance → BytePlus
- Provider references: Provider.BYTEDANCE → Provider.BYTEPLUS
- README files: Update environment variable names and provider names
- Tests: Update Provider.BYTEDANCE → Provider.BYTEPLUS
- Keywords: bytedance → byteplus in pyproject.toml
## Files Updated
- Core: core.py, credentials.py
- Image generation: client, models, parameters, streaming, config, __init__, README
- Video generation: client, models, parameters, config, __init__, README
- Tests: integration tests for both capabilities
- Provider package: byteplus provider package files
* chore(capabilities): remove redundant BytePlus config files and migrate to mixins
Remove unused config.py files from BytePlus capability providers and migrate
clients to use provider package mixins following the established pattern.
## Changes
- Remove image-generation/providers/byteplus/config.py
- Remove video-generation/providers/byteplus/config.py
- Migrate clients to use BytePlusImagesClient and BytePlusVideosClient mixins
- Add celeste-byteplus workspace dependency to both capability packages
- Simplify client implementations by delegating HTTP requests to mixins
Configuration is now centralized in the provider package (celeste_byteplus.images.config
and celeste_byteplus.videos.config) following the established pattern from
OpenAI, Mistral, and other providers.
* fix(core): change BFL provider value to lowercase 'bfl'
Change BFL provider value from 'Black Forest Labs' to 'bfl' to match
the lowercase convention expected by all providers. This fixes the
test_all_providers_are_lowercase test failure.1 parent 6da3983 commit e8f8b14
File tree
40 files changed
+838
-636
lines changed- packages
- capabilities
- image-generation
- src/celeste_image_generation
- providers
- bytedance
- byteplus
- tests/integration_tests/test_image_generation
- video-generation
- src/celeste_video_generation
- providers
- bytedance
- byteplus
- tests/integration_tests/test_video_generation
- providers/byteplus
- src/celeste_byteplus
- images
- videos
- src/celeste
40 files changed
+838
-636
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 0 additions & 156 deletions
This file was deleted.
Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 0 additions & 101 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
packages/capabilities/image-generation/src/celeste_image_generation/providers/byteplus/__init__.py
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments