ommlds 0.0.0.dev441__tar.gz → 0.0.0.dev443__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.
- {ommlds-0.0.0.dev441/ommlds.egg-info → ommlds-0.0.0.dev443}/PKG-INFO +7 -7
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/.omlish-manifests.json +7 -7
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/__about__.py +2 -2
- ommlds-0.0.0.dev443/ommlds/backends/google/protocol/types.py +75 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/openai/protocol/__init__.py +9 -28
- ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/_marshal.py +26 -0
- ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/chatcompletion/chunk.py +94 -0
- ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/chatcompletion/contentpart.py +74 -0
- ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/chatcompletion/message.py +93 -0
- ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/chatcompletion/request.py +170 -0
- ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/chatcompletion/response.py +106 -0
- ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/chatcompletion/responseformat.py +42 -0
- ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/chatcompletion/tokenlogprob.py +22 -0
- ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/completionusage.py +28 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/chat/interactive.py +2 -2
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/chat/prompt.py +7 -7
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/completion/completion.py +2 -2
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/embedding/embedding.py +2 -2
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/__init__.py +6 -3
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/anthropic/chat.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/anthropic/stream.py +21 -18
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/duckduckgo/search.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/google/chat.py +19 -14
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/google/search.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/llamacpp/chat.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/llamacpp/completion.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/llamacpp/stream.py +6 -5
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/mistral.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/mlx/chat.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/openai/chat.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/openai/completion.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/openai/embedding.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/openai/stream.py +15 -6
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/tinygrad/chat.py +9 -7
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/transformers/sentence.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/transformers/transformers.py +2 -2
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/choices/adapters.py +2 -2
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/choices/services.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/history.py +2 -2
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/services.py +1 -1
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/stream/adapters.py +5 -5
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/stream/services.py +1 -7
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/transforms/services.py +4 -4
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/resources.py +38 -40
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/services/facades.py +3 -3
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/services/services.py +1 -1
- ommlds-0.0.0.dev443/ommlds/minichain/stream/services.py +195 -0
- ommlds-0.0.0.dev443/ommlds/minichain/stream/wrap.py +62 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/server/server.py +2 -2
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/tools/git.py +4 -4
- ommlds-0.0.0.dev443/ommlds/wiki/text/__init__.py +0 -0
- ommlds-0.0.0.dev443/ommlds/wiki/utils/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443/ommlds.egg-info}/PKG-INFO +7 -7
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds.egg-info/SOURCES.txt +4 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds.egg-info/requires.txt +6 -6
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/pyproject.toml +7 -7
- ommlds-0.0.0.dev441/ommlds/backends/openai/protocol/chatcompletion/chunk.py +0 -71
- ommlds-0.0.0.dev441/ommlds/backends/openai/protocol/chatcompletion/contentpart.py +0 -77
- ommlds-0.0.0.dev441/ommlds/backends/openai/protocol/chatcompletion/message.py +0 -91
- ommlds-0.0.0.dev441/ommlds/backends/openai/protocol/chatcompletion/request.py +0 -140
- ommlds-0.0.0.dev441/ommlds/backends/openai/protocol/chatcompletion/response.py +0 -90
- ommlds-0.0.0.dev441/ommlds/backends/openai/protocol/chatcompletion/responseformat.py +0 -41
- ommlds-0.0.0.dev441/ommlds/backends/openai/protocol/chatcompletion/tokenlogprob.py +0 -17
- ommlds-0.0.0.dev441/ommlds/backends/openai/protocol/completionusage.py +0 -24
- ommlds-0.0.0.dev441/ommlds/minichain/stream/services.py +0 -96
- ommlds-0.0.0.dev441/ommlds/minichain/stream/wrap.py +0 -64
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/LICENSE +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/MANIFEST.in +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/README.md +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/_hacks/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/_hacks/patches.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/anthropic/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/anthropic/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/anthropic/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/anthropic/protocol/sse/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/anthropic/protocol/sse/_marshal.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/anthropic/protocol/sse/assemble.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/anthropic/protocol/sse/events.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/anthropic/protocol/types.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/backends/mlx/tokenization/detokenization → ommlds-0.0.0.dev443/ommlds/backends/google}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/backends/openai → ommlds-0.0.0.dev443/ommlds/backends/google/protocol}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/llamacpp/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/llamacpp/buildwheel.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/llamacpp/logging.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/__main__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/caching.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/cli.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/generation.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/limits.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/loading.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/tokenization/LICENSE +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/tokenization/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/backends/openai/protocol/chatcompletion → ommlds-0.0.0.dev443/ommlds/backends/mlx/tokenization/detokenization}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/tokenization/detokenization/base.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/tokenization/detokenization/bpe.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/tokenization/detokenization/naive.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/tokenization/detokenization/spm.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/tokenization/loading.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/tokenization/tokenization.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/mlx/tokenization/types.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/backends/tinygrad → ommlds-0.0.0.dev443/ommlds/backends/openai}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/backends/tinygrad/models → ommlds-0.0.0.dev443/ommlds/backends/openai/protocol/chatcompletion}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/cli → ommlds-0.0.0.dev443/ommlds/backends/tinygrad}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/LICENSE +0 -0
- {ommlds-0.0.0.dev441/ommlds/cli/backends → ommlds-0.0.0.dev443/ommlds/backends/tinygrad/models}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/__main__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/attention.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/cli.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/fetch.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/llm.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/loading.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/quantization.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/sampling.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/tokenization.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/llama3/transformer.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/sdxl/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/sdxl/__main__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/sdxl/cli.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/sdxl/clip.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/sdxl/sdxl.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/models/sdxl/unet.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/tinygrad/tinygrad.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/torch/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/torch/backends.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/torch/devices.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/backends/torch/purge.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/cli/sessions → ommlds-0.0.0.dev443/ommlds/cli}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/__main__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/cli/sessions/chat → ommlds-0.0.0.dev443/ommlds/cli/backends}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/backends/inject.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/backends/standard.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/inject.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/main.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/cli/sessions/completion → ommlds-0.0.0.dev443/ommlds/cli/sessions}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/base.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/cli/sessions/embedding → ommlds-0.0.0.dev443/ommlds/cli/sessions/chat}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/chat/base.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/chat/inject.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/chat/printing.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/chat/state.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/chat/tools.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/cli/tools → ommlds-0.0.0.dev443/ommlds/cli/sessions/completion}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/datasets → ommlds-0.0.0.dev443/ommlds/cli/sessions/embedding}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/sessions/inject.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/state.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/datasets/lib → ommlds-0.0.0.dev443/ommlds/cli/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/tools/config.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/tools/inject.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/cli/tools/weather.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends → ommlds-0.0.0.dev443/ommlds/datasets}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/catalogs → ommlds-0.0.0.dev443/ommlds/datasets/lib}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/datasets/lib/movies.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/huggingface.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/_marshal.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/_typedvalues.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls → ommlds-0.0.0.dev443/ommlds/minichain/backends}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/anthropic → ommlds-0.0.0.dev443/ommlds/minichain/backends/catalogs}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/catalogs/base.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/catalogs/simple.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/catalogs/strings.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/duckduckgo → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/google → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/anthropic}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/anthropic/names.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/huggingface → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/duckduckgo}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/llamacpp → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/google}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/google/names.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/mlx → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/huggingface}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/huggingface/configs.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/huggingface/repos.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/openai → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/llamacpp}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/llamacpp/format.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/sentencepiece → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/mlx}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/tinygrad → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/openai}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/openai/format.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/openai/names.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/tokenizers → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/sentencepiece}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/sentencepiece/tokens.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/sqlite.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/impls/transformers → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/tinygrad}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/backends/strings → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/tokenizers}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/tokenizers/tokens.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/chat → ommlds-0.0.0.dev443/ommlds/minichain/backends/impls/transformers}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/impls/transformers/tokens.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/chat/choices → ommlds-0.0.0.dev443/ommlds/minichain/backends/strings}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/strings/manifests.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/strings/parsing.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/backends/strings/resolving.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/chat/stream → ommlds-0.0.0.dev443/ommlds/minichain/chat}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/_marshal.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/chat/tools → ommlds-0.0.0.dev443/ommlds/minichain/chat/choices}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/choices/types.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/formats.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/messages.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/metadata.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/chat/transforms → ommlds-0.0.0.dev443/ommlds/minichain/chat/stream}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/stream/types.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/templating.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/content/transforms → ommlds-0.0.0.dev443/ommlds/minichain/chat/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/tools/execution.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/tools/ids.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/tools/parsing.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/tools/types.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/lib → ommlds-0.0.0.dev443/ommlds/minichain/chat/transforms}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/transforms/base.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/transforms/metadata.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/chat/types.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/completion.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/configs.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/_marshal.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/images.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/materialize.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/metadata.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/namespaces.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/placeholders.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/prepare.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/sequence.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/simple.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/text.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/lib/fs → ommlds-0.0.0.dev443/ommlds/minichain/content/transforms}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/transforms/base.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/transforms/interleave.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/transforms/squeeze.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/transforms/stringify.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/transforms/strings.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/content/types.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/docs/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/docs/docs.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/docs/dtypes.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/docs/filters.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/envs.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/json.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/lib/fs/ls → ommlds-0.0.0.dev443/ommlds/minichain/lib}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/lib/bash.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/llms → ommlds-0.0.0.dev443/ommlds/minichain/lib/fs}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/models → ommlds-0.0.0.dev443/ommlds/minichain/lib/fs/ls}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/lib/fs/ls/execution.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/lib/fs/ls/rendering.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/lib/fs/ls/running.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/models/repos → ommlds-0.0.0.dev443/ommlds/minichain/llms}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/llms/_marshal.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/llms/tokens.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/llms/types.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/metadata.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/registries → ommlds-0.0.0.dev443/ommlds/minichain/models}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/models/configs.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/models/names.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/stream → ommlds-0.0.0.dev443/ommlds/minichain/models/repos}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/models/repos/resolving.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/text → ommlds-0.0.0.dev443/ommlds/minichain/registries}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/registries/globals.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/registries/manifests.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/registries/registry.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/search.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/services/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/services/_marshal.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/services/_origclasses.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/services/_typedvalues.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/services/requests.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/services/responses.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/standard.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/text/toolparsing → ommlds-0.0.0.dev443/ommlds/minichain/stream}/__init__.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/tools → ommlds-0.0.0.dev443/ommlds/minichain/text}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/text/applypatch.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/tools/execution → ommlds-0.0.0.dev443/ommlds/minichain/text/toolparsing}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/text/toolparsing/base.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/text/toolparsing/dumb.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/text/toolparsing/llamacpp/LICENSE +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/text/toolparsing/llamacpp/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/text/toolparsing/llamacpp/hermes2.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/text/toolparsing/llamacpp/llama31.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/text/toolparsing/llamacpp/types.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/text/toolparsing/llamacpp/utils.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tokens/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tokens/specials.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tokens/tokenizers.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tokens/types.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tokens/vocabs.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/minichain/vectors → ommlds-0.0.0.dev443/ommlds/minichain/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tools/_marshal.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/server → ommlds-0.0.0.dev443/ommlds/minichain/tools/execution}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tools/execution/catalog.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tools/execution/context.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tools/execution/executors.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tools/execution/reflect.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tools/fns.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tools/jsonschema.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tools/reflect.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/tools/types.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/types.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/tools → ommlds-0.0.0.dev443/ommlds/minichain/vectors}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/vectors/_marshal.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/vectors/embeddings.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/vectors/index.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/vectors/search.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/vectors/similarity.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/vectors/stores.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/minichain/vectors/types.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/wiki → ommlds-0.0.0.dev443/ommlds/server}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/server/__main__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/server/cli.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/server/client.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/server/service.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/wiki/text → ommlds-0.0.0.dev443/ommlds/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/tools/ocr.py +0 -0
- {ommlds-0.0.0.dev441/ommlds/wiki/utils → ommlds-0.0.0.dev443/ommlds/wiki}/__init__.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/wiki/analyze.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/wiki/convert.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/wiki/models.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/wiki/text/mfh.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/wiki/text/wtp.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/wiki/utils/io.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/wiki/utils/progress.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/wiki/utils/xml.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds/wiki/xml.py +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds.egg-info/dependency_links.txt +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds.egg-info/entry_points.txt +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/ommlds.egg-info/top_level.txt +0 -0
- {ommlds-0.0.0.dev441 → ommlds-0.0.0.dev443}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ommlds
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev443
|
|
4
4
|
Summary: ommlds
|
|
5
5
|
Author: wrmsr
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -14,12 +14,12 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Requires-Python: >=3.13
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: omdev==0.0.0.
|
|
18
|
-
Requires-Dist: omlish==0.0.0.
|
|
17
|
+
Requires-Dist: omdev==0.0.0.dev443
|
|
18
|
+
Requires-Dist: omlish==0.0.0.dev443
|
|
19
19
|
Provides-Extra: all
|
|
20
20
|
Requires-Dist: llama-cpp-python~=0.3; extra == "all"
|
|
21
21
|
Requires-Dist: mlx~=0.29; extra == "all"
|
|
22
|
-
Requires-Dist: mlx-lm~=0.
|
|
22
|
+
Requires-Dist: mlx-lm~=0.28; sys_platform == "darwin" and extra == "all"
|
|
23
23
|
Requires-Dist: tiktoken~=0.11; extra == "all"
|
|
24
24
|
Requires-Dist: tinygrad~=0.11; extra == "all"
|
|
25
25
|
Requires-Dist: tokenizers~=0.22; extra == "all"
|
|
@@ -32,14 +32,14 @@ Requires-Dist: numpy>=1.26; extra == "all"
|
|
|
32
32
|
Requires-Dist: pytesseract~=0.3; extra == "all"
|
|
33
33
|
Requires-Dist: rapidocr-onnxruntime~=1.4; extra == "all"
|
|
34
34
|
Requires-Dist: pillow~=11.3; extra == "all"
|
|
35
|
-
Requires-Dist: ddgs~=9.
|
|
35
|
+
Requires-Dist: ddgs~=9.6; extra == "all"
|
|
36
36
|
Requires-Dist: mwparserfromhell~=0.7; extra == "all"
|
|
37
37
|
Requires-Dist: wikitextparser~=0.56; extra == "all"
|
|
38
38
|
Requires-Dist: lxml>=5.3; python_version < "3.13" and extra == "all"
|
|
39
39
|
Provides-Extra: backends
|
|
40
40
|
Requires-Dist: llama-cpp-python~=0.3; extra == "backends"
|
|
41
41
|
Requires-Dist: mlx~=0.29; extra == "backends"
|
|
42
|
-
Requires-Dist: mlx-lm~=0.
|
|
42
|
+
Requires-Dist: mlx-lm~=0.28; sys_platform == "darwin" and extra == "backends"
|
|
43
43
|
Requires-Dist: tiktoken~=0.11; extra == "backends"
|
|
44
44
|
Requires-Dist: tinygrad~=0.11; extra == "backends"
|
|
45
45
|
Requires-Dist: tokenizers~=0.22; extra == "backends"
|
|
@@ -57,7 +57,7 @@ Requires-Dist: rapidocr-onnxruntime~=1.4; extra == "ocr"
|
|
|
57
57
|
Provides-Extra: pillow
|
|
58
58
|
Requires-Dist: pillow~=11.3; extra == "pillow"
|
|
59
59
|
Provides-Extra: search
|
|
60
|
-
Requires-Dist: ddgs~=9.
|
|
60
|
+
Requires-Dist: ddgs~=9.6; extra == "search"
|
|
61
61
|
Provides-Extra: wiki
|
|
62
62
|
Requires-Dist: mwparserfromhell~=0.7; extra == "wiki"
|
|
63
63
|
Requires-Dist: wikitextparser~=0.56; extra == "wiki"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"module": ".minichain.backends.impls.anthropic.stream",
|
|
64
64
|
"attr": null,
|
|
65
65
|
"file": "ommlds/minichain/backends/impls/anthropic/stream.py",
|
|
66
|
-
"line":
|
|
66
|
+
"line": 35,
|
|
67
67
|
"value": {
|
|
68
68
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
69
69
|
"module": "ommlds.minichain.backends.impls.anthropic.stream",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"module": ".minichain.backends.impls.google.chat",
|
|
96
96
|
"attr": null,
|
|
97
97
|
"file": "ommlds/minichain/backends/impls/google/chat.py",
|
|
98
|
-
"line":
|
|
98
|
+
"line": 30,
|
|
99
99
|
"value": {
|
|
100
100
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
101
101
|
"module": "ommlds.minichain.backends.impls.google.chat",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"module": ".minichain.backends.impls.llamacpp.stream",
|
|
185
185
|
"attr": null,
|
|
186
186
|
"file": "ommlds/minichain/backends/impls/llamacpp/stream.py",
|
|
187
|
-
"line":
|
|
187
|
+
"line": 32,
|
|
188
188
|
"value": {
|
|
189
189
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
190
190
|
"module": "ommlds.minichain.backends.impls.llamacpp.stream",
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
"module": ".minichain.backends.impls.openai.stream",
|
|
342
342
|
"attr": null,
|
|
343
343
|
"file": "ommlds/minichain/backends/impls/openai/stream.py",
|
|
344
|
-
"line":
|
|
344
|
+
"line": 37,
|
|
345
345
|
"value": {
|
|
346
346
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
347
347
|
"module": "ommlds.minichain.backends.impls.openai.stream",
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
"module": ".minichain.backends.impls.tinygrad.chat",
|
|
357
357
|
"attr": null,
|
|
358
358
|
"file": "ommlds/minichain/backends/impls/tinygrad/chat.py",
|
|
359
|
-
"line":
|
|
359
|
+
"line": 115,
|
|
360
360
|
"value": {
|
|
361
361
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
362
362
|
"module": "ommlds.minichain.backends.impls.tinygrad.chat",
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
"module": ".minichain.backends.impls.tinygrad.chat",
|
|
372
372
|
"attr": null,
|
|
373
373
|
"file": "ommlds/minichain/backends/impls/tinygrad/chat.py",
|
|
374
|
-
"line":
|
|
374
|
+
"line": 135,
|
|
375
375
|
"value": {
|
|
376
376
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
377
377
|
"module": "ommlds.minichain.backends.impls.tinygrad.chat",
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
"module": ".minichain.backends.impls.tinygrad.chat",
|
|
387
387
|
"attr": null,
|
|
388
388
|
"file": "ommlds/minichain/backends/impls/tinygrad/chat.py",
|
|
389
|
-
"line":
|
|
389
|
+
"line": 161,
|
|
390
390
|
"value": {
|
|
391
391
|
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
392
392
|
"service_cls_names": [
|
|
@@ -19,7 +19,7 @@ class Project(ProjectBase):
|
|
|
19
19
|
'llama-cpp-python ~= 0.3',
|
|
20
20
|
|
|
21
21
|
'mlx ~= 0.29',
|
|
22
|
-
'mlx-lm ~= 0.
|
|
22
|
+
'mlx-lm ~= 0.28; sys_platform == "darwin"',
|
|
23
23
|
|
|
24
24
|
# 'sentencepiece ~= 0.2', # FIXME: https://github.com/google/sentencepiece/issues/1121
|
|
25
25
|
|
|
@@ -56,7 +56,7 @@ class Project(ProjectBase):
|
|
|
56
56
|
],
|
|
57
57
|
|
|
58
58
|
'search': [
|
|
59
|
-
'ddgs ~= 9.
|
|
59
|
+
'ddgs ~= 9.6',
|
|
60
60
|
],
|
|
61
61
|
|
|
62
62
|
'wiki': [
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
3
|
+
from omlish import dataclasses as dc
|
|
4
|
+
from omlish import lang
|
|
5
|
+
from omlish import marshal as msh
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
##
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
12
|
+
@msh.update_object_metadata(field_naming=msh.Naming.LOW_CAMEL)
|
|
13
|
+
class GenerateContentRequest:
|
|
14
|
+
"""https://ai.google.dev/api/generate-content#request-body"""
|
|
15
|
+
|
|
16
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
17
|
+
@msh.update_object_metadata(field_naming=msh.Naming.LOW_CAMEL)
|
|
18
|
+
class Content(lang.Final):
|
|
19
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
20
|
+
@msh.update_object_metadata(field_naming=msh.Naming.LOW_CAMEL)
|
|
21
|
+
class Part(lang.Final):
|
|
22
|
+
text: str
|
|
23
|
+
|
|
24
|
+
parts: ta.Sequence[Part]
|
|
25
|
+
role: ta.Literal['user', 'model']
|
|
26
|
+
|
|
27
|
+
contents: ta.Sequence[Content]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
31
|
+
@msh.update_object_metadata(field_naming=msh.Naming.LOW_CAMEL)
|
|
32
|
+
class GenerateContentResponse:
|
|
33
|
+
"""https://ai.google.dev/api/generate-content#v1beta.GenerateContentResponse"""
|
|
34
|
+
|
|
35
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
36
|
+
@msh.update_object_metadata(field_naming=msh.Naming.LOW_CAMEL)
|
|
37
|
+
class Candidate(lang.Final):
|
|
38
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
39
|
+
@msh.update_object_metadata(field_naming=msh.Naming.LOW_CAMEL)
|
|
40
|
+
class Content(lang.Final):
|
|
41
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
42
|
+
@msh.update_object_metadata(field_naming=msh.Naming.LOW_CAMEL)
|
|
43
|
+
class Part(lang.Final):
|
|
44
|
+
text: str
|
|
45
|
+
|
|
46
|
+
parts: ta.Sequence[Part]
|
|
47
|
+
role: ta.Literal['user', 'model']
|
|
48
|
+
|
|
49
|
+
content: Content
|
|
50
|
+
finish_reason: ta.Literal['STOP'] | None
|
|
51
|
+
index: int
|
|
52
|
+
|
|
53
|
+
candidates: ta.Sequence[Candidate]
|
|
54
|
+
|
|
55
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
56
|
+
@msh.update_object_metadata(field_naming=msh.Naming.LOW_CAMEL)
|
|
57
|
+
class UsageMetadata(lang.Final):
|
|
58
|
+
prompt_token_count: int
|
|
59
|
+
candidates_token_count: int
|
|
60
|
+
total_token_count: int
|
|
61
|
+
thoughts_token_count: int
|
|
62
|
+
|
|
63
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
64
|
+
@msh.update_object_metadata(field_naming=msh.Naming.LOW_CAMEL)
|
|
65
|
+
class ModalityTokenCount:
|
|
66
|
+
modality: str
|
|
67
|
+
token_count: int
|
|
68
|
+
|
|
69
|
+
prompt_tokens_details: ta.Sequence[ModalityTokenCount]
|
|
70
|
+
|
|
71
|
+
usage_metadata: UsageMetadata
|
|
72
|
+
|
|
73
|
+
model_version: str
|
|
74
|
+
|
|
75
|
+
response_id: str
|
|
@@ -5,11 +5,8 @@ https://github.com/openai/openai-openapi/blob/master/openapi.yaml
|
|
|
5
5
|
# ruff: noqa: I001
|
|
6
6
|
|
|
7
7
|
from .chatcompletion.chunk import ( # noqa
|
|
8
|
-
ChatCompletionChunkChoiceDeltaToolCallFunction,
|
|
9
|
-
ChatCompletionChunkChoiceDeltaToolCall,
|
|
10
8
|
ChatCompletionChunkChoiceDelta,
|
|
11
9
|
|
|
12
|
-
ChatCompletionChunkChoiceLogprobs,
|
|
13
10
|
ChatCompletionChunkChoice,
|
|
14
11
|
|
|
15
12
|
ChatCompletionChunk,
|
|
@@ -18,13 +15,10 @@ from .chatcompletion.chunk import ( # noqa
|
|
|
18
15
|
from .chatcompletion.contentpart import ( # noqa
|
|
19
16
|
TextChatCompletionContentPart,
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
ImageChatCompletionContentPart,
|
|
18
|
+
ImageUrlChatCompletionContentPart,
|
|
23
19
|
|
|
24
|
-
FileChatCompletionContentPartFileInfo,
|
|
25
20
|
FileChatCompletionContentPart,
|
|
26
21
|
|
|
27
|
-
InputAudioChatCompletionContentPartInputAudio,
|
|
28
22
|
InputAudioChatCompletionContentPart,
|
|
29
23
|
|
|
30
24
|
RefusalChatCompletionContentPart,
|
|
@@ -39,9 +33,6 @@ from .chatcompletion.message import ( # noqa
|
|
|
39
33
|
|
|
40
34
|
UserChatCompletionMessage,
|
|
41
35
|
|
|
42
|
-
AssistantChatCompletionMessageAudio,
|
|
43
|
-
AssistantChatCompletionMessageToolCallFunction,
|
|
44
|
-
AssistantChatCompletionMessageToolCall,
|
|
45
36
|
AssistantChatCompletionMessage,
|
|
46
37
|
|
|
47
38
|
ToolChatCompletionMessage,
|
|
@@ -52,18 +43,12 @@ from .chatcompletion.message import ( # noqa
|
|
|
52
43
|
)
|
|
53
44
|
|
|
54
45
|
from .chatcompletion.request import ( # noqa
|
|
55
|
-
ChatCompletionRequestWebSearchOptionsUserLocationApproximate,
|
|
56
|
-
ChatCompletionRequestWebSearchOptionsUserLocation,
|
|
57
46
|
ChatCompletionRequestWebSearchOptions,
|
|
58
47
|
|
|
59
48
|
ChatCompletionRequestPrediction,
|
|
60
49
|
|
|
61
|
-
ChatCompletionRequestToolFunction,
|
|
62
50
|
ChatCompletionRequestTool,
|
|
63
51
|
|
|
64
|
-
ChatCompletionRequestStreamOptions,
|
|
65
|
-
|
|
66
|
-
ChatCompletionRequestNamedToolChoiceFunction,
|
|
67
52
|
ChatCompletionRequestNamedToolChoice,
|
|
68
53
|
|
|
69
54
|
ChatCompletionRequestAudio,
|
|
@@ -72,16 +57,8 @@ from .chatcompletion.request import ( # noqa
|
|
|
72
57
|
)
|
|
73
58
|
|
|
74
59
|
from .chatcompletion.response import ( # noqa
|
|
75
|
-
ChatCompletionResponseAnnotationUrlCitation,
|
|
76
|
-
ChatCompletionResponseAnnotation,
|
|
77
|
-
|
|
78
|
-
ChatCompletionResponseAudio,
|
|
79
|
-
|
|
80
|
-
ChatCompletionResponseMessageToolCallFunction,
|
|
81
|
-
ChatCompletionResponseMessageToolCall,
|
|
82
60
|
ChatCompletionResponseMessage,
|
|
83
61
|
|
|
84
|
-
ChatCompletionResponseChoiceLogprobs,
|
|
85
62
|
ChatCompletionResponseChoice,
|
|
86
63
|
|
|
87
64
|
ChatCompletionResponse,
|
|
@@ -90,7 +67,6 @@ from .chatcompletion.response import ( # noqa
|
|
|
90
67
|
from .chatcompletion.responseformat import ( # noqa
|
|
91
68
|
TextChatCompletionResponseFormat,
|
|
92
69
|
|
|
93
|
-
JsonSchemaChatCompletionResponseFormatJsonSchema,
|
|
94
70
|
JsonSchemaChatCompletionResponseFormat,
|
|
95
71
|
|
|
96
72
|
JsonObjectChatCompletionResponseFormat,
|
|
@@ -99,12 +75,17 @@ from .chatcompletion.responseformat import ( # noqa
|
|
|
99
75
|
)
|
|
100
76
|
|
|
101
77
|
from .chatcompletion.tokenlogprob import ( # noqa
|
|
102
|
-
ChatCompletionTokenLogprobTopLogprob,
|
|
103
78
|
ChatCompletionTokenLogprob,
|
|
104
79
|
)
|
|
105
80
|
|
|
106
81
|
from .completionusage import ( # noqa
|
|
107
|
-
CompletionUsageCompletionTokensDetails,
|
|
108
|
-
CompletionUsagePromptTokensDetails,
|
|
109
82
|
CompletionUsage,
|
|
110
83
|
)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
##
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
from omlish import marshal as _msh # noqa
|
|
90
|
+
|
|
91
|
+
_msh.register_global_module_import('._marshal', __package__)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from omlish import lang
|
|
2
|
+
from omlish import marshal as msh
|
|
3
|
+
|
|
4
|
+
from .chatcompletion.contentpart import ChatCompletionContentPart
|
|
5
|
+
from .chatcompletion.message import ChatCompletionMessage
|
|
6
|
+
from .chatcompletion.responseformat import ChatCompletionResponseFormat
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
##
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@lang.static_init
|
|
13
|
+
def _install_standard_marshalling() -> None:
|
|
14
|
+
for root_cls, tag_field in [
|
|
15
|
+
(ChatCompletionContentPart, 'type'),
|
|
16
|
+
(ChatCompletionMessage, 'role'),
|
|
17
|
+
(ChatCompletionResponseFormat, 'type'),
|
|
18
|
+
]:
|
|
19
|
+
msh.install_standard_factories(*msh.standard_polymorphism_factories(
|
|
20
|
+
msh.polymorphism_from_subclasses(
|
|
21
|
+
root_cls,
|
|
22
|
+
naming=msh.Naming.SNAKE,
|
|
23
|
+
strip_suffix='auto',
|
|
24
|
+
),
|
|
25
|
+
msh.FieldTypeTagging(tag_field),
|
|
26
|
+
))
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
3
|
+
from omlish import dataclasses as dc
|
|
4
|
+
from omlish import lang
|
|
5
|
+
|
|
6
|
+
from ..completionusage import CompletionUsage
|
|
7
|
+
from .tokenlogprob import ChatCompletionTokenLogprob
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
##
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
14
|
+
class ChatCompletionChunkChoiceDelta(lang.Final):
|
|
15
|
+
content: str | None = None
|
|
16
|
+
|
|
17
|
+
refusal: str | None = None
|
|
18
|
+
|
|
19
|
+
role: ta.Literal[
|
|
20
|
+
'developer',
|
|
21
|
+
'system',
|
|
22
|
+
'user',
|
|
23
|
+
'assistant',
|
|
24
|
+
'tool',
|
|
25
|
+
] | None = None
|
|
26
|
+
|
|
27
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
28
|
+
class ToolCall(lang.Final):
|
|
29
|
+
index: int
|
|
30
|
+
|
|
31
|
+
id: str | None = None
|
|
32
|
+
|
|
33
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
34
|
+
class Function(lang.Final):
|
|
35
|
+
arguments: str | None = None
|
|
36
|
+
name: str | None = None
|
|
37
|
+
|
|
38
|
+
function: Function | None = None
|
|
39
|
+
|
|
40
|
+
type: ta.Literal['function'] = dc.xfield('function', repr=False)
|
|
41
|
+
|
|
42
|
+
tool_calls: ta.Sequence[ToolCall] | None = None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
#
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
49
|
+
class ChatCompletionChunkChoice(lang.Final):
|
|
50
|
+
delta: ChatCompletionChunkChoiceDelta
|
|
51
|
+
|
|
52
|
+
finish_reason: ta.Literal[
|
|
53
|
+
'stop',
|
|
54
|
+
'length',
|
|
55
|
+
'tool_calls',
|
|
56
|
+
'content_filter',
|
|
57
|
+
] | None = None
|
|
58
|
+
|
|
59
|
+
index: int
|
|
60
|
+
|
|
61
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
62
|
+
class Logprobs(lang.Final):
|
|
63
|
+
content: ta.Sequence[ChatCompletionTokenLogprob] | None = None
|
|
64
|
+
refusal: ta.Sequence[ChatCompletionTokenLogprob] | None = None
|
|
65
|
+
|
|
66
|
+
logprobs: Logprobs | None = None
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
#
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
73
|
+
class ChatCompletionChunk(lang.Final):
|
|
74
|
+
id: str
|
|
75
|
+
|
|
76
|
+
choices: ta.Sequence[ChatCompletionChunkChoice]
|
|
77
|
+
|
|
78
|
+
created: int
|
|
79
|
+
|
|
80
|
+
model: str
|
|
81
|
+
|
|
82
|
+
object: ta.Literal['chat.completion.chunk'] = dc.xfield('chat.completion.chunk', repr=False)
|
|
83
|
+
|
|
84
|
+
service_tier: ta.Literal[
|
|
85
|
+
'auto',
|
|
86
|
+
'default',
|
|
87
|
+
'flex',
|
|
88
|
+
] | None = None
|
|
89
|
+
|
|
90
|
+
system_fingerprint: str | None = None
|
|
91
|
+
|
|
92
|
+
usage: CompletionUsage | None = None
|
|
93
|
+
|
|
94
|
+
obfuscation: str | None = None
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
3
|
+
from omlish import dataclasses as dc
|
|
4
|
+
from omlish import lang
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
##
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ChatCompletionContentPart(lang.Abstract):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
18
|
+
class TextChatCompletionContentPart(ChatCompletionContentPart, lang.Final):
|
|
19
|
+
text: str
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
26
|
+
class ImageUrlChatCompletionContentPart(ChatCompletionContentPart, lang.Final):
|
|
27
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
28
|
+
class ImageUrl(lang.Final):
|
|
29
|
+
url: str
|
|
30
|
+
detail: ta.Literal[
|
|
31
|
+
'auto',
|
|
32
|
+
'low',
|
|
33
|
+
'high',
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
image_url: ImageUrl
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
#
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
43
|
+
class FileChatCompletionContentPart(ChatCompletionContentPart, lang.Final):
|
|
44
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
45
|
+
class File(lang.Final):
|
|
46
|
+
file_data: str | None = None
|
|
47
|
+
file_id: str | None = None
|
|
48
|
+
filename: str | None = None
|
|
49
|
+
|
|
50
|
+
file: File
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
#
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
57
|
+
class InputAudioChatCompletionContentPart(ChatCompletionContentPart, lang.Final):
|
|
58
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
59
|
+
class InputAudio(lang.Final):
|
|
60
|
+
data: str
|
|
61
|
+
format: ta.Literal[
|
|
62
|
+
'wav',
|
|
63
|
+
'mp3',
|
|
64
|
+
]
|
|
65
|
+
|
|
66
|
+
input_audio: InputAudio
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
#
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
73
|
+
class RefusalChatCompletionContentPart(ChatCompletionContentPart, lang.Final):
|
|
74
|
+
refusal: str
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
3
|
+
from omlish import dataclasses as dc
|
|
4
|
+
from omlish import lang
|
|
5
|
+
|
|
6
|
+
from .contentpart import ChatCompletionContentPart
|
|
7
|
+
from .contentpart import RefusalChatCompletionContentPart
|
|
8
|
+
from .contentpart import TextChatCompletionContentPart
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
##
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ChatCompletionMessage(lang.Abstract, lang.Sealed):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
22
|
+
class DeveloperChatCompletionMessage(ChatCompletionMessage, lang.Final):
|
|
23
|
+
content: str | ta.Iterable[TextChatCompletionContentPart]
|
|
24
|
+
name: str | None = None
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
#
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
31
|
+
class SystemChatCompletionMessage(ChatCompletionMessage, lang.Final):
|
|
32
|
+
content: str | ta.Iterable[TextChatCompletionContentPart]
|
|
33
|
+
name: str | None = None
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
40
|
+
class UserChatCompletionMessage(ChatCompletionMessage, lang.Final):
|
|
41
|
+
content: str | ta.Iterable[ChatCompletionContentPart]
|
|
42
|
+
name: str | None = None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
#
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
49
|
+
class AssistantChatCompletionMessage(ChatCompletionMessage, lang.Final):
|
|
50
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
51
|
+
class Audio(lang.Final):
|
|
52
|
+
id: str
|
|
53
|
+
|
|
54
|
+
audio: Audio | None = None
|
|
55
|
+
|
|
56
|
+
content: str | ta.Iterable[TextChatCompletionContentPart | RefusalChatCompletionContentPart] | None = None
|
|
57
|
+
|
|
58
|
+
name: str | None = None
|
|
59
|
+
|
|
60
|
+
refusal: str | None = None
|
|
61
|
+
|
|
62
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
63
|
+
class ToolCall(lang.Final):
|
|
64
|
+
id: str
|
|
65
|
+
|
|
66
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
67
|
+
class Function(lang.Final):
|
|
68
|
+
arguments: str
|
|
69
|
+
name: str
|
|
70
|
+
|
|
71
|
+
function: Function
|
|
72
|
+
|
|
73
|
+
type: ta.Literal['function'] = dc.xfield('function', repr=False)
|
|
74
|
+
|
|
75
|
+
tool_calls: ta.Iterable[ToolCall] | None = None
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
#
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
82
|
+
class ToolChatCompletionMessage(ChatCompletionMessage, lang.Final):
|
|
83
|
+
content: str | ta.Iterable[TextChatCompletionContentPart]
|
|
84
|
+
tool_call_id: str
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
#
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
@dc.dataclass(frozen=True, kw_only=True)
|
|
91
|
+
class FunctionChatCompletionMessage(ChatCompletionMessage, lang.Final):
|
|
92
|
+
content: str | None
|
|
93
|
+
name: str
|