mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-26 07:57:40 +00:00
feat(google): add image generation provider
This commit is contained in:
@@ -165,6 +165,7 @@ describe("plugin contract registry", () => {
|
||||
});
|
||||
|
||||
it("keeps bundled image-generation ownership explicit", () => {
|
||||
expect(findImageGenerationProviderIdsForPlugin("google")).toEqual(["google"]);
|
||||
expect(findImageGenerationProviderIdsForPlugin("openai")).toEqual(["openai"]);
|
||||
});
|
||||
|
||||
@@ -180,6 +181,13 @@ describe("plugin contract registry", () => {
|
||||
});
|
||||
|
||||
it("tracks speech registrations on bundled provider plugins", () => {
|
||||
expect(findRegistrationForPlugin("google")).toMatchObject({
|
||||
providerIds: ["google", "google-gemini-cli"],
|
||||
speechProviderIds: [],
|
||||
mediaUnderstandingProviderIds: ["google"],
|
||||
imageGenerationProviderIds: ["google"],
|
||||
webSearchProviderIds: ["gemini"],
|
||||
});
|
||||
expect(findRegistrationForPlugin("openai")).toMatchObject({
|
||||
providerIds: ["openai", "openai-codex"],
|
||||
speechProviderIds: ["openai"],
|
||||
@@ -245,6 +253,9 @@ describe("plugin contract registry", () => {
|
||||
});
|
||||
|
||||
it("keeps bundled image-generation support explicit", () => {
|
||||
expect(findImageGenerationProviderForPlugin("google").generateImage).toEqual(
|
||||
expect.any(Function),
|
||||
);
|
||||
expect(findImageGenerationProviderForPlugin("openai").generateImage).toEqual(
|
||||
expect.any(Function),
|
||||
);
|
||||
|
||||
@@ -131,7 +131,7 @@ const bundledMediaUnderstandingPlugins: RegistrablePlugin[] = [
|
||||
zaiPlugin,
|
||||
];
|
||||
|
||||
const bundledImageGenerationPlugins: RegistrablePlugin[] = [openAIPlugin];
|
||||
const bundledImageGenerationPlugins: RegistrablePlugin[] = [googlePlugin, openAIPlugin];
|
||||
|
||||
function captureRegistrations(plugin: RegistrablePlugin) {
|
||||
const captured = createCapturedPluginRegistration();
|
||||
|
||||
Reference in New Issue
Block a user