Specify GPT model as an environment variable #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GPT の model を環境変数で指定できるようにしました
指定されていない場合は
gpt-4-turbo
が入るようになってます画像に対応していないモデルが指定される可能性を考慮して、画像が添付されている場合は自動的に
gpt-4-vision-preview
を使うように戻しましたI have made it possible to specify the GPT model using environment variables. If no model is specified,
gpt-4-turbo
will be used by default.Considering the possibility that a model not compatible with images might be specified, I have reverted to automatically using
gpt-4-vision-preview
when an image is attached.