Skip to content

Releases: mikonapoli/gaspare

v0.3.3

Choose a tag to compare

@mikonapoli mikonapoli released this 12 May 10:57

Bugs Squashed

Thanks to @ncoop57 for this!

  • oserror filename too long can be multiple error numbers (#11)
    • I'm still getting the same issue outlined in #7 as the errno depends on the OS so the current methodology for detecting it does not work for all systems (e.g., here it is for Windows). I'll open a PR with a fix

v0.3.2

Choose a tag to compare

@mikonapoli mikonapoli released this 18 Apr 22:46

Bugs Squashed

  • Properly compute Flash 2.5 costs (#10)

v0.3.1

Choose a tag to compare

@mikonapoli mikonapoli released this 18 Apr 22:28

New Features

  • Add Gemini 2.5 Flash and Thinking budget (#9)

v0.3.0

Choose a tag to compare

@mikonapoli mikonapoli released this 07 Apr 11:30

Breaking Changes

  • Make Gaspare's content function compatible with Claudette's (#8)
    • content currently returns a dictionary, but Claudette expects it to return just the text content of the response. This requires some breaking change (although minimal)

Bugs Squashed

  • Long prompts cause OS errors (#7)

from gaspare import *

m = models[4] # 2.0 flash experimental
cli = Client(model=m)

prompt = '''
Given a user description of an image, you will create a beautiful rendition of it, making sure to add in details that might not be present in the user's description but can be inferred. Only output the image, nothing else.

Make a beautiful swan by a lake. ''' res = cli(prompt) ```

Running the above results in this error:

OSError: [Errno 63] File name too long: "Given a user description of an image, you will create a beautiful rendition of it, making sure to add in details that might not be present in the user's description but can be inferred. Only output the image, nothing else.\n\n<desc>\nMake a beautiful swan by a lake.\n</desc>\n"

v0.2.3

Choose a tag to compare

@mikonapoli mikonapoli released this 07 Apr 09:34

Bugs Squashed

  • Long prompts cause OS errors (#7)

from gaspare import *

m = models[4] # 2.0 flash experimental
cli = Client(model=m)

prompt = '''
Given a user description of an image, you will create a beautiful rendition of it, making sure to add in details that might not be present in the user's description but can be inferred. Only output the image, nothing else.

Make a beautiful swan by a lake. ''' res = cli(prompt) ```

Running the above results in this error:

OSError: [Errno 63] File name too long: "Given a user description of an image, you will create a beautiful rendition of it, making sure to add in details that might not be present in the user's description but can be inferred. Only output the image, nothing else.\n\n<desc>\nMake a beautiful swan by a lake.\n</desc>\n"

v0.2.2

Choose a tag to compare

@mikonapoli mikonapoli released this 07 Apr 09:16

Bugs Squashed

  • Long prompts cause OS errors (#7)

from gaspare import *

m = models[4] # 2.0 flash experimental
cli = Client(model=m)

prompt = '''
Given a user description of an image, you will create a beautiful rendition of it, making sure to add in details that might not be present in the user's description but can be inferred. Only output the image, nothing else.

Make a beautiful swan by a lake. ''' res = cli(prompt) ```

Running the above results in this error:

OSError: [Errno 63] File name too long: "Given a user description of an image, you will create a beautiful rendition of it, making sure to add in details that might not be present in the user's description but can be inferred. Only output the image, nothing else.\n\n<desc>\nMake a beautiful swan by a lake.\n</desc>\n"

v0.2.1

Choose a tag to compare

@mikonapoli mikonapoli released this 05 Apr 22:30
  • Fixes the release adding all the files

v0.2.0

Choose a tag to compare

@mikonapoli mikonapoli released this 05 Apr 22:25

New Features

  • Add async Client and Chat (#3)

v0.1.5

Choose a tag to compare

@mikonapoli mikonapoli released this 05 Apr 16:00

Bugs Squashed

  • Local videos not working properly (#6)
    • Providing a video from a local path raises the following:
ClientError: 400 FAILED_PRECONDITION. {'error': {'code': 400, 'message': 'The File cxgja95z0ak1 is not in an ACTIVE state and usage is not allowed.', 'status': 'FAILED_PRECONDITION'}}

v0.1.4

Choose a tag to compare

@mikonapoli mikonapoli released this 04 Apr 23:46
  • Add readme (#2)
  • Fix imagen method not being exported