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

POC: Allow OpenAI to execute arbitrary external actions + no-code implementation with N8N #182

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

nickmisasi
Copy link

Closes #

Description

@azigler
Copy link
Collaborator

azigler commented May 13, 2024

@azigler
Copy link
Collaborator

azigler commented Jun 21, 2024

See Confluence for demos and resources around this POC.

https://mattermost.atlassian.net/wiki/spaces/FF/pages/2810019862/Toolkits

@azigler
Copy link
Collaborator

azigler commented Jun 26, 2024

This latest merge to master to incorporate #208 needs a revisit. Currently this branch isn't properly supplying the list of available tools in the base prompt, so it's not doing any function calling. I think I messed up the merge somewhere in ai/openai/openai.go in the toolsToOpenAITools function.

{
  "caller": "app/plugin_api.go:1004",
  "level": "info",
  "msg": "LLM Call",
  "plugin_id": "mattermost-ai",
  "prompt": "\n--- Conversation ---\n--- System ---\nYou are a helpful assistant called \"Copilot\" that responds on a Mattermost chat server called Mattermost owned by .\n\nCurrent time and date in the user's location is Wed, 26 Jun 2024 15:29:06 PDT\n\nThe following is the personal information of the user. This information is given with every request to you. You can use this information to taylor the request to the specific user however most of the time it will not be relavent. Only acknowledge the information when the request is directly related to the information provided. Never repeat it as written.\nThe user making the request username is 'admin'.\n\n\n\n\nThe channel you are responding in has the name 'town-square' and display name 'Town Square'. The channel is on a team called 'test' with display name 'test'.\n--- User ---\n@ai What tools can you use?\n--- Tools ---\n\n--- Context ---\nTime: Wed, 26 Jun 2024 15:29:06 PDT\nServerName: Mattermost\nCompanyName: \nRequestingUser: admin\nChannel: town-square\nTeam: test\nPost: 61funp1ry7y67jcgbp6qigjyoy\nPromptParameters:\n",
  "timestamp": "2024-06-26 22:29:06.269 Z"
}

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