langtrace-python-sdk 2.2.27__tar.gz → 2.2.30__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/PKG-INFO +3 -2
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/pyproject.toml +27 -33
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/extensions/langtrace_exporter.py +1 -1
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langchain_community/patch.py +11 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langchain_core/patch.py +16 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langgraph/patch.py +1 -1
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/openai/patch.py +1 -1
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/langtrace.py +1 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/types/__init__.py +30 -1
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/__init__.py +1 -1
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/llm.py +1 -1
- langtrace_python_sdk-2.2.30/src/langtrace_python_sdk/version.py +1 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/openai/cassettes/test_async_chat_completion_streaming.yaml +32 -28
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/openai/cassettes/test_async_image_generation.yaml +27 -24
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/openai/cassettes/test_chat_completion.yaml +24 -26
- langtrace_python_sdk-2.2.30/src/tests/openai/cassettes/test_chat_completion_streaming.yaml +200858 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/openai/cassettes/test_image_generation.yaml +26 -24
- langtrace_python_sdk-2.2.27/src/langtrace_python_sdk/version.py +0 -1
- langtrace_python_sdk-2.2.27/src/tests/openai/cassettes/test_chat_completion_streaming.yaml +0 -152
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/.gitignore +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/LICENSE +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/README.md +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/anthropic_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/anthropic_example/completion.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/chroma_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/chroma_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/cohere_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/cohere_example/chat.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/cohere_example/chat_stream.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/cohere_example/embed.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/cohere_example/rerank.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/cohere_example/tools.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/simple_agent/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/simple_agent/agents.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/simple_agent/main.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/simple_agent/tasks.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/trip_planner/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/trip_planner/agents.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/trip_planner/main.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/trip_planner/tasks.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/trip_planner/tools/calculator.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/crewai_example/trip_planner/tools/search_tools.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/dspy_example/math_problems_cot.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/dspy_example/math_problems_cot_parallel.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/dspy_example/program_of_thought_basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/dspy_example/quiz_gen.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/dspy_example/react.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/fastapi_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/fastapi_example/basic_route.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/gemini_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/gemini_example/function_tools.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/gemini_example/main.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/hiveagent_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/inspect_ai_example/basic_eval.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/langchain_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/langchain_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/langchain_example/groq_example.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/langchain_example/langgraph_example.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/langchain_example/sagemaker.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/langchain_example/tool.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/litellm_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/llamaindex_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/llamaindex_example/agent.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/llamaindex_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/llamaindex_example/data/abramov.txt +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/mistral_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/mistral_example/complete.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/mistral_example/complete_async.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/mistral_example/embeddings.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/ollama_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/ollama_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/async_tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/async_tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/chat_completion.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/chat_completion_tool_choice.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/embeddings_create.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/function_calling.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/images_edit.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/images_generate.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/resources/lounge_flamingo.png +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/resources/mask.png +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/send_user_feedback.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/tool_calling.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/openai_example/tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/otlp_example/otlp_basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/otlp_example/otlp_with_langtrace.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/perplexity_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/pinecone_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/pinecone_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/qdrant_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/qdrant_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/routellm_example/basic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/vertexai_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/vertexai_example/main.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/weaviate_example/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/examples/weaviate_example/query_text.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/exporter/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/anthropic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/chroma.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/cohere.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/common.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/gemini.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/groq.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/mistral.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/ollama.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/openai.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/pinecone.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/qdrant.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/vertexai.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/constants/instrumentation/weaviate.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/extensions/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/extensions/langtrace_filesystem.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/anthropic/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/anthropic/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/anthropic/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/chroma/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/chroma/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/chroma/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/cohere/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/cohere/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/cohere/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/crewai/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/crewai/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/crewai/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/dspy/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/dspy/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/dspy/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/gemini/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/gemini/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/gemini/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/groq/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/groq/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/groq/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langchain/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langchain/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langchain/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langchain_community/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langchain_community/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langchain_core/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langchain_core/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langgraph/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/langgraph/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/llamaindex/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/llamaindex/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/llamaindex/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/mistral/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/mistral/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/mistral/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/ollama/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/ollama/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/ollama/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/openai/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/openai/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/pinecone/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/pinecone/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/pinecone/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/qdrant/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/qdrant/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/qdrant/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/vertexai/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/vertexai/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/vertexai/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/weaviate/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/weaviate/instrumentation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/instrumentation/weaviate/patch.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/langtrace_sampler.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/misc.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/prompt_registry.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/sdk_version_checker.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/silently_fail.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/types.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/with_root_span.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/run_example.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/__init__.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/anthropic/cassettes/test_anthropic.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/anthropic/cassettes/test_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/anthropic/cassettes/test_async_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/anthropic/conftest.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/anthropic/test_anthropic.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/chroma/conftest.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/chroma/test_chroma.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/cohere/cassettes/test_cohere_chat.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/cohere/cassettes/test_cohere_chat_streaming.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/cohere/cassettes/test_cohere_embed.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/cohere/cassettes/test_cohere_rerank.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/cohere/conftest.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/cohere/test_cohere_chat.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/cohere/test_cohere_embed.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/cohere/test_cohere_rerank.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/conftest.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/groq/cassettes/test_async_chat_completion.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/groq/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/groq/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/groq/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/groq/conftest.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/groq/test_groq.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/langchain/cassettes/test_langchain.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/langchain/conftest.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/langchain/test_langchain.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/openai/conftest.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/openai/test_chat_completion.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/openai/test_embeddings.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/openai/test_image_generation.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/pinecone/cassettes/test_query.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/pinecone/cassettes/test_upsert.yaml +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/pinecone/conftest.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/pinecone/test_pinecone.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/qdrant/conftest.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/qdrant/test_qdrant.py +0 -0
- {langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/tests/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: langtrace-python-sdk
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.30
|
|
4
4
|
Summary: Python SDK for LangTrace
|
|
5
5
|
Project-URL: Homepage, https://github.com/Scale3-Labs/langtrace-python-sdk
|
|
6
6
|
Author-email: Scale3 Labs <engineering@scale3labs.com>
|
|
@@ -21,6 +21,7 @@ Requires-Dist: opentelemetry-sdk>=1.25.0
|
|
|
21
21
|
Requires-Dist: sqlalchemy
|
|
22
22
|
Requires-Dist: tiktoken>=0.1.1
|
|
23
23
|
Requires-Dist: trace-attributes==7.0.4
|
|
24
|
+
Requires-Dist: transformers>=4.11.3
|
|
24
25
|
Provides-Extra: dev
|
|
25
26
|
Requires-Dist: anthropic; extra == 'dev'
|
|
26
27
|
Requires-Dist: chromadb; extra == 'dev'
|
|
@@ -33,7 +34,7 @@ Requires-Dist: langchain-community; extra == 'dev'
|
|
|
33
34
|
Requires-Dist: langchain-openai; extra == 'dev'
|
|
34
35
|
Requires-Dist: mistralai; extra == 'dev'
|
|
35
36
|
Requires-Dist: ollama; extra == 'dev'
|
|
36
|
-
Requires-Dist: openai; extra == 'dev'
|
|
37
|
+
Requires-Dist: openai==1.30.1; extra == 'dev'
|
|
37
38
|
Requires-Dist: pinecone-client; extra == 'dev'
|
|
38
39
|
Requires-Dist: python-dotenv; extra == 'dev'
|
|
39
40
|
Requires-Dist: qdrant-client; extra == 'dev'
|
|
@@ -12,10 +12,10 @@ description = "Python SDK for LangTrace"
|
|
|
12
12
|
readme = "README.md"
|
|
13
13
|
authors = [{ name = "Scale3 Labs", email = "engineering@scale3labs.com" }]
|
|
14
14
|
license = "Apache-2.0"
|
|
15
|
-
classifiers=[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"License :: OSI Approved :: Apache Software License",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
19
|
]
|
|
20
20
|
dependencies = [
|
|
21
21
|
'trace-attributes==7.0.4',
|
|
@@ -28,40 +28,36 @@ dependencies = [
|
|
|
28
28
|
'tiktoken>=0.1.1',
|
|
29
29
|
'colorama>=0.4.6',
|
|
30
30
|
'sqlalchemy',
|
|
31
|
-
'fsspec>=2024.6.0'
|
|
31
|
+
'fsspec>=2024.6.0',
|
|
32
|
+
"transformers>=4.11.3",
|
|
32
33
|
]
|
|
33
34
|
|
|
34
35
|
requires-python = ">=3.9"
|
|
35
36
|
|
|
36
37
|
[project.optional-dependencies]
|
|
37
38
|
dev = [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
]
|
|
58
|
-
|
|
59
|
-
test = [
|
|
60
|
-
"pytest",
|
|
61
|
-
"pytest-vcr",
|
|
62
|
-
"pytest-asyncio",
|
|
39
|
+
"openai==1.30.1",
|
|
40
|
+
"anthropic",
|
|
41
|
+
"chromadb",
|
|
42
|
+
"qdrant-client",
|
|
43
|
+
"python-dotenv",
|
|
44
|
+
"pinecone-client",
|
|
45
|
+
"langchain",
|
|
46
|
+
"langchain-community",
|
|
47
|
+
"langchain-openai",
|
|
48
|
+
"langchain-openai",
|
|
49
|
+
"chromadb",
|
|
50
|
+
"cohere",
|
|
51
|
+
"qdrant_client",
|
|
52
|
+
"weaviate-client",
|
|
53
|
+
"ollama",
|
|
54
|
+
"groq",
|
|
55
|
+
"google-generativeai",
|
|
56
|
+
"google-cloud-aiplatform",
|
|
57
|
+
"mistralai",
|
|
63
58
|
]
|
|
64
59
|
|
|
60
|
+
test = ["pytest", "pytest-vcr", "pytest-asyncio"]
|
|
65
61
|
|
|
66
62
|
|
|
67
63
|
[project.urls]
|
|
@@ -72,9 +68,7 @@ Homepage = "https://github.com/Scale3-Labs/langtrace-python-sdk"
|
|
|
72
68
|
path = "src/langtrace_python_sdk/version.py"
|
|
73
69
|
|
|
74
70
|
[tool.hatch.build.targets.sdist]
|
|
75
|
-
include = [
|
|
76
|
-
"/src",
|
|
77
|
-
]
|
|
71
|
+
include = ["/src"]
|
|
78
72
|
|
|
79
73
|
[tool.hatch.build.targets.wheel]
|
|
80
74
|
packages = ["src/langtrace_python_sdk", "src/examples", "src/tests"]
|
|
@@ -23,6 +23,7 @@ from opentelemetry.trace.propagation import set_span_in_context
|
|
|
23
23
|
|
|
24
24
|
from opentelemetry.trace import SpanKind
|
|
25
25
|
from opentelemetry.trace.status import Status, StatusCode
|
|
26
|
+
from langtrace.trace_attributes import SpanAttributes
|
|
26
27
|
|
|
27
28
|
from langtrace_python_sdk.constants.instrumentation.common import (
|
|
28
29
|
LANGTRACE_ADDITIONAL_SPAN_ATTRIBUTES_KEY,
|
|
@@ -71,6 +72,16 @@ def generic_patch(
|
|
|
71
72
|
if trace_output:
|
|
72
73
|
span.set_attribute("langchain.outputs", to_json_string(result))
|
|
73
74
|
|
|
75
|
+
prompt_tokens = instance.get_num_tokens(args[0])
|
|
76
|
+
completion_tokens = instance.get_num_tokens(result)
|
|
77
|
+
if hasattr(result, 'usage'):
|
|
78
|
+
prompt_tokens = result.usage.prompt_tokens
|
|
79
|
+
completion_tokens = result.usage.completion_tokens
|
|
80
|
+
|
|
81
|
+
span.set_attribute(SpanAttributes.LLM_USAGE_COMPLETION_TOKENS, prompt_tokens)
|
|
82
|
+
span.set_attribute(SpanAttributes.LLM_USAGE_PROMPT_TOKENS, completion_tokens)
|
|
83
|
+
|
|
84
|
+
|
|
74
85
|
span.set_status(StatusCode.OK)
|
|
75
86
|
return result
|
|
76
87
|
except Exception as err:
|
|
@@ -30,6 +30,7 @@ from langtrace_python_sdk.constants.instrumentation.common import (
|
|
|
30
30
|
from importlib_metadata import version as v
|
|
31
31
|
|
|
32
32
|
from langtrace_python_sdk.constants import LANGTRACE_SDK_NAME
|
|
33
|
+
from langtrace.trace_attributes import SpanAttributes
|
|
33
34
|
|
|
34
35
|
|
|
35
36
|
def generic_patch(
|
|
@@ -78,8 +79,22 @@ def generic_patch(
|
|
|
78
79
|
try:
|
|
79
80
|
# Attempt to call the original method
|
|
80
81
|
result = wrapped(*args, **kwargs)
|
|
82
|
+
|
|
81
83
|
if trace_output:
|
|
82
84
|
span.set_attribute("langchain.outputs", to_json_string(result))
|
|
85
|
+
if hasattr(result, 'usage'):
|
|
86
|
+
prompt_tokens = result.usage.prompt_tokens
|
|
87
|
+
completion_tokens = result.usage.completion_tokens
|
|
88
|
+
span.set_attribute(SpanAttributes.LLM_USAGE_PROMPT_TOKENS, prompt_tokens)
|
|
89
|
+
span.set_attribute(SpanAttributes.LLM_USAGE_COMPLETION_TOKENS, completion_tokens)
|
|
90
|
+
|
|
91
|
+
elif result.generations[0][0].text:
|
|
92
|
+
span.set_attribute(SpanAttributes.LLM_USAGE_COMPLETION_TOKENS, instance.get_num_tokens(result.generations[0][0].text))
|
|
93
|
+
elif isinstance(args[0][0], str):
|
|
94
|
+
span.set_attribute(SpanAttributes.LLM_USAGE_PROMPT_TOKENS, instance.get_num_tokens(args[0][0]))
|
|
95
|
+
|
|
96
|
+
else:
|
|
97
|
+
span.set_attribute(SpanAttributes.LLM_USAGE_PROMPT_TOKENS, instance.get_num_tokens(args[0][0].text))
|
|
83
98
|
|
|
84
99
|
span.set_status(StatusCode.OK)
|
|
85
100
|
return result
|
|
@@ -156,6 +171,7 @@ def runnable_patch(
|
|
|
156
171
|
try:
|
|
157
172
|
# Attempt to call the original method
|
|
158
173
|
result = wrapped(*args, **kwargs)
|
|
174
|
+
|
|
159
175
|
if trace_output:
|
|
160
176
|
outputs = {}
|
|
161
177
|
if isinstance(result, dict):
|
{langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/langtrace.py
RENAMED
|
@@ -83,6 +83,7 @@ def init(
|
|
|
83
83
|
)
|
|
84
84
|
check_if_sdk_is_outdated()
|
|
85
85
|
print(Fore.GREEN + "Initializing Langtrace SDK.." + Fore.RESET)
|
|
86
|
+
print(Fore.WHITE + "⭐ Leave our github a star to stay on top of our updates - https://github.com/Scale3-Labs/langtrace" + Fore.RESET)
|
|
86
87
|
sampler = LangtraceSampler(disabled_methods=disable_tracing_for_functions)
|
|
87
88
|
resource = Resource.create(
|
|
88
89
|
attributes={
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import List, Literal, TypedDict
|
|
1
|
+
from typing import List, Literal, TypeVar, TypedDict, Union
|
|
2
2
|
from enum import Enum
|
|
3
3
|
|
|
4
4
|
|
|
@@ -111,3 +111,32 @@ class InstrumentationMethods(TypedDict):
|
|
|
111
111
|
anthropic: List[VendorMethods.AnthropicMethods]
|
|
112
112
|
cohere: List[VendorMethods.CohereMethods]
|
|
113
113
|
weaviate: List[str]
|
|
114
|
+
|
|
115
|
+
_T = TypeVar("_T")
|
|
116
|
+
class NotGiven:
|
|
117
|
+
"""
|
|
118
|
+
A sentinel singleton class used to distinguish omitted keyword arguments
|
|
119
|
+
from those passed in with the value None (which may have different behavior).
|
|
120
|
+
|
|
121
|
+
For example:
|
|
122
|
+
|
|
123
|
+
```py
|
|
124
|
+
def get(timeout: Union[int, NotGiven, None] = NotGiven()) -> Response:
|
|
125
|
+
...
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
get(timeout=1) # 1s timeout
|
|
129
|
+
get(timeout=None) # No timeout
|
|
130
|
+
get() # Default timeout behavior, which may not be statically known at the method definition.
|
|
131
|
+
```
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
def __bool__(self) -> Literal[False]:
|
|
135
|
+
return False
|
|
136
|
+
|
|
137
|
+
def __repr__(self) -> str:
|
|
138
|
+
return "NOT_GIVEN"
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
NotGivenOr = Union[_T, NotGiven]
|
|
142
|
+
NOT_GIVEN = NotGiven()
|
{langtrace_python_sdk-2.2.27 → langtrace_python_sdk-2.2.30}/src/langtrace_python_sdk/utils/llm.py
RENAMED
|
@@ -16,7 +16,7 @@ limitations under the License.
|
|
|
16
16
|
|
|
17
17
|
from langtrace_python_sdk.constants import LANGTRACE_SDK_NAME
|
|
18
18
|
from langtrace_python_sdk.utils import set_span_attribute
|
|
19
|
-
from
|
|
19
|
+
from langtrace_python_sdk.types import NOT_GIVEN
|
|
20
20
|
from tiktoken import get_encoding
|
|
21
21
|
from tiktoken import get_encoding, list_encoding_names
|
|
22
22
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.30"
|
|
@@ -6,7 +6,7 @@ interactions:
|
|
|
6
6
|
accept:
|
|
7
7
|
- application/json
|
|
8
8
|
accept-encoding:
|
|
9
|
-
- gzip, deflate
|
|
9
|
+
- gzip, deflate
|
|
10
10
|
connection:
|
|
11
11
|
- keep-alive
|
|
12
12
|
content-length:
|
|
@@ -16,7 +16,7 @@ interactions:
|
|
|
16
16
|
host:
|
|
17
17
|
- api.openai.com
|
|
18
18
|
user-agent:
|
|
19
|
-
- AsyncOpenAI/Python 1.
|
|
19
|
+
- AsyncOpenAI/Python 1.30.1
|
|
20
20
|
x-stainless-arch:
|
|
21
21
|
- arm64
|
|
22
22
|
x-stainless-async:
|
|
@@ -26,7 +26,7 @@ interactions:
|
|
|
26
26
|
x-stainless-os:
|
|
27
27
|
- MacOS
|
|
28
28
|
x-stainless-package-version:
|
|
29
|
-
- 1.
|
|
29
|
+
- 1.30.1
|
|
30
30
|
x-stainless-runtime:
|
|
31
31
|
- CPython
|
|
32
32
|
x-stainless-runtime-version:
|
|
@@ -35,66 +35,66 @@ interactions:
|
|
|
35
35
|
uri: https://api.openai.com/v1/chat/completions
|
|
36
36
|
response:
|
|
37
37
|
body:
|
|
38
|
-
string: 'data: {"id":"chatcmpl-
|
|
38
|
+
string: 'data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"role":"assistant","content":"","refusal":null},"logprobs":null,"finish_reason":null}]}
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
data: {"id":"chatcmpl-
|
|
41
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"This"},"logprobs":null,"finish_reason":null}]}
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
data: {"id":"chatcmpl-
|
|
44
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
45
45
|
is"},"logprobs":null,"finish_reason":null}]}
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
data: {"id":"chatcmpl-
|
|
48
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
49
49
|
a"},"logprobs":null,"finish_reason":null}]}
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
data: {"id":"chatcmpl-
|
|
52
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
53
53
|
test"},"logprobs":null,"finish_reason":null}]}
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
data: {"id":"chatcmpl-
|
|
56
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
data: {"id":"chatcmpl-
|
|
59
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
60
60
|
This"},"logprobs":null,"finish_reason":null}]}
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
data: {"id":"chatcmpl-
|
|
63
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
64
64
|
is"},"logprobs":null,"finish_reason":null}]}
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
data: {"id":"chatcmpl-
|
|
67
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
68
68
|
a"},"logprobs":null,"finish_reason":null}]}
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
data: {"id":"chatcmpl-
|
|
71
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
72
72
|
test"},"logprobs":null,"finish_reason":null}]}
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
data: {"id":"chatcmpl-
|
|
75
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
data: {"id":"chatcmpl-
|
|
78
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
79
79
|
This"},"logprobs":null,"finish_reason":null}]}
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
data: {"id":"chatcmpl-
|
|
82
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
83
83
|
is"},"logprobs":null,"finish_reason":null}]}
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
data: {"id":"chatcmpl-
|
|
86
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
87
87
|
a"},"logprobs":null,"finish_reason":null}]}
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
data: {"id":"chatcmpl-
|
|
90
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"
|
|
91
91
|
test"},"logprobs":null,"finish_reason":null}]}
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
data: {"id":"chatcmpl-
|
|
94
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]}
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
data: {"id":"chatcmpl-
|
|
97
|
+
data: {"id":"chatcmpl-A1AmANY7TGsx9lezpQOx8JNTT13TY","object":"chat.completion.chunk","created":1724843114,"model":"gpt-4-0613","system_fingerprint":null,"choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
data: [DONE]
|
|
@@ -105,33 +105,37 @@ interactions:
|
|
|
105
105
|
CF-Cache-Status:
|
|
106
106
|
- DYNAMIC
|
|
107
107
|
CF-RAY:
|
|
108
|
-
-
|
|
108
|
+
- 8ba3d335793f1bd8-BOM
|
|
109
109
|
Connection:
|
|
110
110
|
- keep-alive
|
|
111
111
|
Content-Type:
|
|
112
112
|
- text/event-stream; charset=utf-8
|
|
113
113
|
Date:
|
|
114
|
-
- Wed,
|
|
114
|
+
- Wed, 28 Aug 2024 11:05:14 GMT
|
|
115
115
|
Server:
|
|
116
116
|
- cloudflare
|
|
117
117
|
Set-Cookie:
|
|
118
|
-
- __cf_bm=
|
|
119
|
-
path=/; expires=Wed,
|
|
118
|
+
- __cf_bm=nXSzNkiyyYYUW5K4kkG_5S1Cu2CW_gufpypYqAtDhXY-1724843114-1.0.1.1-KB34l0CfjGeVtsqaBjhsRF3KIXSkZCC6fLqyMXCsPvmHWQ9EVopZ8hLHQ4S0POQQ5.7lkEaFb9JjBZjJfgBleQ;
|
|
119
|
+
path=/; expires=Wed, 28-Aug-24 11:35:14 GMT; domain=.api.openai.com; HttpOnly;
|
|
120
120
|
Secure; SameSite=None
|
|
121
|
-
- _cfuvid=
|
|
121
|
+
- _cfuvid=8L1dZYomenUDny1OLXAiqN6yOSuI9h3X6yA1d7S0G4U-1724843114334-0.0.1.1-604800000;
|
|
122
122
|
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
|
|
123
123
|
Transfer-Encoding:
|
|
124
124
|
- chunked
|
|
125
|
+
X-Content-Type-Options:
|
|
126
|
+
- nosniff
|
|
127
|
+
access-control-expose-headers:
|
|
128
|
+
- X-Request-ID
|
|
125
129
|
alt-svc:
|
|
126
130
|
- h3=":443"; ma=86400
|
|
127
131
|
openai-organization:
|
|
128
132
|
- scale3-1
|
|
129
133
|
openai-processing-ms:
|
|
130
|
-
- '
|
|
134
|
+
- '160'
|
|
131
135
|
openai-version:
|
|
132
136
|
- '2020-10-01'
|
|
133
137
|
strict-transport-security:
|
|
134
|
-
- max-age=
|
|
138
|
+
- max-age=15552000; includeSubDomains; preload
|
|
135
139
|
x-ratelimit-limit-requests:
|
|
136
140
|
- '10000'
|
|
137
141
|
x-ratelimit-limit-tokens:
|
|
@@ -145,7 +149,7 @@ interactions:
|
|
|
145
149
|
x-ratelimit-reset-tokens:
|
|
146
150
|
- 1ms
|
|
147
151
|
x-request-id:
|
|
148
|
-
-
|
|
152
|
+
- req_7db02982c898e0a9750e8f8be365e791
|
|
149
153
|
status:
|
|
150
154
|
code: 200
|
|
151
155
|
message: OK
|
|
@@ -21,7 +21,7 @@ interactions:
|
|
|
21
21
|
host:
|
|
22
22
|
- api.openai.com
|
|
23
23
|
user-agent:
|
|
24
|
-
- AsyncOpenAI/Python 1.
|
|
24
|
+
- AsyncOpenAI/Python 1.30.1
|
|
25
25
|
x-stainless-arch:
|
|
26
26
|
- arm64
|
|
27
27
|
x-stainless-async:
|
|
@@ -31,34 +31,35 @@ interactions:
|
|
|
31
31
|
x-stainless-os:
|
|
32
32
|
- MacOS
|
|
33
33
|
x-stainless-package-version:
|
|
34
|
-
- 1.
|
|
34
|
+
- 1.30.1
|
|
35
35
|
x-stainless-runtime:
|
|
36
36
|
- CPython
|
|
37
37
|
x-stainless-runtime-version:
|
|
38
|
-
- 3.
|
|
38
|
+
- 3.12.3
|
|
39
39
|
method: POST
|
|
40
40
|
uri: https://api.openai.com/v1/images/generations
|
|
41
41
|
response:
|
|
42
42
|
body:
|
|
43
43
|
string: !!binary |
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
H4sIAAAAAAAAA1xS227jNhB991cMDNhPli+SbMsBjCLebtBsAhTderduiqIYkSOJEUUqHNKOuth/
|
|
45
|
+
X9CLtkhfSB6cuZ0z/DICGAtH6EmOb2C1TfMiz1b5dhYJiR7HN/DHCADgy/UEGDs6Kyb5V+9s1/vx
|
|
46
|
+
DYzvO6yVIUBoCJ2/oOuUqYEFGYKK0AcXMYIInqDEcgAmBOs9uTkcG8XglRlmUOlQVQNcBwqOQDFI
|
|
47
|
+
pyofs0lTjcbrAawB5RlKFO0MLso3V6iV95rgQmVJEnq8MPggWpKA0josY+KZ3DW2Ci4REZEE9rZD
|
|
48
|
+
0czh3kODDBpdTTNwNhg5A4PqTEADMXCPrtXE31v6hkAEpywrP4CtYLDBN3P4rVGaQHl4tkMVtB6g
|
|
49
|
+
0hY9x6ljjndoXoLSM/AXZVp9NYoQOLgKBUEwktw10qFUaATF4hHXVksyIAO3s9hAq7rxV8NJ6gF8
|
|
50
|
+
4+yFAUEH9s4GjmW5Ia2hcraLjoC38ZqBpM4a9g6vzkZHnu1ZoQY0EoLpFHtsv1sWd5Ro1RJIxX1U
|
|
51
|
+
q6yZj2f//IbgdPwCjfc93ywWFpVErQl71TsrWQSel9qWc2EdzS/KSHvhuSG/6J06o6eFdXVyeN6c
|
|
52
|
+
Tq+vd3X7gX6/Mw2n5qSXxi0Ck0t+eul659qHh/Pnz3/fHx8Ox7w58erXherq5PZwl7unX94ZQv9p
|
|
53
|
+
9frx9fRuk5WHbt6b+gf2+3SZ5smySNLiuFpOstvlepLd5tunKdMbLn3D9Xs35fO/Act8ym5fTh0L
|
|
54
|
+
uVdGK0Px7feqw5oWvamn3Fol93K9XG82W5nIjVglOS4xKVFsk7Uociy22/WuKqbceiX3mBdC4HqT
|
|
55
|
+
0EZikhc5JVis8mQniny3WaelKLMY+t+U22OaTbLbLMrIdk9Tbt9I+D/J+3LK7VsRqt6/fxRPz8Mk
|
|
56
|
+
PTzWd/f+IetlUb4vCux2+eNRcPGx303Sw7BYT9LDzx+Gl3aS/Ti+bvvrCODP0dfRNwAAAP//AwCM
|
|
57
|
+
rHe4NQQAAA==
|
|
57
58
|
headers:
|
|
58
59
|
CF-Cache-Status:
|
|
59
60
|
- DYNAMIC
|
|
60
61
|
CF-RAY:
|
|
61
|
-
-
|
|
62
|
+
- 8ba3d398fd213b34-BOM
|
|
62
63
|
Connection:
|
|
63
64
|
- keep-alive
|
|
64
65
|
Content-Encoding:
|
|
@@ -66,17 +67,19 @@ interactions:
|
|
|
66
67
|
Content-Type:
|
|
67
68
|
- application/json
|
|
68
69
|
Date:
|
|
69
|
-
-
|
|
70
|
+
- Wed, 28 Aug 2024 11:05:48 GMT
|
|
70
71
|
Server:
|
|
71
72
|
- cloudflare
|
|
72
73
|
Set-Cookie:
|
|
73
|
-
- __cf_bm=
|
|
74
|
-
path=/; expires=
|
|
74
|
+
- __cf_bm=g5qknHnjVP7kkaGrWc6RqvVjSmiWgOaOEweDFDGSQ7g-1724843148-1.0.1.1-mngSNlnO8YV2mQ1tzcQJaymcDItIVaCm8v4U4I46I5yjb_9HwSpMSa9uVwuamzQbVGGdE02258WeQMqYo.c72w;
|
|
75
|
+
path=/; expires=Wed, 28-Aug-24 11:35:48 GMT; domain=.api.openai.com; HttpOnly;
|
|
75
76
|
Secure; SameSite=None
|
|
76
|
-
- _cfuvid=
|
|
77
|
+
- _cfuvid=ZD.yrekeTVlEqlHli7ZLelPz4jSGof3VcPe8t8nLvTA-1724843148132-0.0.1.1-604800000;
|
|
77
78
|
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
|
|
78
79
|
Transfer-Encoding:
|
|
79
80
|
- chunked
|
|
81
|
+
X-Content-Type-Options:
|
|
82
|
+
- nosniff
|
|
80
83
|
access-control-allow-origin:
|
|
81
84
|
- '*'
|
|
82
85
|
alt-svc:
|
|
@@ -84,13 +87,13 @@ interactions:
|
|
|
84
87
|
openai-organization:
|
|
85
88
|
- scale3-1
|
|
86
89
|
openai-processing-ms:
|
|
87
|
-
- '
|
|
90
|
+
- '17618'
|
|
88
91
|
openai-version:
|
|
89
92
|
- '2020-10-01'
|
|
90
93
|
strict-transport-security:
|
|
91
|
-
- max-age=
|
|
94
|
+
- max-age=15552000; includeSubDomains; preload
|
|
92
95
|
x-request-id:
|
|
93
|
-
-
|
|
96
|
+
- req_c88dfb23fd705f1c8769503ac4ca534e
|
|
94
97
|
status:
|
|
95
98
|
code: 200
|
|
96
99
|
message: OK
|