forked from phoenix/litellm-mirror
have response type inherit from openaiobject
This commit is contained in:
parent
3d1934a829
commit
ee20e6a1e6
6 changed files with 60 additions and 55 deletions
23
litellm/tests/test_model_response_typing/server.py
Normal file
23
litellm/tests/test_model_response_typing/server.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# #### What this tests ####
|
||||
# # This tests if the litellm model response type is returnable in a flask app
|
||||
|
||||
# import sys, os
|
||||
# import traceback
|
||||
# from flask import Flask, request, jsonify, abort, Response
|
||||
# sys.path.insert(0, os.path.abspath('../../..')) # Adds the parent directory to the system path
|
||||
|
||||
# import litellm
|
||||
# from litellm import completion
|
||||
|
||||
# litellm.set_verbose = False
|
||||
|
||||
# app = Flask(__name__)
|
||||
|
||||
# @app.route('/')
|
||||
# def hello():
|
||||
# data = request.json
|
||||
# return completion(**data)
|
||||
|
||||
# if __name__ == '__main__':
|
||||
# from waitress import serve
|
||||
# serve(app, host='localhost', port=8080, threads=10)
|
Loading…
Add table
Add a link
Reference in a new issue