Skip to content

Refactor chat Completion functions for model handling#21

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

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

Conversation

@nclsPolancoJr
Copy link

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.
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.

1 participant