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

fix: 1634 fix image description service #1667

Merged
merged 3 commits into from
Jan 2, 2025

Conversation

nusk0
Copy link
Contributor

@nusk0 nusk0 commented Jan 1, 2025

Relates to:

[(https://github.com//issues/1643 ]
)

Risks

Low

Background

What does this PR do?

Since Image Description Service uses recognizeWithOpenAI function, it won't work if the model provider used by the agent is anything else than OpenAI.

What kind of change is this?

Check if OpenAI is the provider used, if it is, use that endpoint, if not use openAI default endpoint for image descriptions.

Documentation changes needed?

Testing

I cloned a fresh repo from the release 1.7 and ran a default character with twitter client. My .env contained an Openai API key and I used a venice API model for my agent. I got authentication error (see issue 1634 post when trying to get image description from a twitter post.

NOTE : This only fixes the authentification issue, the agent still won't be able to get the description from images in a twitter post. I will create a seperate issue and PR to solve this issue shortly.

Where should a reviewer start?

Detailed testing steps

I ran pnpm test and pnpm lint locally but did not include them in the PR since only 1 file is changed.

Discord username

displayed name : nusko Discord nametag : nusko_

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hi @nusk0! Welcome to the ai16z community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now a ai16z contributor!

@monilpat monilpat changed the base branch from main to develop January 2, 2025 00:32
@monilpat monilpat changed the title 1634 fix image description service fix: 1634 fix image description service Jan 2, 2025
Copy link
Collaborator

@monilpat monilpat left a comment

Choose a reason for hiding this comment

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

LGTM

@monilpat monilpat merged commit 3b7d9e3 into elizaOS:develop Jan 2, 2025
3 checks passed
@nusk0 nusk0 mentioned this pull request Jan 2, 2025
@nusk0 nusk0 deleted the 1634--fix_ImageDescriptionService branch January 2, 2025 01:19
1to3for5vi7ate9x pushed a commit to 1to3for5vi7ate9x/eliza that referenced this pull request Jan 26, 2025
…Service

fix: 1634  fix image description service
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