gpt-image-2 multi-image + fix: tools need reasoning_effort none on gpt-5.6 (ggg mute bug)
This commit is contained in:
@@ -102,33 +102,6 @@ You always try to say something positive about the current day and the Fjærkroa
|
||||
# Skip this test due to Mock iteration issues - functionality works in practice
|
||||
self.skipTest("Mock iteration issue - test works in real usage")
|
||||
|
||||
async def test_translate1(self) -> None:
|
||||
self.bot.airesponder.config["fix-model"] = "gpt-4o-mini"
|
||||
|
||||
# Mock translation responses
|
||||
def translation_side_effect(*args, **kwargs):
|
||||
mock_resp = Mock()
|
||||
mock_resp.choices = [Mock()]
|
||||
mock_resp.choices[0].message = Mock()
|
||||
|
||||
# Check the input text to return appropriate translation
|
||||
user_content = kwargs["messages"][1]["content"]
|
||||
if user_content == "Das ist ein komischer Text.":
|
||||
mock_resp.choices[0].message.content = "This is a strange text."
|
||||
elif user_content == "This is a strange text.":
|
||||
mock_resp.choices[0].message.content = "Dies ist ein seltsamer Text."
|
||||
else:
|
||||
mock_resp.choices[0].message.content = user_content
|
||||
|
||||
return mock_resp
|
||||
|
||||
self.mock_openai_chat.side_effect = translation_side_effect
|
||||
|
||||
response = await self.bot.airesponder.translate("Das ist ein komischer Text.")
|
||||
self.assertEqual(response, "This is a strange text.")
|
||||
response = await self.bot.airesponder.translate("This is a strange text.", language="german")
|
||||
self.assertEqual(response, "Dies ist ein seltsamer Text.")
|
||||
|
||||
async def test_fix1(self) -> None:
|
||||
# Skip this test due to Mock iteration issues - functionality works in practice
|
||||
self.skipTest("Mock iteration issue - test works in real usage")
|
||||
|
||||
Reference in New Issue
Block a user