You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mindsdb.integrations.libs.ml_exec_base.MLEngineException: [litellm/litellm_handler_messages]: BadRequestError: OpenAIException - Error code: 400 - {'error': {'message': "Invalid 'functions': empty array. Expected an array with minimum length 1, but got an empty array instead.", 'type': 'invalid_request_error', 'param': 'functions', 'code': 'empty_array'}}
Video or screenshots
No response
Expected behavior
It should respond with completion text.
How to reproduce the error
create ML_Engine litellm_new2 from litellm;
create model litellm_handler_azure_new2
predict text
using
engine="litellm_new2",
model="azure/PROBZAI",
api_key="47c0683a3017430ab5d8a1c60fc48a0e",
base_url="https://probzsweden.openai.azure.com/",
api_version="2024-02-01"
;
select * from information_schema.models where name ="litellm_handler_azure_new2" ;
select * from litellm_handler_azure_new2 where text='Once upon a time';
Anything else?
Manged to fix the issue by :
litellm_handler/settings.py : Making function and function_call optional and commenting our llm_model_list
The text was updated successfully, but these errors were encountered:
Short description of current behavior
mindsdb.integrations.libs.ml_exec_base.MLEngineException: [litellm/litellm_handler_messages]: BadRequestError: OpenAIException - Error code: 400 - {'error': {'message': "Invalid 'functions': empty array. Expected an array with minimum length 1, but got an empty array instead.", 'type': 'invalid_request_error', 'param': 'functions', 'code': 'empty_array'}}
Video or screenshots
No response
Expected behavior
It should respond with completion text.
How to reproduce the error
create ML_Engine litellm_new2 from litellm;
create model litellm_handler_azure_new2
predict text
using
engine="litellm_new2",
model="azure/PROBZAI",
api_key="47c0683a3017430ab5d8a1c60fc48a0e",
base_url="https://probzsweden.openai.azure.com/",
api_version="2024-02-01"
;
select * from information_schema.models where name ="litellm_handler_azure_new2" ;
select * from litellm_handler_azure_new2 where text='Once upon a time';
Anything else?
Manged to fix the issue by :
litellm_handler/settings.py : Making function and function_call optional and commenting our llm_model_list
The text was updated successfully, but these errors were encountered: