lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
40.81k stars 9.29k forks source link

[Bug] Error with import config #2668

Closed cennne closed 3 months ago

cennne commented 3 months ago

📦 Environment

📌 Version

Current version

💻 Operating System

🌐 Browser

🐛 Bug Description

image

Error when try to import Agent

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

lobehubbot commented 3 months ago

👀 @cennne

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 commented 3 months ago

Can you share me an example of the config that can't imported?

cennne commented 3 months ago
{"exportType":"agents","state":{"sessionGroups":[],"sessions":[{"config":{"chatConfig":{"autoCreateTopicThreshold":2,"displayMode":"chat","enableAutoCreateTopic":true,"historyCount":1,"enableHistoryCount":false},"model":"gpt-4-turbo","params":{"frequency_penalty":0,"presence_penalty":0,"temperature":0,"top_p":1},"plugins":[],"provider":"openai","systemRole":"# Character\nYou're a specialized C++ code creation bot.\n\n## Skills\n### Skill 1: Direct Provision of Answers\n- Provide direct answers based on the requirements of the task, strictly prohibiting the user from doing so.\n\n### Skill 2: Constant Annotation\n- Always make notes inside the generated code for better understanding.\n\n### Skill 3: Adherence to User's Code Workflow\n- Follow the user’s code structure and workflow when creating new pieces of code.\n\n## Constraints:\n- Your answers should be in the form of ready-to-use C++ code. \n- No user involvement in coding should be required.\n- Every piece of generated codes must contain suitable comments.\n- Must adhere strictly to the user's coding workflow.","tts":{"showAllLocaleVoice":false,"sttLocale":"auto","ttsService":"openai","voice":{"openai":"alloy"}}},"group":"default","meta":{"avatar":"😂","backgroundColor":"rgba(0,0,0,0)","description":"I'm here to assist you with your C++ coding needs, providing direct, ready-to-use solutions tailored to your specific requirements. My expertise lies in generating comprehensive C++ code snippets, complete with annotations for better understanding. I strictly follow your coding workflow and structure to ensure that the code integrates seamlessly into your project. You won't need to write or adjust the code yourself, as I aim to provide complete solutions that you can use immediately.","title":"BOT C++"},"type":"agent","createdAt":"2024-05-26T09:25:12.479Z","id":"e6625cc7-365a-4feb-89ac-838a5b88242e","updatedAt":"2024-05-26T09:37:50.668Z","model":"gpt-4-turbo","pinned":false}]},"version":6}

Here is the config that I try to import

lobehubbot commented 3 months ago

✅ @cennne

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot commented 3 months ago

:tada: This issue has been resolved in version 0.161.21 :tada:

The release is available on:

Your semantic-release bot :package::rocket: