Skip to content

Commit

Permalink
Move reference to ZnClient [feenkcom/gtoolkit#4322]
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Mar 3, 2025
1 parent 48f1e06 commit e3cb861
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Extension { #name : #GtOpenAIGetFileContentsAPIClient }

{ #category : #'*Gt4OpenAI-GToolkit' }
GtOpenAIGetFileContentsAPIClient >> perform [
^ ZnClient new
url: self client baseUrl / 'files' / self file / 'content';
setBearerAuthentication: self client apiKey;
get
]
8 changes: 0 additions & 8 deletions src/Gt4OpenAI/GtOpenAIGetFileContentsAPIClient.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,3 @@ GtOpenAIGetFileContentsAPIClient >> file [
GtOpenAIGetFileContentsAPIClient >> file: anObject [
file := anObject
]

{ #category : #'as yet unclassified' }
GtOpenAIGetFileContentsAPIClient >> perform [
^ ZnClient new
url: self client baseUrl / 'files' / self file / 'content';
setBearerAuthentication: self client apiKey;
get
]

0 comments on commit e3cb861

Please sign in to comment.