-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Evref-BL/add-phi3-mini
add phi3 mini
- Loading branch information
Showing
7 changed files
with
79 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Package { #name : #BaselineOfPharoOllama } | ||
Package { #name : 'BaselineOfPharoOllama' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
" | ||
An OllamaAPITest is a test class for testing the behavior of OllamaAPI | ||
" | ||
Class { | ||
#name : 'OllamaAPITest', | ||
#superclass : 'TestCase', | ||
#instVars : [ | ||
'ollama' | ||
], | ||
#category : 'Pharo-Ollama-Tests', | ||
#package : 'Pharo-Ollama-Tests' | ||
} | ||
|
||
{ #category : 'running' } | ||
OllamaAPITest >> setUp [ | ||
super setUp. | ||
ollama := OllamaAPI new. | ||
] | ||
|
||
{ #category : 'running' } | ||
OllamaAPITest >> testOllamaAPIHasDefaultModelInitialized [ | ||
|
||
self assert: (ollama model isKindOf: OModel) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Package { #name : 'Pharo-Ollama-Tests' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Class { | ||
#name : 'OPhi3Model', | ||
#superclass : 'OModel', | ||
#category : 'Pharo-Ollama', | ||
#package : 'Pharo-Ollama' | ||
} | ||
|
||
{ #category : 'accessing' } | ||
OPhi3Model class >> medium [ | ||
|
||
<ollamaInit: 'phi3:medium'> | ||
^ self new | ||
tag: 'medium'; | ||
yourself | ||
] | ||
|
||
{ #category : 'accessing' } | ||
OPhi3Model class >> mini [ | ||
|
||
<ollamaInit: 'phi3:mini'> | ||
^ self new | ||
tag: 'mini'; | ||
yourself | ||
] | ||
|
||
{ #category : 'accessing' } | ||
OPhi3Model >> name [ | ||
|
||
^ 'phi3' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters