langchainrb 0.15.2 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/langchain/llm/openai.rb +3 -0
- data/lib/langchain/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c8d4d8e7dd770a724268c97b24f40ba812c1ec2b60e37242ee97da9c83a6c7d
|
4
|
+
data.tar.gz: 8b98e726a7079ef750324052ad6681e81f92327ba74d82ea2445ee1212e048f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5189bbf3830a802aecf9ac67e4723b49bcbd68af5fbba6c107b656eb3658318f9a664a70344d77ae67972c1277bf19f606bf46c338d1d3f6ac4461c2f135d6b
|
7
|
+
data.tar.gz: b6afcec28e4228a402dfee5d8f0aefd17a2d6bcbbacece31a6781d4e4c39433d16699c92aad7147a38553a61f63154335f39cbe8240fd5b4b618f25e97d0fb5f
|
data/CHANGELOG.md
CHANGED
data/lib/langchain/llm/openai.rb
CHANGED
@@ -80,6 +80,9 @@ module Langchain::LLM
|
|
80
80
|
parameters[:dimensions] = EMBEDDING_SIZES[model]
|
81
81
|
end
|
82
82
|
|
83
|
+
# dimensions parameter not supported by text-embedding-ada-002 model
|
84
|
+
parameters.delete(:dimensions) if model == "text-embedding-ada-002"
|
85
|
+
|
83
86
|
response = with_api_error_handling do
|
84
87
|
client.embeddings(parameters: parameters)
|
85
88
|
end
|
data/lib/langchain/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: langchainrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Bondarev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: baran
|
@@ -798,7 +798,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
798
798
|
- !ruby/object:Gem::Version
|
799
799
|
version: '0'
|
800
800
|
requirements: []
|
801
|
-
rubygems_version: 3.5.
|
801
|
+
rubygems_version: 3.5.11
|
802
802
|
signing_key:
|
803
803
|
specification_version: 4
|
804
804
|
summary: Build LLM-backed Ruby applications with Ruby's Langchain.rb
|