File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,6 +224,17 @@ GtLConnectionRegistry >> initialize [
224224 self updateConnections.
225225]
226226
227+ { #category : #accessing }
228+ GtLConnectionRegistry >> knownCodexConnectors [
229+ GtLOpenAiCodexProvider isConnectable ifFalse: [ ^ #() ].
230+
231+ ^ {GtLConnectionRegistry instance
232+ addConnection: (GtLConnection new
233+ providerClass: GtLOpenAiCodexProvider ;
234+ label: ' GPT 5.6 Terra (Codex)' ;
235+ model: ' gpt-5.6-terra' )}
236+ ]
237+
227238{ #category : #accessing }
228239GtLConnectionRegistry >> knownConnectors [
229240 ^ {
@@ -251,10 +262,6 @@ GtLConnectionRegistry >> knownConnectors [
251262 providerClass: GtLOpenAiResponsesProvider ;
252263 label: ' GPT 5.6 Sol' ;
253264 model: ' gpt-5.6-sol' .
254- " GtLConnection new
255- providerClass: GtLOpenAiResponsesProvider;
256- label: 'GPT 5.6 Terra';
257- model: 'gpt-5.6-terra'."
258265 GtLConnection new
259266 providerClass: GtLOpenAiResponsesProvider ;
260267 label: ' GPT 5.6 Luna' ;
@@ -268,6 +275,7 @@ GtLConnectionRegistry >> knownConnectors [
268275 label: ' GPT 5.4' ;
269276 model: ' gpt-5.4' .
270277 },
278+ self knownCodexConnectors,
271279 self knownOllamaConnectors
272280]
273281
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ GtLOpenAiCodexCredential class >> accessToken: anAccessToken refreshToken: aRefr
2020 yourself
2121]
2222
23+ { #category : #' instance creation' }
24+ GtLOpenAiCodexCredential class >> defaultCodexAuthFileReference [
25+ ^ FileLocator home / ' .codex' / ' auth.json' contents
26+ ]
27+
2328{ #category : #' instance creation' }
2429GtLOpenAiCodexCredential class >> expiresAtFromAccessToken: anAccessToken [
2530 | parts encodedPayload paddingCount payload expiresAtSeconds |
@@ -39,7 +44,7 @@ GtLOpenAiCodexCredential class >> expiresAtFromAccessToken: anAccessToken [
3944{ #category : #' instance creation' }
4045GtLOpenAiCodexCredential class >> fromDefaultCodexFile [
4146 | json dict accessToken refreshToken accountId expiry |
42- json := FileLocator home / ' .codex ' / ' auth.json ' contents .
47+ json := self defaultCodexAuthFileReference .
4348 dict := STON fromString: json.
4449 accessToken := (dict at: ' tokens' ) at: ' access_token' .
4550 refreshToken := (dict at: ' tokens' ) at: ' refresh_token' .
Original file line number Diff line number Diff line change 44 #category : #' Gt4LlmModel-Codex'
55}
66
7+ { #category : #' as yet unclassified' }
8+ GtLOpenAiCodexProvider class >> isConnectable [
9+ ^ GtLOpenAiCodexCredential defaultCodexAuthFileReference exists
10+ ]
11+
712{ #category : #accessing }
813GtLOpenAiCodexProvider class >> providerName [
914 ^ ' OpenAI Codex'
You can’t perform that action at this time.
0 commit comments