Skip to content

Conversation

@tj-wazei
Copy link
Contributor

@tj-wazei tj-wazei commented Jan 8, 2026

Pull-request

Changes

  • Existing code
  • New feature

Closes Issue: NaN

Description

GPT-5-NANO works but it's slow and can take around 30 seconds to generate a response. GPT-5-MINI while more expensive (still cheaper but closer to the old 3.5-turbo) halves that time to around 15 seconds.

3.5-turbo is around 5 seconds .
4.1-mini is actually not that bad, 6 seconds.

In this PR I have added the ChatModel as a parameter to the ask function so that it can be configured fairly easily.

Using 4-1-mini for questions, 3.5-turbo for transfer and 5-mini for the slash command.

Lastly, in the AI responses footer, the model used has been added.

@tj-wazei tj-wazei marked this pull request as ready for review January 8, 2026 11:43
@tj-wazei tj-wazei requested a review from a team as a code owner January 8, 2026 11:43
@tj-wazei tj-wazei changed the title Update ChatGPT model to GPT_5_MINI Update ChatGPT model to accept ChatModel Jan 8, 2026
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 8, 2026

@tj-wazei tj-wazei changed the title Update ChatGPT model to accept ChatModel Update ChatGPT model to accept ChatModel & use 4.1-mini for questions Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants