Skip to content

Commit cc92c02

Browse files
committed
fix: resolve rebase regressions in tests and update docs
1 parent bcb22af commit cc92c02

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

api-docs/docs.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4103,6 +4103,9 @@ const docTemplate = `{
41034103
"is_active": {
41044104
"type": "boolean"
41054105
},
4106+
"openai_base_url": {
4107+
"type": "string"
4108+
},
41064109
"provider": {
41074110
"type": "string",
41084111
"enum": [
@@ -4131,6 +4134,9 @@ const docTemplate = `{
41314134
"is_active": {
41324135
"type": "boolean"
41334136
},
4137+
"openai_base_url": {
4138+
"type": "string"
4139+
},
41344140
"provider": {
41354141
"type": "string"
41364142
},

api-docs/swagger.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4097,6 +4097,9 @@
40974097
"is_active": {
40984098
"type": "boolean"
40994099
},
4100+
"openai_base_url": {
4101+
"type": "string"
4102+
},
41004103
"provider": {
41014104
"type": "string",
41024105
"enum": [
@@ -4125,6 +4128,9 @@
41254128
"is_active": {
41264129
"type": "boolean"
41274130
},
4131+
"openai_base_url": {
4132+
"type": "string"
4133+
},
41284134
"provider": {
41294135
"type": "string"
41304136
},

api-docs/swagger.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ definitions:
178178
type: string
179179
is_active:
180180
type: boolean
181+
openai_base_url:
182+
type: string
181183
provider:
182184
enum:
183185
- ollama
@@ -199,6 +201,8 @@ definitions:
199201
type: integer
200202
is_active:
201203
type: boolean
204+
openai_base_url:
205+
type: string
202206
provider:
203207
type: string
204208
updated_at:

tests/llm_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (suite *LLMTestSuite) setupMockServer() {
4747
}))
4848

4949
// Create OpenAI service with mock server
50-
service := llm.NewOpenAIService("test-api-key")
50+
service := llm.NewOpenAIService("test-api-key", nil)
5151
// Use reflection or a custom method to set baseURL to mock server
5252
// For now, we'll test what we can without modifying the baseURL
5353
suite.service = service
@@ -196,7 +196,7 @@ func (suite *LLMTestSuite) handleStreamingResponse(w http.ResponseWriter, chatRe
196196

197197
// Test OpenAI service creation
198198
func (suite *LLMTestSuite) TestNewOpenAIService() {
199-
service := llm.NewOpenAIService("test-api-key-123")
199+
service := llm.NewOpenAIService("test-api-key-123", nil)
200200

201201
assert.NotNil(suite.T(), service)
202202
}

0 commit comments

Comments
 (0)