chore: bump version to 1.1.4#479
Conversation
There was a problem hiding this comment.
Pull request overview
Bumps the AgentScope Runtime version to 1.1.4 and adjusts AgentScope message conversion logic for audio content.
Changes:
- Bump package version in
pyproject.tomlto1.1.4. - Bump runtime
__version__tov1.1.4. - Change audio content URL detection to accept any parsed URL scheme.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/agentscope_runtime/version.py |
Updates runtime __version__ to v1.1.4. |
pyproject.toml |
Updates package version to 1.1.4. |
src/agentscope_runtime/adapters/agentscope/message.py |
Alters audio block conversion logic (URL vs base64 detection). |
| else: | ||
| parsed_url = urlparse(value) | ||
| if parsed_url.scheme and parsed_url.netloc: | ||
| if parsed_url.scheme: | ||
| url_source = URLSource(type="url", url=value) | ||
| msg_content.append( |
There was a problem hiding this comment.
The URL detection for audio content now treats any parsed scheme as a URL. This will classify malformed/relative strings like 'http:example.com' (scheme='http', empty netloc) as a URL and can also allow unexpected schemes (e.g., 'javascript:'), which may be unsafe or break downstream consumers expecting http(s) URLs. Consider validating against an allowlist of schemes (e.g., http/https, possibly file if intended) and requiring a netloc for network schemes (or otherwise using a more robust URL validation).
Description
[Describe what this PR does and why]
Related Issue: Fixes #[issue_number] or Relates to #[issue_number]
Security Considerations: [If applicable, especially for sandbox changes]
Type of Change
Component(s) Affected
Checklist
Testing
[How to test these changes]
Additional Notes
[Optional: any other context]