docs: use gpt-4o-mini in OpenAIGenerator and DeepEvalEvaluator examples#11722
Open
camgrimsec wants to merge 1 commit into
Open
docs: use gpt-4o-mini in OpenAIGenerator and DeepEvalEvaluator examples#11722camgrimsec wants to merge 1 commit into
camgrimsec wants to merge 1 commit into
Conversation
Replace 'gpt-4' with 'gpt-4o-mini' in the basic-usage examples for OpenAIGenerator and DeepEvalEvaluator on the docs website. Rationale: - gpt-4o-mini is OpenAI's current cost-efficient default — $0.15/$0.60 per M tokens vs gpt-4 at $30/$60 (~200x cheaper input, ~100x cheaper output). - The surrounding prose (e.g. 'OpenAIGenerator supports OpenAI models starting from gpt-3.5-turbo and later (gpt-4, gpt-4-turbo, and so on)') remains accurate — these examples are not contracts about which model the user must pick, only what a copy-pasted first run will cost. - Users running the doc snippet verbatim today incur ~200x more cost than needed for a 'hello world' generator example. No code changes. Component constructors remain unchanged — the user explicitly passes the model name. Docs only.
|
@camgrimsec is attempting to deploy a commit to the deepset Team on Vercel. A member of the Team first needs to authorize it. |
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replace 'gpt-4' with 'gpt-4o-mini' in the basic-usage examples for OpenAIGenerator and DeepEvalEvaluator on the docs website.
Rationale:
No code changes. Component constructors remain unchanged — the user explicitly passes the model name. Docs only.
Related Issues
Proposed Changes:
How did you test it?
Notes for the reviewer
Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:and added!in case the PR includes breaking changes.