8000 moved #isConnectable for OllamaProvider into gt-specific folder [feen… · feenkcom/gt4llm@55de619 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 55de619

Browse files
committed
moved #isConnectable for OllamaProvider into gt-specific folder [feenkcom/gtoolkit#4462]
1 parent 95bc1b7 commit 55de619

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Gt4Ollama-GToolkit/GtOllamaProvider.extension.st

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ GtOllamaProvider >> asyncWait [
55
[self triggerAssistant] asAsyncPromise
66
]
77

8+
{ #category : #'*Gt4Ollama-GToolkit' }
9+
GtOllamaProvider class >> isConnectable [
10+
^ [ ZnClient new get: GtOllamaClient defaultBaseUrl.
11+
true ] on: ConnectionTimedOut do: [ false ]
12+
]
13+
814
{ #category : #'*Gt4Ollama-GToolkit' }
915
GtOllamaProvider >> uuidClass [
1016
^ UUID

src/Gt4Ollama/GtOllamaProvider.class.st

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ GtOllamaProvider class >> defaultModel [
2424
^ DefaultModel ifNil: [ DefaultModel := 'llama3.1' ]
2525
]
2626

27-
{ #category : #'as yet unclassified' }
28-
GtOllamaProvider class >> isConnectable [
29-
^ [ ZnClient new get: GtOllamaClient defaultBaseUrl.
30-
true ] on: ConnectionTimedOut do: [ false ]
31-
]
32-
3327
{ #category : #'as yet unclassified' }
3428
GtOllamaProvider class >> providerName [
3529
^ 'Ollama'

0 commit comments

Comments
 (0)
0