style: auto-format with ruff [skip ci]
This commit is contained in:
parent
5c7a20c274
commit
97638d035f
@ -118,6 +118,7 @@ def ask_user_question(
|
|||||||
if isinstance(options, str):
|
if isinstance(options, str):
|
||||||
try:
|
try:
|
||||||
import json
|
import json
|
||||||
|
|
||||||
options = json.loads(options)
|
options = json.loads(options)
|
||||||
logger.debug(f"Parsed string options to list: {options}")
|
logger.debug(f"Parsed string options to list: {options}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -128,6 +129,7 @@ def ask_user_question(
|
|||||||
if isinstance(questions, str):
|
if isinstance(questions, str):
|
||||||
try:
|
try:
|
||||||
import json
|
import json
|
||||||
|
|
||||||
questions = json.loads(questions)
|
questions = json.loads(questions)
|
||||||
logger.debug(f"Parsed string questions to list: {questions}")
|
logger.debug(f"Parsed string questions to list: {questions}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
@ -9,7 +9,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
@ -114,7 +113,6 @@ class TestMiniMaxModelSelection:
|
|||||||
|
|
||||||
def _build_select_model(self, providers_dict):
|
def _build_select_model(self, providers_dict):
|
||||||
"""Build a standalone select_model function mirroring src/models/chat.py."""
|
"""Build a standalone select_model function mirroring src/models/chat.py."""
|
||||||
from openai import AsyncOpenAI
|
|
||||||
|
|
||||||
class _Model:
|
class _Model:
|
||||||
def __init__(self, api_key, base_url, model_name):
|
def __init__(self, api_key, base_url, model_name):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user