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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf6a20b7c41a8200a7e9287712c4d4658f47d567e602309220fff7706c556d23
4
- data.tar.gz: 8f889f5a3922b7fb4051030723f83cd784783e0a3f6eea233dd610b57f38a815
3
+ metadata.gz: 6c8d4d8e7dd770a724268c97b24f40ba812c1ec2b60e37242ee97da9c83a6c7d
4
+ data.tar.gz: 8b98e726a7079ef750324052ad6681e81f92327ba74d82ea2445ee1212e048f6
5
5
  SHA512:
6
- metadata.gz: ab95a0562c51508fbf81830b64315c91c833e7546fb287306bd3229ff1d5776b411ef5bee8c0a0051969d094aaced008a8b3bd49b902a35a1632266a3c2ce467
7
- data.tar.gz: 9780fa125909ff3d9e1c9a8f13904fc32827e93e99bc6c9967f77c3ec3f1e1eb49be80674a80a299749e3588734dba1b0bfdfbe98ea031acd43bbc97a7f3b55f
6
+ metadata.gz: d5189bbf3830a802aecf9ac67e4723b49bcbd68af5fbba6c107b656eb3658318f9a664a70344d77ae67972c1277bf19f606bf46c338d1d3f6ac4461c2f135d6b
7
+ data.tar.gz: b6afcec28e4228a402dfee5d8f0aefd17a2d6bcbbacece31a6781d4e4c39433d16699c92aad7147a38553a61f63154335f39cbe8240fd5b4b618f25e97d0fb5f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.15.3] - 2024-08-27
4
+ - Fix OpenAI#embed when text-embedding-ada-002 is used
5
+
3
6
  ## [0.15.2] - 2024-08-23
4
7
  - Add Assistant#add_messages() method and fix Assistant#messages= method
5
8
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Langchain
4
- VERSION = "0.15.2"
4
+ VERSION = "0.15.3"
5
5
  end
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.2
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-23 00:00:00.000000000 Z
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.14
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