Skip to content

Refactor chat Completion functions for model handling#21

Closed
nclsPolancoJr wants to merge 1 commit intobugbasesecurity:mainfrom
nclsPolancoJr:patch-1
Closed

Refactor chat Completion functions for model handling#21
nclsPolancoJr wants to merge 1 commit intobugbasesecurity:mainfrom
nclsPolancoJr:patch-1

Conversation

@nclsPolancoJr
Copy link
Copy Markdown

Why this resolves your log errors

The sk-proj… as a model stops because chatCompletion3 now reads MODEL_SMALL instead of MODEL_API_KEY. The guard also throws early if anyone misconfigures it again.

The gpt-4 model not found stops once you switch to a current model identifier.

The prior temperature error will not appear because you no longer force a non default temperature when you ask for json_object.

Why this resolves your log errors

The sk-proj… as a model stops because chatCompletion3 now reads MODEL_SMALL instead of MODEL_API_KEY. The guard also throws early if anyone misconfigures it again.

The gpt-4 model not found stops once you switch to a current model identifier.

The prior temperature error will not appear because you no longer force a non default temperature when you ask for json_object.
@Hackerbone
Copy link
Copy Markdown
Collaborator

Hey @nclsPolancoJr thanks for your PR on this, we were working on a re-haul on the whole copilot and have now an agentic architecture. Amidst this we have like a bunch of changes in the infernce structure which should now resolve the issues that you've been facing.

Due to the whole architecture change will close this PR! Thanks for your contribution.

@Hackerbone Hackerbone closed this Mar 17, 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.

2 participants