1
1
Fork
You've already forked scrapeghost
0

breaking change: adjust how models are selected #50

Open
opened 2023年06月14日 01:14:05 +02:00 by jamesturk · 0 comments
jamesturk commented 2023年06月14日 01:14:05 +02:00 (Migrated from github.com)
Copy link

probably going to introduce a breaking change in 0.6 or 0.7 to how models are selected

Now that OpenAI is releasing different versions of models (3.5-turbo has 4 current versions between the token limit and the different iterations) I think model configuration/fallback needs to change a bit.

If 3.5 parsed the results and didn't do well, the next fallback should be 4, if the token limit was exceeded however it should go to 3.5-16k. There are a lot of possible conditions for this, and people that want 100% control can explicitly pass a single model, but the way the fallback chain is traversed can improve to reduce redundant requests.

Something like:

models=[GPT35T(allow_16k=True), GPT4(allow_32k=False)]

This would try gpt-3.5-turbo only once, either at 4k or 16k based on input.
Then it would try gpt-4.
Selecting particular revisions could work this way as well.

Probably makes the most sense to do this as part of #18

probably going to introduce a breaking change in 0.6 or 0.7 to how models are selected Now that OpenAI is releasing different versions of models (3.5-turbo has 4 current versions between the token limit and the different iterations) I think model configuration/fallback needs to change a bit. If 3.5 parsed the results and didn't do well, the next fallback should be 4, if the token limit was exceeded however it should go to 3.5-16k. There are a lot of possible conditions for this, and people that want 100% control can explicitly pass a single model, but the way the fallback chain is traversed can improve to reduce redundant requests. Something like: models=[GPT35T(allow_16k=True), GPT4(allow_32k=False)] This would try gpt-3.5-turbo only once, either at 4k or 16k based on input. Then it would try gpt-4. Selecting particular revisions could work this way as well. Probably makes the most sense to do this as part of #18
Sign in to join this conversation.
No Branch/Tag specified
main
gh-pages
november-updates
log-config
pagination-restore
0.6.0
0.5.1
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jpt/scrapeghost#50
Reference in a new issue
jpt/scrapeghost
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?