Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## v0.8.18

### Features
- Updated OpenAI image generation skills configuration
- Enhanced image generation capabilities

### Changes
- Updated `intentkit/skills/openai/gpt_avatar_generator.py`
- Updated `intentkit/skills/openai/gpt_image_mini_generator.py`
- Added changelog documentation

**Full Changelog**: https://github.com/crestalnetwork/intentkit/compare/v0.8.17...v0.8.18

## v0.8.17

### Features
Expand Down
20 changes: 10 additions & 10 deletions intentkit/core/credit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,16 +1285,16 @@ async def skill_cost(
skill = await Skill.get(skill_name)
if not skill:
raise ValueError(f"The price of {skill_name} not set yet")
agent_skill_config = agent.skills.get(skill.category)
if (
agent_skill_config
and agent_skill_config.get("api_key_provider") == "agent_owner"
):
base_skill_amount = skill.price_self_key.quantize(
FOURPLACES, rounding=ROUND_HALF_UP
)
else:
base_skill_amount = skill.price.quantize(FOURPLACES, rounding=ROUND_HALF_UP)
base_skill_amount = skill.price.quantize(FOURPLACES, rounding=ROUND_HALF_UP)
if agent.skills:
agent_skill_config = agent.skills.get(skill.category)
if (
agent_skill_config
and agent_skill_config.get("api_key_provider") == "agent_owner"
):
base_skill_amount = skill.price_self_key.quantize(
FOURPLACES, rounding=ROUND_HALF_UP
)
# Get payment settings
payment_settings = await AppSetting.payment()

Expand Down
Loading