This commit is contained in:
Matt Apperson
2025-11-18 15:34:20 -05:00
parent c07f60e7b1
commit 8f34360adc
15 changed files with 73 additions and 62 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
{ {
"permissions": { "permissions": {
"allow": [ "allow": [
"Bash(python3:*)" "Bash(python3:*)",
"Bash(git push:*)"
], ],
"deny": [], "deny": [],
"ask": [] "ask": []
+6 -5
View File
@@ -1,12 +1,12 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d id: cfd52247-6a25-4c6d-bbce-fe6fce0cd69d
management: management:
docChecksum: c70fe15adf85b7e7749bd16a443507da docChecksum: 459a4007b7391a38a6e9c7249c84c3bf
docVersion: 1.0.0 docVersion: 1.0.0
speakeasyVersion: 1.658.2 speakeasyVersion: 1.658.2
generationVersion: 2.755.9 generationVersion: 2.755.9
releaseVersion: 0.0.21 releaseVersion: 0.0.22
configChecksum: fcf282e1f92a17d5f4a7b368adf40f1b configChecksum: dbd5388c5e9e39132e6f3418d4959462
repoURL: https://github.com/OpenRouterTeam/python-sdk.git repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true published: true
@@ -74,6 +74,7 @@ generatedFiles:
- docs/components/chatmessagecontentitemvideo.md - docs/components/chatmessagecontentitemvideo.md
- docs/components/chatmessagecontentitemvideoinputvideo.md - docs/components/chatmessagecontentitemvideoinputvideo.md
- docs/components/chatmessagecontentitemvideovideourl.md - docs/components/chatmessagecontentitemvideovideourl.md
- docs/components/chatmessagecontentitemvideovideourlvideourl.md
- docs/components/chatmessagetokenlogprob.md - docs/components/chatmessagetokenlogprob.md
- docs/components/chatmessagetokenlogprobs.md - docs/components/chatmessagetokenlogprobs.md
- docs/components/chatmessagetoolcall.md - docs/components/chatmessagetoolcall.md
@@ -418,8 +419,7 @@ generatedFiles:
- docs/components/usermessage.md - docs/components/usermessage.md
- docs/components/usermessagecontent.md - docs/components/usermessagecontent.md
- docs/components/variables.md - docs/components/variables.md
- docs/components/videourl1.md - docs/components/videourl.md
- docs/components/videourl2.md
- docs/components/websearchpreviewtooluserlocation.md - docs/components/websearchpreviewtooluserlocation.md
- docs/components/websearchpreviewtooluserlocationtype.md - docs/components/websearchpreviewtooluserlocationtype.md
- docs/components/websearchstatus.md - docs/components/websearchstatus.md
@@ -687,6 +687,7 @@ generatedFiles:
- src/openrouter/components/unprocessableentityresponseerrordata.py - src/openrouter/components/unprocessableentityresponseerrordata.py
- src/openrouter/components/urlcitation.py - src/openrouter/components/urlcitation.py
- src/openrouter/components/usermessage.py - src/openrouter/components/usermessage.py
- src/openrouter/components/videourl.py
- src/openrouter/components/websearchpreviewtooluserlocation.py - src/openrouter/components/websearchpreviewtooluserlocation.py
- src/openrouter/components/websearchstatus.py - src/openrouter/components/websearchstatus.py
- src/openrouter/credits.py - src/openrouter/credits.py
+1 -1
View File
@@ -30,7 +30,7 @@ generation:
generateNewTests: true generateNewTests: true
skipResponseBodyAssertions: false skipResponseBodyAssertions: false
python: python:
version: 0.0.21 version: 0.0.22
additionalDependencies: additionalDependencies:
dev: {} dev: {}
main: {} main: {}
+8 -6
View File
@@ -4647,12 +4647,7 @@ components:
type: string type: string
const: input_video const: input_video
video_url: video_url:
type: object $ref: '#/components/schemas/VideoURL'
properties:
url:
type: string
required:
- url
required: required:
- type - type
- video_url - video_url
@@ -4672,6 +4667,13 @@ components:
- type - type
- video_url - video_url
type: object type: object
VideoURL:
type: object
properties:
url:
type: string
required:
- url
ChatMessageContentItemFile: ChatMessageContentItemFile:
type: object type: object
properties: properties:
+8 -6
View File
@@ -4669,12 +4669,7 @@ components:
type: string type: string
const: input_video const: input_video
video_url: video_url:
type: object $ref: '#/components/schemas/VideoURL'
properties:
url:
type: string
required:
- url
required: required:
- type - type
- video_url - video_url
@@ -4694,6 +4689,13 @@ components:
- type - type
- video_url - video_url
type: object type: object
VideoURL:
type: object
properties:
url:
type: string
required:
- url
ChatMessageContentItemFile: ChatMessageContentItemFile:
type: object type: object
properties: properties:
+4 -4
View File
@@ -8,8 +8,8 @@ sources:
- latest - latest
OpenRouter API: OpenRouter API:
sourceNamespace: open-router-chat-completions-api sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:473a895aeef965d69f7d3c905f642ecedd8bceb4baf62b135b358ba92be4d451 sourceRevisionDigest: sha256:f1b59b9b643de5e20d6e3299a8274783d8c0854615876f5d7f6f081814842695
sourceBlobDigest: sha256:e3c8a0e4323c1b4b0795fc6b1c2cf7134c5909a7d126a0fa266ba7c8aa65ee18 sourceBlobDigest: sha256:ee1f2422281b3ed5b38951c74636ad192c9bb160f216069c1f7931ccc4e52553
tags: tags:
- latest - latest
- 1.0.0 - 1.0.0
@@ -22,8 +22,8 @@ targets:
openrouter: openrouter:
source: OpenRouter API source: OpenRouter API
sourceNamespace: open-router-chat-completions-api sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:473a895aeef965d69f7d3c905f642ecedd8bceb4baf62b135b358ba92be4d451 sourceRevisionDigest: sha256:f1b59b9b643de5e20d6e3299a8274783d8c0854615876f5d7f6f081814842695
sourceBlobDigest: sha256:e3c8a0e4323c1b4b0795fc6b1c2cf7134c5909a7d126a0fa266ba7c8aa65ee18 sourceBlobDigest: sha256:ee1f2422281b3ed5b38951c74636ad192c9bb160f216069c1f7931ccc4e52553
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: latest speakeasyVersion: latest
@@ -3,7 +3,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
| `type` | *Literal["input_video"]* | :heavy_check_mark: | N/A | | `type` | *Literal["input_video"]* | :heavy_check_mark: | N/A |
| `video_url` | [components.VideoURL1](../components/videourl1.md) | :heavy_check_mark: | N/A | | `video_url` | [components.VideoURL](../components/videourl.md) | :heavy_check_mark: | N/A |
@@ -3,7 +3,7 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `type` | *Literal["video_url"]* | :heavy_check_mark: | N/A | | `type` | *Literal["video_url"]* | :heavy_check_mark: | N/A |
| `video_url` | [components.VideoURL2](../components/videourl2.md) | :heavy_check_mark: | N/A | | `video_url` | [components.ChatMessageContentItemVideoVideoURLVideoURL](../components/chatmessagecontentitemvideovideourlvideourl.md) | :heavy_check_mark: | N/A |
@@ -1,4 +1,4 @@
# VideoURL2 # ChatMessageContentItemVideoVideoURLVideoURL
## Fields ## Fields
@@ -1,4 +1,4 @@
# VideoURL1 # VideoURL
## Fields ## Fields
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "openrouter" name = "openrouter"
version = "0.0.21" version = "0.0.22"
description = "Official Python Client SDK for OpenRouter." description = "Official Python Client SDK for OpenRouter."
authors = [{ name = "OpenRouter" },] authors = [{ name = "OpenRouter" },]
readme = "README-PYPI.md" readme = "README-PYPI.md"
+2 -2
View File
@@ -3,10 +3,10 @@
import importlib.metadata import importlib.metadata
__title__: str = "openrouter" __title__: str = "openrouter"
__version__: str = "0.0.21" __version__: str = "0.0.22"
__openapi_doc_version__: str = "1.0.0" __openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.755.9" __gen_version__: str = "2.755.9"
__user_agent__: str = "speakeasy-sdk/python 0.0.21 2.755.9 1.0.0 openrouter" __user_agent__: str = "speakeasy-sdk/python 0.0.22 2.755.9 1.0.0 openrouter"
try: try:
if __package__ is not None: if __package__ is not None:
+11 -12
View File
@@ -82,10 +82,8 @@ if TYPE_CHECKING:
ChatMessageContentItemVideoTypedDict, ChatMessageContentItemVideoTypedDict,
ChatMessageContentItemVideoVideoURL, ChatMessageContentItemVideoVideoURL,
ChatMessageContentItemVideoVideoURLTypedDict, ChatMessageContentItemVideoVideoURLTypedDict,
VideoURL1, ChatMessageContentItemVideoVideoURLVideoURL,
VideoURL1TypedDict, ChatMessageContentItemVideoVideoURLVideoURLTypedDict,
VideoURL2,
VideoURL2TypedDict,
) )
from .chatmessagetokenlogprob import ( from .chatmessagetokenlogprob import (
ChatMessageTokenLogprob, ChatMessageTokenLogprob,
@@ -786,6 +784,7 @@ if TYPE_CHECKING:
UserMessageContentTypedDict, UserMessageContentTypedDict,
UserMessageTypedDict, UserMessageTypedDict,
) )
from .videourl import VideoURL, VideoURLTypedDict
from .websearchpreviewtooluserlocation import ( from .websearchpreviewtooluserlocation import (
WebSearchPreviewToolUserLocation, WebSearchPreviewToolUserLocation,
WebSearchPreviewToolUserLocationType, WebSearchPreviewToolUserLocationType,
@@ -844,6 +843,8 @@ __all__ = [
"ChatMessageContentItemVideoTypedDict", "ChatMessageContentItemVideoTypedDict",
"ChatMessageContentItemVideoVideoURL", "ChatMessageContentItemVideoVideoURL",
"ChatMessageContentItemVideoVideoURLTypedDict", "ChatMessageContentItemVideoVideoURLTypedDict",
"ChatMessageContentItemVideoVideoURLVideoURL",
"ChatMessageContentItemVideoVideoURLVideoURLTypedDict",
"ChatMessageTokenLogprob", "ChatMessageTokenLogprob",
"ChatMessageTokenLogprobTypedDict", "ChatMessageTokenLogprobTypedDict",
"ChatMessageTokenLogprobs", "ChatMessageTokenLogprobs",
@@ -1390,10 +1391,8 @@ __all__ = [
"UserMessageTypedDict", "UserMessageTypedDict",
"Variables", "Variables",
"VariablesTypedDict", "VariablesTypedDict",
"VideoURL1", "VideoURL",
"VideoURL1TypedDict", "VideoURLTypedDict",
"VideoURL2",
"VideoURL2TypedDict",
"WebSearchPreviewToolUserLocation", "WebSearchPreviewToolUserLocation",
"WebSearchPreviewToolUserLocationType", "WebSearchPreviewToolUserLocationType",
"WebSearchPreviewToolUserLocationTypedDict", "WebSearchPreviewToolUserLocationTypedDict",
@@ -1460,10 +1459,8 @@ _dynamic_imports: dict[str, str] = {
"ChatMessageContentItemVideoTypedDict": ".chatmessagecontentitemvideo", "ChatMessageContentItemVideoTypedDict": ".chatmessagecontentitemvideo",
"ChatMessageContentItemVideoVideoURL": ".chatmessagecontentitemvideo", "ChatMessageContentItemVideoVideoURL": ".chatmessagecontentitemvideo",
"ChatMessageContentItemVideoVideoURLTypedDict": ".chatmessagecontentitemvideo", "ChatMessageContentItemVideoVideoURLTypedDict": ".chatmessagecontentitemvideo",
"VideoURL1": ".chatmessagecontentitemvideo", "ChatMessageContentItemVideoVideoURLVideoURL": ".chatmessagecontentitemvideo",
"VideoURL1TypedDict": ".chatmessagecontentitemvideo", "ChatMessageContentItemVideoVideoURLVideoURLTypedDict": ".chatmessagecontentitemvideo",
"VideoURL2": ".chatmessagecontentitemvideo",
"VideoURL2TypedDict": ".chatmessagecontentitemvideo",
"ChatMessageTokenLogprob": ".chatmessagetokenlogprob", "ChatMessageTokenLogprob": ".chatmessagetokenlogprob",
"ChatMessageTokenLogprobTypedDict": ".chatmessagetokenlogprob", "ChatMessageTokenLogprobTypedDict": ".chatmessagetokenlogprob",
"TopLogprob": ".chatmessagetokenlogprob", "TopLogprob": ".chatmessagetokenlogprob",
@@ -2001,6 +1998,8 @@ _dynamic_imports: dict[str, str] = {
"UserMessageContent": ".usermessage", "UserMessageContent": ".usermessage",
"UserMessageContentTypedDict": ".usermessage", "UserMessageContentTypedDict": ".usermessage",
"UserMessageTypedDict": ".usermessage", "UserMessageTypedDict": ".usermessage",
"VideoURL": ".videourl",
"VideoURLTypedDict": ".videourl",
"WebSearchPreviewToolUserLocation": ".websearchpreviewtooluserlocation", "WebSearchPreviewToolUserLocation": ".websearchpreviewtooluserlocation",
"WebSearchPreviewToolUserLocationType": ".websearchpreviewtooluserlocation", "WebSearchPreviewToolUserLocationType": ".websearchpreviewtooluserlocation",
"WebSearchPreviewToolUserLocationTypedDict": ".websearchpreviewtooluserlocation", "WebSearchPreviewToolUserLocationTypedDict": ".websearchpreviewtooluserlocation",
@@ -1,6 +1,7 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations from __future__ import annotations
from .videourl import VideoURL, VideoURLTypedDict
from openrouter.types import BaseModel from openrouter.types import BaseModel
from openrouter.utils import validate_const from openrouter.utils import validate_const
import pydantic import pydantic
@@ -9,21 +10,21 @@ from typing import Literal, Union
from typing_extensions import Annotated, TypeAliasType, TypedDict from typing_extensions import Annotated, TypeAliasType, TypedDict
class VideoURL2TypedDict(TypedDict): class ChatMessageContentItemVideoVideoURLVideoURLTypedDict(TypedDict):
url: str url: str
class VideoURL2(BaseModel): class ChatMessageContentItemVideoVideoURLVideoURL(BaseModel):
url: str url: str
class ChatMessageContentItemVideoVideoURLTypedDict(TypedDict): class ChatMessageContentItemVideoVideoURLTypedDict(TypedDict):
video_url: VideoURL2TypedDict video_url: ChatMessageContentItemVideoVideoURLVideoURLTypedDict
type: Literal["video_url"] type: Literal["video_url"]
class ChatMessageContentItemVideoVideoURL(BaseModel): class ChatMessageContentItemVideoVideoURL(BaseModel):
video_url: VideoURL2 video_url: ChatMessageContentItemVideoVideoURLVideoURL
TYPE: Annotated[ TYPE: Annotated[
Annotated[Literal["video_url"], AfterValidator(validate_const("video_url"))], Annotated[Literal["video_url"], AfterValidator(validate_const("video_url"))],
@@ -31,21 +32,13 @@ class ChatMessageContentItemVideoVideoURL(BaseModel):
] = "video_url" ] = "video_url"
class VideoURL1TypedDict(TypedDict):
url: str
class VideoURL1(BaseModel):
url: str
class ChatMessageContentItemVideoInputVideoTypedDict(TypedDict): class ChatMessageContentItemVideoInputVideoTypedDict(TypedDict):
video_url: VideoURL1TypedDict video_url: VideoURLTypedDict
type: Literal["input_video"] type: Literal["input_video"]
class ChatMessageContentItemVideoInputVideo(BaseModel): class ChatMessageContentItemVideoInputVideo(BaseModel):
video_url: VideoURL1 video_url: VideoURL
TYPE: Annotated[ TYPE: Annotated[
Annotated[ Annotated[
+13
View File
@@ -0,0 +1,13 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from openrouter.types import BaseModel
from typing_extensions import TypedDict
class VideoURLTypedDict(TypedDict):
url: str
class VideoURL(BaseModel):
url: str