Update slop_with_models.py
This commit is contained in:
parent
e19a056116
commit
b417af1a4d
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ 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
|
||||
|
|
@ -118,7 +119,7 @@ tools = {
|
|||
"arguments": [
|
||||
{ "name": "expression", "type": "str", "description": "the math expression to evaluate."}
|
||||
],
|
||||
"execute": lambda params: {"result": eval(params["expression"])},
|
||||
"execute": lambda params: {"result": expr(params["expression"])},
|
||||
},
|
||||
"greet": {
|
||||
"id": "greet",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue