mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 02:41:07 +00:00
fix: support OpenAI Codex media understanding (#54829) (thanks @neeravmakwana)
* OpenAI: register Codex media understanding provider * fix: route codex image prompts through system instructions * fix: add changelog for codex image tool fix (#54829) (thanks @neeravmakwana) * fix: remove any from provider registration tests (#54829) (thanks @neeravmakwana) --------- Co-authored-by: Ayaan Zaidi <hi@obviy.us>
This commit is contained in:
@@ -184,7 +184,10 @@ describe("plugin contract registry", () => {
|
||||
]);
|
||||
expect(findMediaUnderstandingProviderIdsForPlugin("mistral")).toEqual(["mistral"]);
|
||||
expect(findMediaUnderstandingProviderIdsForPlugin("moonshot")).toEqual(["moonshot"]);
|
||||
expect(findMediaUnderstandingProviderIdsForPlugin("openai")).toEqual(["openai"]);
|
||||
expect(findMediaUnderstandingProviderIdsForPlugin("openai")).toEqual([
|
||||
"openai",
|
||||
"openai-codex",
|
||||
]);
|
||||
expect(findMediaUnderstandingProviderIdsForPlugin("zai")).toEqual(["zai"]);
|
||||
});
|
||||
|
||||
@@ -244,7 +247,7 @@ describe("plugin contract registry", () => {
|
||||
expect(findRegistrationForPlugin("openai")).toMatchObject({
|
||||
providerIds: ["openai", "openai-codex"],
|
||||
speechProviderIds: ["openai"],
|
||||
mediaUnderstandingProviderIds: ["openai"],
|
||||
mediaUnderstandingProviderIds: ["openai", "openai-codex"],
|
||||
imageGenerationProviderIds: ["openai"],
|
||||
videoGenerationProviderIds: [],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user