fix: support reference image editing
This commit is contained in:
@@ -2,6 +2,7 @@ import { describe, expect, it } from 'vitest'
|
||||
import {
|
||||
createOpenAIApiBaseUrl,
|
||||
createOpenAIChatCompletionsUrl,
|
||||
createOpenAIImagesEditsUrl,
|
||||
createOpenAIImagesGenerationsUrl,
|
||||
createOpenAIResponsesUrl
|
||||
} from './openai-endpoint'
|
||||
@@ -26,6 +27,9 @@ describe('OpenAI endpoint normalization', () => {
|
||||
expect(createOpenAIImagesGenerationsUrl(baseUrl).toString()).toBe(
|
||||
'http://192.168.1.50:8000/openai/v1/images/generations'
|
||||
)
|
||||
expect(createOpenAIImagesEditsUrl(baseUrl).toString()).toBe(
|
||||
'http://192.168.1.50:8000/openai/v1/images/edits'
|
||||
)
|
||||
})
|
||||
|
||||
it('preserves a gateway query on base and request URLs', () => {
|
||||
|
||||
Reference in New Issue
Block a user