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 +4 -4
- data/.all_images.yml +3 -4
- data/.gitignore +1 -0
- data/CHANGES.md +35 -0
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/config/searxng/settings.yml +2583 -0
- data/docker-compose.yml +21 -0
- data/lib/ollama_chat/chat.rb +4 -2
- data/lib/ollama_chat/information.rb +7 -0
- data/lib/ollama_chat/ollama_chat_config/default_config.yml +9 -0
- data/lib/ollama_chat/source_fetching.rb +1 -29
- data/lib/ollama_chat/utils/fetcher.rb +5 -3
- data/lib/ollama_chat/version.rb +1 -1
- data/lib/ollama_chat/web_searching.rb +60 -0
- data/lib/ollama_chat.rb +1 -0
- data/ollama_chat.gemspec +7 -7
- data/spec/assets/api_version.json +3 -0
- data/spec/assets/searxng.json +111 -0
- data/spec/ollama_chat/chat_spec.rb +8 -10
- data/spec/ollama_chat/clipboard_spec.rb +1 -7
- data/spec/ollama_chat/information_spec.rb +2 -7
- data/spec/ollama_chat/model_handling_spec.rb +1 -7
- data/spec/ollama_chat/parsing_spec.rb +1 -7
- data/spec/ollama_chat/source_fetching_spec.rb +1 -16
- data/spec/ollama_chat/utils/fetcher_spec.rb +15 -0
- data/spec/ollama_chat/web_searching_spec.rb +29 -0
- data/spec/spec_helper.rb +12 -0
- metadata +11 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3f84805f1f6ef58ce6fd25f0f4a477b919c7afa72d909bf3c48ca8fa643d1dd
|
4
|
+
data.tar.gz: 61ce65c1f30464f4b30c0a4228a88aa9f4796a15407820d84db5c6240527d014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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)
|
9
|
+
bundle install --jobs=$(getconf _NPROCESSORS_ONLN)
|
11
10
|
echo -e "\e[0m"
|
12
11
|
rake test
|
13
12
|
|
data/.gitignore
CHANGED
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.
|
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.
|
1
|
+
0.0.4
|