liter_llm 1.17.3-aarch64-linux → 1.18.0-aarch64-linux
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.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/liter_llm/native.rb +88 -1
- data/lib/liter_llm/version.rb +2 -2
- data/lib/liter_llm.rb +1 -1
- data/lib/liter_llm_rb.so +0 -0
- data/sig/types.rbs +24 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15ee1d2601a6b49efc1fc8c1d2e616f42d586345f8989b72beccf773f21af647
|
|
4
|
+
data.tar.gz: 795b1af489c71db0c4ff7ec39ed8c39583b0fd19938035f4480f4d6fcdf90f0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95f369f491cd2f00335d08d42c83d575209c64faa222e353710da64bf8e47febd0dfc57674449be399f19575c2f17878de77859847a28e34b0d4bb0ebf4ff45a
|
|
7
|
+
data.tar.gz: d954783e37e7d639fe804064821a22edc95dae25b3fb765b77f2b574bc864afca37d04a4716b23393bcdf02734a2934476f0012138dd0e69041db794cc5299ed
|
data/README.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
<!-- This file is auto-generated by alef — DO NOT EDIT. -->
|
|
2
|
+
<!-- alef:hash:cd144fa3684b490bac9fd3b39ee03cefb1f07fcfecec6d7599e0314be7d775e3 -->
|
|
3
|
+
<!-- To regenerate: alef readme -->
|
|
4
|
+
<!-- To verify freshness: alef verify -->
|
|
5
|
+
|
|
1
6
|
<p align="center">
|
|
2
7
|
<picture>
|
|
3
8
|
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/xberg-io/assets@v1/banner/readme-banner-dark.svg">
|
data/lib/liter_llm/native.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:a963d30e17380908f8f67a9244a29d7e6ad83445dac64977569ca4c3b4b53f6a
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
@@ -556,6 +556,93 @@ module LiterLlm
|
|
|
556
556
|
end
|
|
557
557
|
end
|
|
558
558
|
|
|
559
|
+
module LiterLlm
|
|
560
|
+
# A content part in a multimodal embedding input.
|
|
561
|
+
module EmbeddingContentPart
|
|
562
|
+
extend T::Helpers
|
|
563
|
+
extend T::Sig
|
|
564
|
+
|
|
565
|
+
interface!
|
|
566
|
+
|
|
567
|
+
# Dispatch from a Hash to the appropriate variant constructor.
|
|
568
|
+
# @param hash [Hash] with discriminator field and variant-specific fields
|
|
569
|
+
# @return [variant_class] an instance of the appropriate variant
|
|
570
|
+
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.untyped) }
|
|
571
|
+
def self.from_hash(hash)
|
|
572
|
+
discriminator = hash[:type] || hash["type"]
|
|
573
|
+
case discriminator
|
|
574
|
+
when "text" then EmbeddingContentPartText.from_hash(hash)
|
|
575
|
+
when "image_url" then EmbeddingContentPartImageUrl.from_hash(hash)
|
|
576
|
+
when "image_base64" then EmbeddingContentPartImageBase64.from_hash(hash)
|
|
577
|
+
else raise "Unknown discriminator: #{discriminator}"
|
|
578
|
+
end
|
|
579
|
+
end
|
|
580
|
+
end
|
|
581
|
+
## Plain text.
|
|
582
|
+
EmbeddingContentPartText = Data.define(:text) do
|
|
583
|
+
include EmbeddingContentPart
|
|
584
|
+
extend T::Sig
|
|
585
|
+
|
|
586
|
+
# @return [String]
|
|
587
|
+
sig { returns(String) }
|
|
588
|
+
def text = super # rubocop:disable Lint/UselessMethodDefinition
|
|
589
|
+
sig { returns(T::Boolean) }
|
|
590
|
+
def text? = true
|
|
591
|
+
sig { returns(T::Boolean) }
|
|
592
|
+
def image_url? = false
|
|
593
|
+
sig { returns(T::Boolean) }
|
|
594
|
+
def image_base64? = false
|
|
595
|
+
# @param hash [Hash] deserialized from the native extension
|
|
596
|
+
# @return [self]
|
|
597
|
+
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
598
|
+
def self.from_hash(hash)
|
|
599
|
+
new(text: hash[:text] || hash["text"])
|
|
600
|
+
end
|
|
601
|
+
end
|
|
602
|
+
## Image identified by a data URL or HTTP/HTTPS URL.
|
|
603
|
+
EmbeddingContentPartImageUrl = Data.define(:image_url) do
|
|
604
|
+
include EmbeddingContentPart
|
|
605
|
+
extend T::Sig
|
|
606
|
+
|
|
607
|
+
# @return [ImageUrl]
|
|
608
|
+
sig { returns(ImageUrl) }
|
|
609
|
+
def image_url = super # rubocop:disable Lint/UselessMethodDefinition
|
|
610
|
+
sig { returns(T::Boolean) }
|
|
611
|
+
def text? = false
|
|
612
|
+
sig { returns(T::Boolean) }
|
|
613
|
+
def image_url? = true
|
|
614
|
+
sig { returns(T::Boolean) }
|
|
615
|
+
def image_base64? = false
|
|
616
|
+
# @param hash [Hash] deserialized from the native extension
|
|
617
|
+
# @return [self]
|
|
618
|
+
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
619
|
+
def self.from_hash(hash)
|
|
620
|
+
new(image_url: hash[:image_url] || hash["image_url"])
|
|
621
|
+
end
|
|
622
|
+
end
|
|
623
|
+
## Image encoded as a complete data URL.
|
|
624
|
+
EmbeddingContentPartImageBase64 = Data.define(:image_base64) do
|
|
625
|
+
include EmbeddingContentPart
|
|
626
|
+
extend T::Sig
|
|
627
|
+
|
|
628
|
+
# @return [String]
|
|
629
|
+
sig { returns(String) }
|
|
630
|
+
def image_base64 = super # rubocop:disable Lint/UselessMethodDefinition
|
|
631
|
+
sig { returns(T::Boolean) }
|
|
632
|
+
def text? = false
|
|
633
|
+
sig { returns(T::Boolean) }
|
|
634
|
+
def image_url? = false
|
|
635
|
+
sig { returns(T::Boolean) }
|
|
636
|
+
def image_base64? = true
|
|
637
|
+
# @param hash [Hash] deserialized from the native extension
|
|
638
|
+
# @return [self]
|
|
639
|
+
sig { params(hash: T::Hash[T.untyped, T.untyped]).returns(T.attached_class) }
|
|
640
|
+
def self.from_hash(hash)
|
|
641
|
+
new(image_base64: hash[:image_base64] || hash["image_base64"])
|
|
642
|
+
end
|
|
643
|
+
end
|
|
644
|
+
end
|
|
645
|
+
|
|
559
646
|
module LiterLlm
|
|
560
647
|
# Document input for OCR — either a URL or inline base64 data.
|
|
561
648
|
module OcrDocument
|
data/lib/liter_llm/version.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:9cad1aa634ead525aea0040c6902c806b7daab37eb7802e5be0d0c5f48aa8847
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
module LiterLlm
|
|
8
8
|
## The version string for this package.
|
|
9
|
-
VERSION = "1.
|
|
9
|
+
VERSION = "1.18.0"
|
|
10
10
|
end
|
data/lib/liter_llm.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:b8684376c861ef7e78cc307694871bb74d674153abe531df23adc8a37901a153
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
data/lib/liter_llm_rb.so
CHANGED
|
Binary file
|
data/sig/types.rbs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
# alef:hash:
|
|
2
|
+
# alef:hash:182fb885a8ef562d0a181ae0aadb5dd6e9b1a440c76f7dffbfea998a71b1eb6d
|
|
3
3
|
# To regenerate: alef generate
|
|
4
4
|
# To verify freshness: alef verify
|
|
5
5
|
|
|
@@ -692,13 +692,14 @@ module LiterLlm
|
|
|
692
692
|
attr_reader cache: LlmCacheConfig?
|
|
693
693
|
attr_reader budget: LlmBudgetConfig?
|
|
694
694
|
attr_reader rate_limit: LlmRateLimitConfig?
|
|
695
|
+
attr_reader in_flight_limit: LlmInFlightLimitConfig?
|
|
695
696
|
attr_reader cost_tracking: bool?
|
|
696
697
|
attr_reader tracing: bool?
|
|
697
698
|
attr_reader cooldown_secs: Integer?
|
|
698
699
|
attr_reader health_check_secs: Integer?
|
|
699
700
|
attr_reader bedrock: BedrockConfig?
|
|
700
701
|
|
|
701
|
-
def initialize: (?model: String, ?api_key: String, ?base_url: String, ?timeout_secs: Integer, ?max_retries: Integer, ?temperature: Float, ?max_tokens: Integer, ?load_env: bool, ?headers: Hash[String, String], ?providers: Array[LlmProviderConfig], ?cache: LlmCacheConfig, ?budget: LlmBudgetConfig, ?rate_limit: LlmRateLimitConfig, ?cost_tracking: bool, ?tracing: bool, ?cooldown_secs: Integer, ?health_check_secs: Integer, ?bedrock: BedrockConfig) -> void
|
|
702
|
+
def initialize: (?model: String, ?api_key: String, ?base_url: String, ?timeout_secs: Integer, ?max_retries: Integer, ?temperature: Float, ?max_tokens: Integer, ?load_env: bool, ?headers: Hash[String, String], ?providers: Array[LlmProviderConfig], ?cache: LlmCacheConfig, ?budget: LlmBudgetConfig, ?rate_limit: LlmRateLimitConfig, ?in_flight_limit: LlmInFlightLimitConfig, ?cost_tracking: bool, ?tracing: bool, ?cooldown_secs: Integer, ?health_check_secs: Integer, ?bedrock: BedrockConfig) -> void
|
|
702
703
|
end
|
|
703
704
|
|
|
704
705
|
class LlmCacheConfig
|
|
@@ -726,6 +727,12 @@ module LiterLlm
|
|
|
726
727
|
def initialize: (?rpm: Integer, ?tpm: Integer, ?window_seconds: Integer) -> void
|
|
727
728
|
end
|
|
728
729
|
|
|
730
|
+
class LlmInFlightLimitConfig
|
|
731
|
+
attr_reader max_in_flight: Integer?
|
|
732
|
+
|
|
733
|
+
def initialize: (?max_in_flight: Integer) -> void
|
|
734
|
+
end
|
|
735
|
+
|
|
729
736
|
class LlmProviderConfig
|
|
730
737
|
attr_reader name: String
|
|
731
738
|
attr_reader base_url: String
|
|
@@ -878,6 +885,12 @@ module LiterLlm
|
|
|
878
885
|
class SingleflightResult
|
|
879
886
|
end
|
|
880
887
|
|
|
888
|
+
class InFlightLimitConfig
|
|
889
|
+
attr_reader max_in_flight: Integer?
|
|
890
|
+
|
|
891
|
+
def initialize: (?max_in_flight: Integer) -> void
|
|
892
|
+
end
|
|
893
|
+
|
|
881
894
|
class RateLimitConfig
|
|
882
895
|
attr_reader rpm: Integer?
|
|
883
896
|
attr_reader tpm: Integer?
|
|
@@ -958,6 +971,9 @@ module LiterLlm
|
|
|
958
971
|
class EmbeddingInput
|
|
959
972
|
end
|
|
960
973
|
|
|
974
|
+
class EmbeddingContentPart
|
|
975
|
+
end
|
|
976
|
+
|
|
961
977
|
class ModerationInput
|
|
962
978
|
end
|
|
963
979
|
|
|
@@ -970,7 +986,7 @@ module LiterLlm
|
|
|
970
986
|
end
|
|
971
987
|
|
|
972
988
|
class FilePurpose
|
|
973
|
-
type value = :assistants | :batch | :
|
|
989
|
+
type value = :assistants | :batch | :fine-tune | :vision
|
|
974
990
|
end
|
|
975
991
|
|
|
976
992
|
class BatchStatus
|
|
@@ -985,26 +1001,26 @@ module LiterLlm
|
|
|
985
1001
|
end
|
|
986
1002
|
|
|
987
1003
|
class AuthType
|
|
988
|
-
type value = :bearer | :
|
|
1004
|
+
type value = :bearer | :api-key | :none | :unknown
|
|
989
1005
|
end
|
|
990
1006
|
|
|
991
1007
|
class Enforcement
|
|
992
|
-
type value = :
|
|
1008
|
+
type value = :Hard | :Soft
|
|
993
1009
|
end
|
|
994
1010
|
|
|
995
1011
|
class CacheBackend
|
|
996
1012
|
end
|
|
997
1013
|
|
|
998
1014
|
class CircuitState
|
|
999
|
-
type value = :
|
|
1015
|
+
type value = :Closed | :Open | :HalfOpen
|
|
1000
1016
|
end
|
|
1001
1017
|
|
|
1002
1018
|
class HealthStatus
|
|
1003
|
-
type value = :
|
|
1019
|
+
type value = :Healthy | :Unhealthy
|
|
1004
1020
|
end
|
|
1005
1021
|
|
|
1006
1022
|
class RefreshOutcome
|
|
1007
|
-
type value = :
|
|
1023
|
+
type value = :Disabled | :FromCache | :Fetched
|
|
1008
1024
|
end
|
|
1009
1025
|
|
|
1010
1026
|
def self.create_client: (String api_key, ?String base_url, ?Integer timeout_secs, ?Integer max_retries, ?String model_hint) -> DefaultClient
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: liter_llm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.18.0
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Na'aman Hirschfeld
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sorbet-runtime
|