lcapriles commited on
Commit
6cf533d
·
verified ·
1 Parent(s): f024905

Update 250309:1842

Browse files

Ya no usamos client.chat.completions.create()

Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -43,17 +43,6 @@ Final Answer: the final answer to the original input question
43
 
44
  Now begin! Reminder to ALWAYS use the exact characters `Final Answer:` when you provide a definitive answer. """
45
 
46
- output = client.chat.completions.create(
47
- messages=[
48
- {"role": "system", "content": SYSTEM_PROMPT},
49
- {"role": "agent", "content": "Hi, I am an agent that knows the current time..."},
50
- {"role": "user", "content": "{input}"},
51
- ],
52
- stream=False,
53
- max_tokens=2048,
54
- stop=["Observation:"] # Let's stop before any actual function is called
55
- )
56
-
57
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
58
  @tool
59
  def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
 
43
 
44
  Now begin! Reminder to ALWAYS use the exact characters `Final Answer:` when you provide a definitive answer. """
45
 
 
 
 
 
 
 
 
 
 
 
 
46
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
47
  @tool
48
  def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type