Skip to content
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

Dall-E tool + usage example #2

Merged
merged 4 commits into from
Apr 20, 2024
Merged

Dall-E tool + usage example #2

merged 4 commits into from
Apr 20, 2024

Conversation

whimo
Copy link
Contributor

@whimo whimo commented Apr 18, 2024

No description provided.

@whimo
Copy link
Contributor Author

whimo commented Apr 18, 2024

Also fixed a bug with agents self-delegating tasks

@ZmeiGorynych
Copy link
Contributor

Please an argument when creating that tool that if True causes the agent to download the image, save it locally, and return the path instead of returning the cloud URL

@whimo
Copy link
Contributor Author

whimo commented Apr 19, 2024

Should be done here


def create_dalle_image_generator_langchain_tool(images_directory: Optional[str] = None):
def run_dalle_and_save_images_partial(description: str):
return run_dalle_and_save_images(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the name suggests, using functools.partial would have been more elegant here, but who cares :)

@ZmeiGorynych ZmeiGorynych merged commit 5c79e8b into main Apr 20, 2024
18 checks passed
whimo added a commit that referenced this pull request May 19, 2024
whimo added a commit that referenced this pull request May 20, 2024
* Start work on the docs, refactor source as needed

* Notebook example with AutoGen integration

* Integrate notebooks into doc structure

* Begin of refactor of agents: remove 'delegation', delegation_crewai.py runs

* Rename "goal" to "description" in all agents

* Intermediate work on a nicer delegation demo

* Intermediate work on a nicer delegation demo

* MOTLEYDEV-43: rename TaskRecipe to Task and Task to TaskUnit

* Merge branch 'refactors' into rename-task-recipe

* Support long paths for cache in CI

* Make sure cache paths are not too long

* Fix tests

* Fix tests #2

* Fix callback merging

* Better caching interface + demo

* add (update) event in LunaryEventName

* Caching and observability demo

* Fix caching module after messy merge

* fix caching tests

* typo

---------

Co-authored-by: whimo <[email protected]>
Co-authored-by: User <[email protected]>
whimo added a commit that referenced this pull request Jul 22, 2024
whimo added a commit that referenced this pull request Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants