mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 18:59:50 +08:00
支持 Gemini Interactions 与 Antigravity 配额精细化
This commit is contained in:
+11
@@ -86,6 +86,17 @@ describe('buildDefaultModelTestRequestBody', () => {
|
||||
expect(body.messages).toBeUndefined()
|
||||
})
|
||||
|
||||
it('uses Gemini Interactions payloads for interaction endpoints', () => {
|
||||
const body = JSON.parse(buildDefaultModelTestRequestBody('gemini-3.5-flash', 'gemini:interactions'))
|
||||
|
||||
expect(body).toEqual({
|
||||
model: 'gemini-3.5-flash',
|
||||
input: 'Hello! This is a test message.',
|
||||
stream: true,
|
||||
})
|
||||
expect(body.messages).toBeUndefined()
|
||||
})
|
||||
|
||||
it('uses image generation tools for image models on OpenAI Responses endpoints', () => {
|
||||
const body = JSON.parse(buildDefaultModelTestRequestBody(
|
||||
'gpt-image-2',
|
||||
|
||||
@@ -196,6 +196,14 @@ export function buildDefaultModelTestRequestBody(
|
||||
}, null, 2)
|
||||
}
|
||||
|
||||
if (normalizedApiFormat === 'gemini:interactions') {
|
||||
return JSON.stringify({
|
||||
model: modelName,
|
||||
input: DEFAULT_MODEL_TEST_MESSAGE,
|
||||
stream: true,
|
||||
}, null, 2)
|
||||
}
|
||||
|
||||
if (normalizedApiFormat === 'openai:responses' && modelSupportsImageGeneration(model)) {
|
||||
return JSON.stringify({
|
||||
model: modelName,
|
||||
|
||||
Reference in New Issue
Block a user