Comments (4)
@sonichi I believe the error occurs at here
It is possible that the messages
is an empty list, either from the line above when sender is None
or the input messages is already an empty list.
Would the following update resolve the issue?
if len(messages):
message = messages[-1]
else:
message = "empty message"
Of courese, @WaelKarkoub , we need to update this function such that we should avoid returning an empty list. Maybe we can cut the message and get the first few tokens.
from autogen.
Thanks for this great feedback!
from autogen.
@BeibinLi I opened a PR to fix this behavior. @aullrich2013 would you be able to test your setup with this PR #2350?
from autogen.
Note that this line and this line in the conversable agent still needs to be fixed.
@sonichi Do you think my suggestion from yesterday makes sense? If yes, I can go ahead and update the code.
from autogen.
Related Issues (20)
- [Bug]: log_function_use: autogen logger is None
- [Feature Request]: Allow all system role message to be placed at the beginning of messages HOT 2
- [Issue]: Cant find working directory
- [Bug]: Modified files after cloning main?! HOT 7
- [Issue]: Ollama does not work with tool use HOT 4
- [Feature Request]: Online library of user created workflows (AutoGen Studio)
- [Issue]: ConversableAgent parameter ---chat_messages HOT 8
- [Bug]: No way to set or register custom LLM to GroupChat selector agents HOT 3
- [Bug]: Registering a function (tool or function) wipes out any register_custom_client class in place HOT 1
- [Bug]: AnthropicClient Example Does Not Work w/ Other Conversation Patterns
- How to store output and pass it into another file HOT 10
- [Issue]: Timeout issues HOT 1
- [Roadmap]: v0.2.30 roadmap HOT 11
- [Issue]: Specified Azure OpenAI API versions do not support GPT-4o HOT 2
- [Bug]: agent generated the right python code, executed the code and yet got the wrong answers
- [Bug]: Although the model working, got below error, "autogen.oai.client: 06-16 16:42:50] {294} WARNING - Model ollama_chat/llama3 is not found. The cost will be 0. In your config_list, add field {"price" : [prompt_price_per_1k, completion_token_price_per_1k]} for customized pricing." HOT 4
- [Issue]: unable to make calculator example work with local models HOT 5
- [Bug]: Custom Model not supported in Group Chat with Speaker Prompt HOT 1
- [Bug]: Chromadb 0.5.1+ breaks retrieval agent
- [Bug]: Typing mistake for ChatResult , resulting in a Pydantic UserWarning
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 autogen.