diff --git a/includes/LegalTools.php b/includes/LegalTools.php index 12ac451..4e546df 100644 --- a/includes/LegalTools.php +++ b/includes/LegalTools.php @@ -367,8 +367,8 @@ PROMPT; $response = $this->azure->withDeployment('gpt-4o')->chat($messages, $chatOptions); $deployLabel = 'gpt-4o'; } else { - $response = $this->azure->chat($messages, $chatOptions); - $deployLabel = $this->azure->chatDeployment(); + $response = $this->azure->withDeployment('gpt-4o-mini')->chat($messages, $chatOptions); + $deployLabel = 'gpt-4o-mini'; } } catch (Throwable $e) { dbnToolsAbort('LLM request failed: ' . $e->getMessage(), 502, 'llm_error'); @@ -1050,8 +1050,8 @@ PROMPT; $response = $this->azure->withDeployment('gpt-4o')->chat($messages, $chatOptions); $deployLabel = 'gpt-4o'; } else { - $response = $this->azure->chat($messages, $chatOptions); - $deployLabel = $this->azure->chatDeployment(); + $response = $this->azure->withDeployment('gpt-4o-mini')->chat($messages, $chatOptions); + $deployLabel = 'gpt-4o-mini'; } $content = (string)($response['choices'][0]['message']['content'] ?? '');