Code Monkey home page Code Monkey logo

Comments (5)

McHarryDentaire avatar McHarryDentaire commented on July 20, 2024

I've added the following line:

req.Header.Set("anthropic-version", "2023-06-01")

to the following functions (server/ai/anthropic/client.go):

func (c *Client) CompletionNoStream(...)
func (c *Client) Completion(prompt string) ...

After implementing this change, the previous error was resolved. However, I encountered a new issue:

error [2024-03-07 20:38:14.246 +01:00] websocket request handling error caller="wsapi/websocket_handler.go:58" action=user_typing seq=3 user_id=xxxxxxxxxxxxxxxxx error_message="Invalid channel_id parameter." error="websocket: user_typing: Invalid channel_id parameter."
error [2024-03-07 20:38:15.016 +01:00] failed to get github plugin status caller="app/plugin_api.go:988" plugin_id=mattermost-ai error="not found"

Additionally, I just updated Mattermost from 9.4.2 to 9.6.0. I encountered a similar error:

error [2024-03-07 21:17:10.125 +01:00] failed to get GitHub plugin status caller="app/plugin_api.go:1003" plugin_id=mattermost-ai error="not found"

from mattermost-plugin-ai.

crspeller avatar crspeller commented on July 20, 2024

@McHarryDentaire Fixed with #147, thanks for reporting this! Decided to do a bit of overkill and update the whole client to use the newer Messages API.

As for your other error, that should not effect the operation of the plugin, it is occurring because you don't have the Github plugin installed. Are you experiencing operational issues or just the log message? Try with #147 and let me know if that works.

from mattermost-plugin-ai.

McHarryDentaire avatar McHarryDentaire commented on July 20, 2024

@crspeller Great, thank you. It works like a charm.

Regarding the GitHub plugin not being installed, I'm not experiencing any operational issues, just seeing this error log.

from mattermost-plugin-ai.

crspeller avatar crspeller commented on July 20, 2024

Great! #148 will remove that unnecessary error log.

from mattermost-plugin-ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.