python-fastllm 0.0.22__tar.gz → 0.0.23__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/PKG-INFO +1 -1
- python_fastllm-0.0.23/fastllm/__init__.py +1 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/acomplete.py +7 -1
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/python_fastllm.egg-info/PKG-INFO +1 -1
- python_fastllm-0.0.22/fastllm/__init__.py +0 -1
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/README.md +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/_modidx.py +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/anthropic.py +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/chat.py +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/codex.py +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/gemini.py +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/openai_chat.py +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/openai_responses.py +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/specs/anthropic.json +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/specs/anthropic.yml +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/specs/gemini.json +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/specs/openai.with-code-samples.json +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/specs/openai.with-code-samples.yml +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/specs/spec_manifest.json +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/streaming.py +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/fastllm/types.py +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/pyproject.toml +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/python_fastllm.egg-info/SOURCES.txt +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/python_fastllm.egg-info/dependency_links.txt +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/python_fastllm.egg-info/entry_points.txt +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/python_fastllm.egg-info/requires.txt +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/python_fastllm.egg-info/top_level.txt +0 -0
- {python_fastllm-0.0.22 → python_fastllm-0.0.23}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.23"
|
|
@@ -144,6 +144,13 @@ async def acomplete(msgs, model, api_name=None, vendor_name=None, api_key=None,
|
|
|
144
144
|
base_url=None, xtra_body=None, xtra_hdrs=None, stream=False,
|
|
145
145
|
stop_callables=None, retries=2, retry_delay=0.5, **kwargs):
|
|
146
146
|
"Unified completion across different APIs."
|
|
147
|
+
if api_name == 'claude_code':
|
|
148
|
+
if not stream: raise NotImplementedError("claude_code backend supports stream=True only for now")
|
|
149
|
+
api = api_registry.apis[api_name]
|
|
150
|
+
payload = api.mk_payload(msgs, model, stream=stream, **kwargs)
|
|
151
|
+
async def _mk_gen():
|
|
152
|
+
async for o in api.acollect_stream(payload, model=model, vendor_name=vendor_name, stop_callables=stop_callables): yield o
|
|
153
|
+
return _retry_stream(_mk_gen, retries, retry_delay)
|
|
147
154
|
cli, api_name, vendor_name = mk_client(model, vendor_name, api_name, api_key, base_url, xtra_hdrs)
|
|
148
155
|
api = api_registry.apis[api_name]
|
|
149
156
|
payload = api.mk_payload(msgs, model, stream=stream, **kwargs)
|
|
@@ -164,5 +171,4 @@ async def acomplete(msgs, model, api_name=None, vendor_name=None, api_key=None,
|
|
|
164
171
|
async def _mk_gen():
|
|
165
172
|
resp = await _call()
|
|
166
173
|
async for o in api.acollect_stream(resp, model=model, vendor_name=vendor_name, stop_callables=stop_callables): yield o
|
|
167
|
-
|
|
168
174
|
return _retry_stream(_mk_gen, retries, retry_delay)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.22"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_fastllm-0.0.22 → python_fastllm-0.0.23}/python_fastllm.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|