liter_llm 1.16.0-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 +7 -2
- data/lib/liter_llm/native.rb +89 -2
- data/lib/liter_llm/version.rb +3 -3
- data/lib/liter_llm.rb +2 -2
- data/lib/liter_llm_rb.so +0 -0
- data/sig/types.rbs +404 -380
- 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">
|
|
@@ -31,8 +36,8 @@
|
|
|
31
36
|
<a href="https://github.com/xberg-io/liter-llm/tree/main/packages/go">
|
|
32
37
|
<img src="https://img.shields.io/github/v/tag/xberg-io/liter-llm?label=Go&color=007ec6" alt="Go" />
|
|
33
38
|
</a>
|
|
34
|
-
<a href="https://www.nuget.org/packages/LiterLlm">
|
|
35
|
-
<img src="https://img.shields.io/nuget/v/LiterLlm?label=C%23&color=007ec6" alt="C#" />
|
|
39
|
+
<a href="https://www.nuget.org/packages/XbergIo.LiterLlm">
|
|
40
|
+
<img src="https://img.shields.io/nuget/v/XbergIo.LiterLlm?label=C%23&color=007ec6" alt="C#" />
|
|
36
41
|
</a>
|
|
37
42
|
<a href="https://packagist.org/packages/xberg-io/liter-llm">
|
|
38
43
|
<img src="https://img.shields.io/packagist/v/xberg-io/liter-llm?label=PHP&color=007ec6" alt="PHP" />
|
data/lib/liter_llm/native.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
-
# To verify freshness: alef verify
|
|
4
|
+
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
require "json"
|
|
@@ -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
|
-
# To verify freshness: alef verify
|
|
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,7 +1,7 @@
|
|
|
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
|
-
# To verify freshness: alef verify
|
|
4
|
+
# To verify freshness: alef verify
|
|
5
5
|
# frozen_string_literal: true
|
|
6
6
|
|
|
7
7
|
require_relative "liter_llm/version"
|
data/lib/liter_llm_rb.so
CHANGED
|
Binary file
|