-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for switching between the claude 3 models? Perhaps auto switching when opus is out of quota! #21
Comments
I found a way, I modified client.py to remove the lines And initiated the model like that : I obtained the model name from the network tab in google chrome Do you mind if I add that change? I will have to figure out how cuz I am not a coder and I generally dont use github lol |
Of course I will add the lines I removed back in but with the claude 3 models instead of claude 2 |
I also found a way to include images if you want a look at that |
@mhd25112 That's great news! Removing the model name check may be a good idea afterall, i'll add this change for the next PR. |
Yeah it's simple, would you like the code for image support? Because right now it supports files but that seems to be handled different from images |
@mhd25112 Thing is that it should already support any type of file... I included a mimetype check feature in the api just for that. How is that different from your code? |
@st1vms In my testing text files worked fine, but images did not. Do images work for you without modification? |
The model_name patch is already live on branch dev-0.3.2 Will test the image attachments... |
@mhd25112 I finally was able to let file upload work, now it should successfully process images and other file types, changes are already live in dev-0.3.2 come check them out! |
PR #22 should be ready for merge. Please let me know if dev-0.3.2 works for you. |
Awesome, will let you know when I have time to shift my code from the customized API I made to this one and if it works well |
Also just a suggestion for accessibility, add to the read me which model names are allowed to be used, right now there is kind of no way someone will figure that out on their own without going to the website and inspecting packets. it is |
I think it's probably best if I don't check that parameter, as you've noticed it is subject to frequent changes...By default it will allow to use the latest Claude3 model (should be Sonnet). Also I can't seem to find a good reference to gather those strings... Waiting for confirmations in order to merge dev-0.3.2 |
The strings are actually identical to their official API! found here:
https://docs.anthropic.com/claude/docs/models-overview#model-comparison
It can also be found by going to the website then opening the network tab
just before you click the send message button, you'll see the request pop
up and the payload will contain the model name used.
…On Wed, 3 Apr 2024, 08:57 Stefano Raneri, ***@***.***> wrote:
Also just a suggestion for accessibility, add to the read me which model
names are allowed to be used, right now there is kind of no way someone
will figure that out on their own without going to the website and
inspecting packets. it is "claude-3-opus-20240229",
"claude-3-sonnet-20240229", or "claude-3-haiku-20240229" right now but
that needs to be updated periodically I presume.
I think it's probably best if I don't check that parameter, as you've
noticed it is subject to frequent changes...By default it will allow to use
the latest Claude3 model (should be Sonnet). Also I can't seem to find a
good reference to gather those strings...
Waiting for confirmations in order to merge dev-0.3.2
<#m_4359065512113628_m_5387805196100742192_m_-782735049857138269_22>
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHNQ4IYIIP2S6JEVIAURBFTY3OR6FAVCNFSM6AAAAABFJ7N5ZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZTGY4TSNBQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@mhd25112 I updated the README with that link, it's already in dev-0.3.2 |
I'd really appreciate that feature if it's not too much trouble
The text was updated successfully, but these errors were encountered: