gpt4all 0.0.1 → 0.0.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: f611f3c03de174c0bbc7ff1cf009569c8f2b4405cb4cead51fdafc367559fcd9
4
- data.tar.gz: 376a1e7c1100b5368d4fd6a00ad7226c7b9def1510aae6fb7af2b3629d3fe860
3
+ metadata.gz: 677356f50a80a8d91eb4e0e2146ac4f005896ba1e1250ace66dd57e862444623
4
+ data.tar.gz: fdb9dcf280aa544f8b7e26c4a9da143ce2ea3bfae4a7a20f995db6258b921c31
5
5
  SHA512:
6
- metadata.gz: 8be39a0889515dd33171fb73db9905edde1f8f68872b389268ec19a3352761202a3da2f524d3a18a777d8f5b032f151ed9e62656655d736e83ad4bce357f2a17
7
- data.tar.gz: 03e6ea52397c7426081333ec3b36f4d274e2df259f55afdd2eea0dc376f1df7ae7e1781afd03a58223a88ea8c8c35156fed5e5b37bbe5d328cf35eeb7ae4e571
6
+ metadata.gz: cf7831d84c641dad48a6c8e6db0889af99a16cea58064f33fe7a6cf2bc331504ab1293d3c8636cdeb84685fbab7183d91bdb06c5b9ed1b7c681aa251e77dd4c3
7
+ data.tar.gz: 27e532c867292cd131fa061d611497540984ab3ba69c633327b51709b04db33b440a8d834c2694c9a2ed01a0b098ab990260f3edeab59ad46a46599b15223749
data/.rubocop.yml CHANGED
@@ -4,7 +4,6 @@ require:
4
4
 
5
5
  AllCops:
6
6
  NewCops: enable
7
- TargetRubyVersion: 3.2
8
7
  Exclude:
9
8
  - db/**/*.rb
10
9
  - bin/**/*.rb
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [0.1.0] - 2023-04-07
9
+ ## [0.0.1] - 2023-04-07
10
10
 
11
11
  - Initial release
12
+
13
+ ## [0.0.2] - 2023-04-07
14
+
15
+ - updated changelog link
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gpt4all (0.0.1)
4
+ gpt4all (0.0.3)
5
5
  faraday (~> 2.7)
6
6
  os (~> 1.1)
7
7
  tty-progressbar (~> 0.18.2)
@@ -104,7 +104,12 @@ GEM
104
104
  rexml
105
105
 
106
106
  PLATFORMS
107
+ aarch64-linux
108
+ aarch64-linux-musl
109
+ arm64-darwin-21
107
110
  arm64-darwin-22
111
+ x86_64-linux
112
+ x86_64-linux-musl
108
113
 
109
114
  DEPENDENCIES
110
115
  brakeman
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Gpt4all
2
2
 
3
- Gpt4all is a Ruby gem that provides an easy-to-use interface for interacting with the GPT-4 conversational AI model.
3
+ [![Gem Version](https://badge.fury.io/rb/gpt4all.svg)](https://badge.fury.io/rb/gpt4all)
4
+ [![CI](https://github.com/jaigouk/gpt4all/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/jaigouk/gpt4all/actions/workflows/main.yml)
5
+
6
+ Gpt4all is a Ruby gem that provides an easy-to-use interface for interacting with the [GPT4ALL](https://github.com/nomic-ai/gpt4all-ts) conversational AI model.
4
7
 
5
8
  ## Installation
6
9
 
data/gpt4all.gemspec CHANGED
@@ -12,13 +12,13 @@ Gem::Specification.new do |spec|
12
12
  spec.description = 'interface to gpt4all'
13
13
  spec.homepage = 'https://github.com/jaigouk/gpt4all'
14
14
  spec.license = 'MIT'
15
- spec.required_ruby_version = '>= 3.2'
15
+ spec.required_ruby_version = '>= 2.7.0'
16
16
 
17
17
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
18
18
 
19
19
  spec.metadata['homepage_uri'] = spec.homepage
20
20
  spec.metadata['source_code_uri'] = 'https://github.com/jaigouk/gpt4all'
21
- spec.metadata['changelog_uri'] = 'https://github.com/jaigouk/gpt4all/CHANGELOG.md'
21
+ spec.metadata['changelog_uri'] = 'https://github.com/jaigouk/gpt4all/blob/main/CHANGELOG.md'
22
22
 
23
23
  # Specify which files should be added to the gem when it is released.
24
24
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -67,8 +67,8 @@ module Gpt4all
67
67
  end
68
68
 
69
69
  def download_executable
70
- upstream = determine_upstream_url
71
- download_file(upstream, executable_path)
70
+ FileUtils.mkdir_p(File.dirname(executable_path))
71
+ download_file(determine_upstream_url, executable_path)
72
72
  FileUtils.chmod(0o755, executable_path)
73
73
  puts "File downloaded successfully to #{executable_path}"
74
74
  end
@@ -130,10 +130,13 @@ module Gpt4all
130
130
 
131
131
  def write_chunks_to_file(response, destination, progress_bar)
132
132
  File.open(destination, 'wb') do |file|
133
+ downloaded_size = 0
133
134
  response.body.each_chunk do |chunk|
134
135
  progress_bar.advance(chunk.bytesize)
135
136
  file.write(chunk)
137
+ downloaded_size += chunk.bytesize
136
138
  end
139
+ raise 'Incomplete file downloaded.' if downloaded_size < progress_bar.total
137
140
  end
138
141
  end
139
142
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gpt4all
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.3'
5
5
  end
data/model.bin ADDED
@@ -0,0 +1 @@
1
+ This is a mock file content
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpt4all
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaigouk Kim
@@ -71,6 +71,7 @@ files:
71
71
  - lib/gpt4all.rb
72
72
  - lib/gpt4all/conversational_ai.rb
73
73
  - lib/gpt4all/version.rb
74
+ - model.bin
74
75
  - sig/gpt4all.rbs
75
76
  homepage: https://github.com/jaigouk/gpt4all
76
77
  licenses:
@@ -79,7 +80,7 @@ metadata:
79
80
  allowed_push_host: https://rubygems.org
80
81
  homepage_uri: https://github.com/jaigouk/gpt4all
81
82
  source_code_uri: https://github.com/jaigouk/gpt4all
82
- changelog_uri: https://github.com/jaigouk/gpt4all/CHANGELOG.md
83
+ changelog_uri: https://github.com/jaigouk/gpt4all/blob/main/CHANGELOG.md
83
84
  rubygems_mfa_required: 'true'
84
85
  post_install_message:
85
86
  rdoc_options: []
@@ -89,14 +90,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
90
  requirements:
90
91
  - - ">="
91
92
  - !ruby/object:Gem::Version
92
- version: '3.2'
93
+ version: 2.7.0
93
94
  required_rubygems_version: !ruby/object:Gem::Requirement
94
95
  requirements:
95
96
  - - ">="
96
97
  - !ruby/object:Gem::Version
97
98
  version: '0'
98
99
  requirements: []
99
- rubygems_version: 3.4.10
100
+ rubygems_version: 3.2.33
100
101
  signing_key:
101
102
  specification_version: 4
102
103
  summary: gpt4all