Re: vision, get GPT 4V in your terminal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Devin, I've just pushed a fix!

Python's type (not)checking can be a pain sometimes. :)


Best regards


Rastislav


Dňa 9. 11. 2023 o 16:47 Devin Prater napísal(a):
Wow, this is going to be amazing! Imagine having this in OCRDesktop! My only issue with it is when I try to add a system message with -s, I get:

Traceback (most recent call last):                                                                                                                          
  File "/home/devin/.local/bin/vision", line 180, in <module>                                                                                              
    main()                                                                                                                                                  
  File "/home/devin/.local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__                                                              
    return self.main(*args, **kwargs)                                                                                                                      
  File "/home/devin/.local/lib/python3.10/site-packages/click/core.py", line 1078, in main                                                                  
    rv = self.invoke(ctx)                                                                                                                                  
  File "/home/devin/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke                                                                
    return ctx.invoke(self.callback, **ctx.params)                                                                                                          
  File "/home/devin/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke                                                                
    return __callback(*args, **kwargs)                                                                                                                      
  File "/home/devin/.local/bin/vision", line 161, in main                                                                                                  
    response=conversation.generate_response()                                                                                                              
  File "/home/devin/.local/bin/vision", line 112, in generate_response                                                                                      
    messages=[message.render() for message in self._messages]                                                                                              
  File "/home/devin/.local/bin/vision", line 112, in <listcomp>                                                                                            
    messages=[message.render() for message in self._messages]                                                                                              
AttributeError: 'str' object has no attribute 'render'. Did you mean: 'center'? 


Devin Prater




On Thu, Nov 9, 2023 at 6:48 AM 'Rastislav Kish' via blinux-list@xxxxxxxxxx <blinux-list@xxxxxxxxxx> wrote:
Hello everyone,
ever since Be my AI demonstrated the capabilities of GPT 4 for
understanding the content of images, which is not a single bit less
impressive than its textual abilities, I was looking forward to having
an API I could use.
Because this brings awesome potential for various use-cases, though also
for economical reasons, Be my AI is not on Android yet and I can't
really afford spending $20 monthly on a ChatGPT + subscription.

Three days ago, OpenAI finally introduced a vision API, and here is my
really simple, but working Be my AI in terminal:
https://github.com/RastislavKish/vision

Have fun. There is a lot to enjoy!

Note: Uploading images can take a while, though if it apparently takes
too long, it's likely frozen, OpenAI is dealing with a lot of demand
after their dev conference on six-th November, so chatGPT is down from
time to time. My script is not very well prepared for this at this
moment, I may add proper timeouts and retry options if it becomes too
big of an issue, though I rather expect things to calm down again as
things get resolved on the OpenAI side.

Best regards

Rastislav


--
You received this message because you are subscribed to the Google Groups "blinux-list@xxxxxxxxxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blinux-list+unsubscribe@xxxxxxxxxx.

--
You received this message because you are subscribed to the Google Groups "blinux-list@xxxxxxxxxx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blinux-list+unsubscribe@xxxxxxxxxx.

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]