From 1c6deba2fb8e9327949cfaaeb067722ae2829e09 Mon Sep 17 00:00:00 2001 From: Chris Park Date: Thu, 16 Jan 2025 20:37:49 -0500 Subject: [PATCH] accidental file --- .../examples/tool_call.py | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 python/instrumentation/openinference-instrumentation-groq/examples/tool_call.py diff --git a/python/instrumentation/openinference-instrumentation-groq/examples/tool_call.py b/python/instrumentation/openinference-instrumentation-groq/examples/tool_call.py deleted file mode 100644 index a6d67b252..000000000 --- a/python/instrumentation/openinference-instrumentation-groq/examples/tool_call.py +++ /dev/null @@ -1,41 +0,0 @@ -import os - -from groq import Groq -from phoenix.otel import register - -from openinference.instrumentation.groq import GroqInstrumentor - - -def test(): - tracer_provider = register(project_name="groq_debug") - GroqInstrumentor().instrument(tracer_provider=tracer_provider) - - client = Groq( - api_key=os.environ.get("GROQ_API_KEY"), - ) - - hello_world = { - "type": "function", - "function": { - "name": "hello_world", - "description": ("Print 'Hello world!'"), - "parameters": {"input": "ex"}, - }, - } - - prompt = "Be a helpful assistant" - msg = "say hello world" - - chat = client.chat.completions.create( - model="mixtral-8x7b-32768", - messages=[{"role": "system", "content": prompt}, {"role": "user", "content": msg}], - temperature=0.0, - tools=[hello_world], - tool_choice="required", - ) - return chat - - -if __name__ == "__main__": - response = test() - print(response)