File tree Expand file tree Collapse file tree 4 files changed +5
-10
lines changed
src/examples/mistral_example Expand file tree Collapse file tree 4 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 22from examples .mistral_example .complete import chat_complete
33from examples .mistral_example .complete_async import complete_async
44from examples .mistral_example .embeddings import embeddings_create
5- from langtrace_python_sdk import with_langtrace_root_span
5+ from langtrace_python_sdk import langtrace , with_langtrace_root_span
66
7+ langtrace .init ()
78
89class MistralRunner :
910 @with_langtrace_root_span ("Mistral" )
Original file line number Diff line number Diff line change 11from dotenv import find_dotenv , load_dotenv
2- from langtrace_python_sdk import langtrace , with_langtrace_root_span
2+ from langtrace_python_sdk import with_langtrace_root_span
33from mistralai import Mistral
44
55_ = load_dotenv (find_dotenv ())
66
7- langtrace .init ()
8-
97@with_langtrace_root_span ("chat_complete" )
108def chat_complete ():
119 model = "mistral-large-latest"
Original file line number Diff line number Diff line change 11from dotenv import find_dotenv , load_dotenv
2- from langtrace_python_sdk import langtrace , with_langtrace_root_span
2+ from langtrace_python_sdk import with_langtrace_root_span
33from mistralai import Mistral
44
55_ = load_dotenv (find_dotenv ())
66
7- langtrace .init ()
8-
97@with_langtrace_root_span ("chat_complete_async" )
108async def complete_async ():
119 client = Mistral ()
Original file line number Diff line number Diff line change 11from dotenv import find_dotenv , load_dotenv
2- from langtrace_python_sdk import langtrace , with_langtrace_root_span
2+ from langtrace_python_sdk import with_langtrace_root_span
33from mistralai import Mistral
44
55_ = load_dotenv (find_dotenv ())
66
7- langtrace .init ()
8-
97
108@with_langtrace_root_span ("create_embeddings" )
119def embeddings_create ():
You can’t perform that action at this time.
0 commit comments