Update slop_with_models.py
This commit is contained in:
parent
23c5b3f384
commit
c3cb309ed4
1 changed files with 1 additions and 2 deletions
|
|
@ -2,7 +2,6 @@ from flask import Flask, request, jsonify
|
|||
from datetime import datetime
|
||||
import os
|
||||
import json
|
||||
import expr
|
||||
from threading import Lock
|
||||
from openai import OpenAI
|
||||
import logging
|
||||
|
|
@ -119,7 +118,7 @@ tools = {
|
|||
"arguments": [
|
||||
{ "name": "expression", "type": "str", "description": "the math expression to evaluate."}
|
||||
],
|
||||
"execute": lambda params: {"result": expr(params["expression"])},
|
||||
"execute": lambda params: {"result": eval(params["expression"])},
|
||||
},
|
||||
"greet": {
|
||||
"id": "greet",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue