Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Bug] Gemini fails for custom plugin #2971

Closed
KhalfaniW opened this issue Jun 21, 2024 · 2 comments
Closed

[Bug] Gemini fails for custom plugin #2971

KhalfaniW opened this issue Jun 21, 2024 · 2 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@KhalfaniW
Copy link

KhalfaniW commented Jun 21, 2024

📦 Environment

Docker

📌 Version

v0.162.23

💻 Operating System

Ubuntu

🌐 Browser

Chrome

🐛 Bug Description

Here is the error message for gemini 1.5 flash, 1.5 pro and 1.0

{
  "identifier": "plugin",
  "message": "[gateway] plugin 'plugin' is not found,please check the plugin list in https://chat-plugins.lobehub.com, or create an issue ..."
}

📷 Recurrence Steps

Use the manifest json below and try to use gemini

🚦 Expected Behavior

Gets response from server endpoint

📝 Additional Information

Here is it working for
llama 70b and 8b (groq)

{
  "identifier": "local-time-plugin",
  "arguments": "{}",
  "apiName": "getCurrentTime",
  "type": "default"
}

Here is the
manifest.json


{
    "api": [
        {
            "url": "http:https://[my-public-url]:3001/time",
            "name": "getCurrentTime",
            "description": "Get the current time from the server",
            "parameters": {
                "properties": {
                    "timezone": {
                        "type": "string",
                        "description": "The timezone for which to fetch the time (e.g., 'UTC', 'America/New_York'). Optional, defaults to cst local time."
                    }
                },
                "type": "object"
            }
        } 
    ],
    
    "identifier": "local-time-plugin",
    "meta": {
        "name": "Local Time Plugin",
        "description": "A plugin to fetch the current time from a local server",
        "avatar": "🕰️",
        "tags": ["time", "utility"],
        "author": "Your Name",
    } ,
    "version": "1"
}
f

Here is the endpoint in express.js server

app.post('/time', async (req, res) => {
    const centralTime = new Date().toLocaleString('en-US', { timeZone: 'UTC' });
    res.json({ currentTime: centralTime });
});
@KhalfaniW KhalfaniW added the 🐛 Bug Something isn't working | 缺陷 label Jun 21, 2024
@lobehubbot
Copy link
Member

👀 @KhalfaniW

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@arvinxx
Copy link
Contributor

arvinxx commented Jun 22, 2024

It's the issue for gemini. I think gemini's tool calling ability is really a garbage.

@lobehub lobehub locked and limited conversation to collaborators Jun 26, 2024
@arvinxx arvinxx converted this issue into discussion #3048 Jun 26, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Done
Development

No branches or pull requests

3 participants