Skip to content

Commit

Permalink
Readd withAll on groups with inlined traits [feenkcom/gtoolkit#4322]
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Mar 3, 2025
1 parent e3cb861 commit 4c0404d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Gt4Llm/GtLlmGroup.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Class {
#category : #Gt4Llm
}

{ #category : #'as yet unclassified' }
GtLlmGroup class >> withAll: aCollection [
^ self new
initializeWith: aCollection
]

{ #category : #accessing }
GtLlmGroup >> add: anItem [
self items add: anItem
Expand Down
2 changes: 1 addition & 1 deletion src/Gt4OpenAI/GtOpenAIEmbedding.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Class {
GtOpenAIEmbedding class >> from: anArray [
^ self new
rawData: anArray;
embedding: (anArray collect: [ :aNumber | aNumber ] as: Float64Array)
embedding: (anArray collect: [ :aNumber | aNumber ] as: OrderedCollection)
]

{ #category : #accessing }
Expand Down
6 changes: 6 additions & 0 deletions src/Gt4OpenAI/GtOpenAIGroup.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ GtOpenAIGroup class >> itemClass [
^ self subclassResponsibility
]

{ #category : #'as yet unclassified' }
GtOpenAIGroup class >> withAll: aCollection [
^ self new
initializeWith: aCollection
]

{ #category : #accessing }
GtOpenAIGroup >> add: anItem [
self items add: anItem
Expand Down

0 comments on commit 4c0404d

Please sign in to comment.