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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ keywords = [
]
requires-python = ">=3.11,<4.0"
dependencies = [
"any-llm-sdk>=1.7.0",
"any-llm-sdk>=1.13.0",
"authlib>=1.6.5",
"httpx>=0.28.1",
"pydantic>=2.7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/republic/core/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def _call_completion_like_sync(
stream=request.stream,
reasoning_effort=request.reasoning_effort,
**completion_kwargs,
),
), # ty: ignore[no-matching-overload]
)

async def _call_responses_async(
Expand Down
6 changes: 3 additions & 3 deletions tests/test_tape_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ class _AwaitableMessages:
def __init__(self, messages: list[dict[str, str]]) -> None:
self._messages = messages

def __await__(self): # type: ignore[no-untyped-def]
def __await__(self):
async def _resolve() -> list[dict[str, str]]:
return self._messages

return _resolve().__await__()


def test_sync_manager_rejects_async_context_selector(manager) -> None:
def select(entries, context): # type: ignore[no-untyped-def]
def select(entries, context):
return _AwaitableMessages([{"role": "assistant", "content": str(len(list(entries)))}])

context = TapeContext(anchor=LAST_ANCHOR, select=select)
Expand All @@ -73,7 +73,7 @@ async def test_async_manager_awaits_context_selector_after_anchor_slice() -> Non

seen: dict[str, object] = {}

async def select(entries, context): # type: ignore[no-untyped-def]
async def select(entries, context):
entry_list = list(entries)
seen["contents"] = [entry.payload["content"] for entry in entry_list]
seen["state"] = dict(context.state)
Expand Down
51 changes: 47 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading