ollama_chat 0.0.2 → 0.0.4

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: 5e53e7c97f1d4cb21ae23b70b3dc14f3dfcb183978f3e3f5ebf44fa392d60c7d
4
- data.tar.gz: 5b249fdd1c0a3acfc132fd4388608f12a64f4528ca280cb7feb427bc3ebd7c2e
3
+ metadata.gz: a3f84805f1f6ef58ce6fd25f0f4a477b919c7afa72d909bf3c48ca8fa643d1dd
4
+ data.tar.gz: 61ce65c1f30464f4b30c0a4228a88aa9f4796a15407820d84db5c6240527d014
5
5
  SHA512:
6
- metadata.gz: aaaf8a6011430a7bba371ef08059d3abd6493e7c43e766068942aefed893ed2378b9e5193a9a43233579c49e35db88520f62083c936ca4bd8528d0cb84d81b84
7
- data.tar.gz: 6bb078ad3be012d0936a72303df5a44186fc0c7a95fc335124a6b37eb5affbb4e64bb26ccf8127268c6410ef4eff15e53405652934f388a581d0bfea82c0c1d3
6
+ metadata.gz: 68bff70a1b439a0a01ec0daf7c8a643c6814450f8dbdd8368d92a43941d774034fe34a616f237ecec66c59ab1ed97585eda5e39d857625fd8f5a9a61d8d3f7b0
7
+ data.tar.gz: 20ec1a209f3e23374f0b3ee8b0bb1b1757fbb412500c823f1b8117f19ddc323dec2b9d1715fb9e3726549885dee08d4ccf00e25f1036a5af57699cb3f42b02c6
data/.all_images.yml CHANGED
@@ -1,13 +1,12 @@
1
1
  dockerfile: |-
2
- RUN apk add --no-cache build-base git
3
- RUN gem update --system
4
- RUN gem install gem_hadar bundler
2
+ RUN apk add --no-cache build-base git yaml-dev
3
+ RUN gem install gem_hadar
5
4
 
6
5
  script: &script |-
7
6
  echo -e "\e[1m"
8
7
  ruby -v
9
8
  rm -f Gemfile.lock
10
- bundle install --jobs=$(getconf _NPROCESSORS_ONLN) --full-index
9
+ bundle install --jobs=$(getconf _NPROCESSORS_ONLN)
11
10
  echo -e "\e[0m"
12
11
  rake test
13
12
 
data/.gitignore CHANGED
@@ -2,6 +2,7 @@
2
2
  .AppleDouble
3
3
  .bundle
4
4
  .yardoc
5
+ /config/searxng/*
5
6
  Gemfile.lock
6
7
  corpus
7
8
  coverage
data/CHANGES.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changes
2
2
 
3
+ ## 2025-02-21 v0.0.4
4
+
5
+ * Added support for web searching with SearXNG:
6
+ + Added `ollama_chat/web_searching.rb` module which includes a generic
7
+ `search_web` method that uses the selected search engine.
8
+ + Updated `ollama_chat/default_config.yml` to include configuration options
9
+ for web searching with all engines.
10
+ + Updated `ollama_chat/chat.rb` to use the new `web_searching` module and
11
+ updated the `search_web` method to return results from either engine.
12
+ + Added specs in `spec/ollama_chat/web_searching_spec.rb` to test the new functionality.
13
+ * Added ollama chat version display to information module and spec:
14
+ + Added `STDOUT.puts` for displaying ollama chat version in `lib/ollama_chat/information.rb`
15
+ + Updated test in `spec/ollama_chat/chat_spec.rb` to include new output string
16
+ * Update chat document redis cache expiration time default to 0.
17
+
18
+ ## 2025-02-17 v0.0.3
19
+
20
+ * Support setting of request headers:
21
+ * Added `request_headers` option to `default_config.yml
22
+ * Updated `OllamaChat::SourceFetching` module to pass `config.request_headers?.to_h` to `Fetcher.get`
23
+ * Updated `OllamaChat::Utils::Fetcher.get` method to take an optional `headers:` parameter
24
+ * Updated tests for Fetcher utility to include new headers option
25
+ * Refactoring
26
+ * Added `connect_to_ollama_server` method to `spec_helper.rb`
27
+ * Stubbed API requests for tags, show, and version in this method
28
+ * Removed stubbing of API requests from individual specs
29
+ * Add support for ollama server version display:
30
+ * Add `server_version` method to display connected ollama server version
31
+ * Update `info` method to use new `server_version` method
32
+ * Add **6.6.6** as reported API version in `spec/assets/api_version.json`
33
+ * Updated chat spec to use 'test' collection:
34
+ * Updated `argv` let in OllamaChat::Chat describe block to pass '-C test'
35
+ option to be isolated from 'default' collection
36
+ * Updated output of collection stats display to reflect 'test' collection
37
+
3
38
  ## 2025-02-11 v0.0.2
4
39
 
5
40
  * Improved handling of location in MessageList class:
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ GemHadar do
21
21
 
22
22
  test_dir 'spec'
23
23
  ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', '.AppleDouble', '.bundle',
24
- '.yardoc', 'tags', 'corpus', 'coverage'
24
+ '.yardoc', 'tags', 'corpus', 'coverage', '/config/searxng/*'
25
25
 
26
26
  readme 'README.md'
27
27
 
@@ -30,7 +30,7 @@ GemHadar do
30
30
  executables << 'ollama_chat'
31
31
 
32
32
  dependency 'excon', '~> 1.0'
33
- dependency 'ollama-ruby', '~> 0.14'
33
+ dependency 'ollama-ruby', '~> 0.15'
34
34
  dependency 'documentrix', '~> 0.0'
35
35
  dependency 'rss', '~> 0.3'
36
36
  dependency 'term-ansicolor', '~> 1.11'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.4