Skip to content

Commit ce8da5e

Browse files
committed
feat(LLM-API): Add LLMAPIChatGemini subclass for Gemini AI integration
1 parent 1fa9a31 commit ce8da5e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/LLM-API/LLMAPIChat.class.st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ LLMAPIChat >> initialize [
6767

6868
{ #category : 'accessing' }
6969
LLMAPIChat >> path [
70+
7071
^ 'v1/chat/completions'
7172
]
7273

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"
2+
Adapting the API for gemini AI
3+
"
4+
Class {
5+
#name : 'LLMAPIChatGemini',
6+
#superclass : 'LLMAPIChat',
7+
#category : 'LLM-API',
8+
#package : 'LLM-API'
9+
}
10+
11+
{ #category : 'accessing' }
12+
LLMAPIChatGemini >> path [
13+
14+
^ 'v1beta/openai/chat/completions'
15+
]

0 commit comments

Comments
 (0)