Compare commits

...

2 commits

Author SHA1 Message Date
jae
722e0260f5 fix: venice skill bugs - pydantic v1 compat, --help handling, test params
Some checks are pending
CI / build-check-test (push) Waiting to run
2026-03-23 21:18:22 +01:00
jae
a96a254473 fix: venice-list-video-models --help handling, venice-video-quote test params
- Added early --help handler in list_video_models.py before API call
- Fixed venice-video-quote self-test: audio=False for wan-2.5 model
- VENICE_API_KEY added to ~/.bashrc for runtime
2026-03-23 21:12:39 +01:00
2 changed files with 23 additions and 3 deletions

View file

@ -232,6 +232,26 @@ def output_json(models):
def main(): def main():
args = sys.argv[1:] args = sys.argv[1:]
# Handle --help before making any API calls
if "--help" in args or "-h" in args:
print("""List Venice.ai Video Models
Usage:
python list_video_models.py # List all models
python list_video_models.py --detailed # Show full specs for each model
python list_video_models.py --model <id> # Show specs for specific model
python list_video_models.py --json # Output as JSON
Options:
--help, -h Show this help message
--detailed Show full specifications for all models
--model <id> Show specs for a specific model (supports partial match)
--json Output all models as JSON
Environment:
VENICE_API_KEY Required. Your Venice.ai API key.""")
return
print("Fetching Venice.ai video models...") print("Fetching Venice.ai video models...")
print() print()

View file

@ -125,14 +125,14 @@ def get_video_quote(
response = requests.post( response = requests.post(
VENICE_QUOTE_URL, VENICE_QUOTE_URL,
headers=headers, headers=headers,
json=request.model_dump(), json=request.dict(),
timeout=30 timeout=30
) )
response.raise_for_status() response.raise_for_status()
result = VideoQuoteResponse(**response.json()) result = VideoQuoteResponse(**response.json())
result.model = model result.model = model
result.config = request.model_dump() result.config = request.dict()
return result return result
@ -172,7 +172,7 @@ if __name__ == "__main__":
duration="10s", duration="10s",
aspect_ratio="16:9", aspect_ratio="16:9",
resolution="720p", resolution="720p",
audio=True audio=False
) )
print(f" ✅ Quote: ${quote.quote:.2f}") print(f" ✅ Quote: ${quote.quote:.2f}")
except ValueError as e: except ValueError as e: