From 2d377cf38d8c510549f719a6b986f7a73cab0034 Mon Sep 17 00:00:00 2001 From: Veit Heller Date: Wed, 11 Dec 2024 17:09:11 +0100 Subject: [PATCH] Remove gtExample pragma from OpenAI chat/client/tutor constructors --- src/Gt4OpenAI/GtOpenAIChat.class.st | 2 -- src/Gt4OpenAI/GtOpenAIClient.class.st | 2 -- src/Gt4OpenAI/GtOpenAIGtSpecificTutor.class.st | 2 -- src/Gt4OpenAI/GtOpenAITutor.class.st | 2 -- 4 files changed, 8 deletions(-) diff --git a/src/Gt4OpenAI/GtOpenAIChat.class.st b/src/Gt4OpenAI/GtOpenAIChat.class.st index df3a200..8d06707 100644 --- a/src/Gt4OpenAI/GtOpenAIChat.class.st +++ b/src/Gt4OpenAI/GtOpenAIChat.class.st @@ -6,13 +6,11 @@ Class { { #category : #accessing } GtOpenAIChat class >> withApiKeyFromClipboard [ - ^ self new apiKey: Clipboard clipboardText ] { #category : #accessing } GtOpenAIChat class >> withApiKeyFromFile [ - ^ self new apiKey: GtOpenAIClient apiKeyFileContents ] diff --git a/src/Gt4OpenAI/GtOpenAIClient.class.st b/src/Gt4OpenAI/GtOpenAIClient.class.st index 4ba03a5..a84d912 100644 --- a/src/Gt4OpenAI/GtOpenAIClient.class.st +++ b/src/Gt4OpenAI/GtOpenAIClient.class.st @@ -38,13 +38,11 @@ GtOpenAIClient class >> initialize [ { #category : #accessing } GtOpenAIClient class >> withApiKeyFromClipboard [ - ^ self new apiKey: Clipboard clipboardText ] { #category : #accessing } GtOpenAIClient class >> withApiKeyFromFile [ - ^ self new apiKey: self apiKeyFileContents ] diff --git a/src/Gt4OpenAI/GtOpenAIGtSpecificTutor.class.st b/src/Gt4OpenAI/GtOpenAIGtSpecificTutor.class.st index f35c9b6..c14d461 100644 --- a/src/Gt4OpenAI/GtOpenAIGtSpecificTutor.class.st +++ b/src/Gt4OpenAI/GtOpenAIGtSpecificTutor.class.st @@ -32,13 +32,11 @@ GtOpenAIGtSpecificTutor class >> isTutorAvailable [ { #category : #accessing } GtOpenAIGtSpecificTutor class >> withApiKeyFromClipboard [ - ^ self new apiKey: Clipboard clipboardText ] { #category : #accessing } GtOpenAIGtSpecificTutor class >> withApiKeyFromFile [ - ^ self new apiKey: GtOpenAIClient apiKeyFileContents ] diff --git a/src/Gt4OpenAI/GtOpenAITutor.class.st b/src/Gt4OpenAI/GtOpenAITutor.class.st index 863f057..98df1e3 100644 --- a/src/Gt4OpenAI/GtOpenAITutor.class.st +++ b/src/Gt4OpenAI/GtOpenAITutor.class.st @@ -28,13 +28,11 @@ GtOpenAITutor class >> refreshInstance [ { #category : #accessing } GtOpenAITutor class >> withApiKeyFromClipboard [ - ^ self new apiKey: Clipboard clipboardText ] { #category : #accessing } GtOpenAITutor class >> withApiKeyFromFile [ - ^ self new apiKey: GtOpenAIClient apiKeyFileContents ]