lunary-py's People
lunary-py's Issues
OpenAI 1.0 Python support
Support for new `tools` in LangChain python
tag tracking using with
Add full support for openai azure
Langchain PY callback handler PR
LangChain Python: passing `app_id` directly does not work
Langchain-py callback handler should not break user's program if an exception is raised in the callback handler
Tags should be sent as arrays
Fix using monitor(openai) hides the native errors (for example invalid model or api key)
Fix OpenAI streaming
litellm callback integration PR
llmonitor-py: track extra params for OpenAI calls
Add dynamic minimum version on langchain-py
Check from the endpoint in the init
Add feedback tracking
Add user_id tracking for llmonitor-py using `with`
Test parallel function calling
Make a minimalist test suite
llmonitor-py should not break user's program if an exception is raised in the callback handler
Support streaming for openai
llmonitory-py: Add support for function calls
Add user_id tracking for langchain-py
LLMonitor PY first release
Test suite
Implement EventQueue with parallel thread
Publish package with new parallel event processing method
Determine a precedence order for tags and userids and userprops
Use correct format for function calls in llmonitor-py
Fix LangChain Python with `ChatGooglePalm` no response
Improve langchain-py callback handler
- Multiple messages in input does not work
- Make context work with llmonitor
TypeError('Object of type AIMessage is not JSON serializable
Exception: TypeError('Object of type AIMessage is not JSON serializable
during sending events
Lcel chain configuration: AgentExecutor agent tool
Lunary version: 0.1.38
Langchain version: 0.1.6
Langchain-community: 0.0.19
Error in sending json:
{
"event":"end",
"type":"chain",
...
"timestamp":"2024-02-28T11:02:02.704029+00:00",
"message":"None",
"input":"None",
"output":{
"lc":1,
"type":"constructor",
"id":[
"langchain",
"schema",
"agent",
"AgentFinish"
],
"kwargs":{
"return_values":{
"output":"Test success !",
"messages":[ <- not valid json
"AIMessage(content=""<FINAL_ANSWER>\nTest success !\n</FINAL_ANSWER>"")"
]
},
"log":"<FINAL_ANSWER>\nTest success !\n</FINAL_ANSWER>"
}
},
...
}
When events stucks in EventQueue (because of error on sending events to self-hosted Lunary service) they are modified after by still running and streaming agent. Error is caused by messages are added at langchain\agents\agent_iterator.py
in function _return/a_return
returned_output["messages"] = output.messages
Solution: I think lunary.track_event
should copy the output object to event making it read only
Support openai 1.0
llmonitor-py: openai errors should not be hidden
Update doc Python (with user tracking)
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.