Comments (5)
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.
@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.
@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.
Great! #148 will remove that unnecessary error log.
from mattermost-plugin-ai.
Related Issues (20)
- 📑 docs: Update README and issues ahead of v1.0 release
- Webapp bad export of AdvancedCreateComment
- 🐛 bug: Wrong file added to the 0.5.0 pre release HOT 1
- 💡 idea: Ollama support HOT 7
- 🐛 bug: Not able to active in Mattermost V6&V7 HOT 3
- 📑 docs: adjust v1.0 feature documentation
- 💡 idea: Add Organization Input Option to Open AI Engine Configuration Form
- 💡 idea: Is it possible to make it work properly without setting up the github plugin? HOT 1
- 🐛 bug: not work with LocalAI backend HOT 10
- 🐛 bug: deleting suggested prompt prevents me from using another suggested prompt
- Feature Idea: Allow image input HOT 3
- Feature Idea: Specific context by linking to chat messages HOT 5
- Bug: crash with mattermost-server 9.0.0 and LocalAI backend HOT 8
- Feature Idea: Image Generation HOT 2
- Enhancement: Provide image as input to the model - gpt-4-vision-preview HOT 2
- Bug: RPC call MessageHasBeenPosted to plugin failed. HOT 3
- Feature Request: Gracefully handle when conversation contexts become too long HOT 3
- Feature Idea: Add in a "copy to clipboard" function onto AI messages HOT 3
- Bug: Plugin crashes when API request faces network failure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost-plugin-ai.