john-adeojo / autogen_flights_tutorial Goto Github PK
View Code? Open in Web Editor NEWTutorial for AutoGen with Amadeus flights API, Parallel Function Calls
Tutorial for AutoGen with Amadeus flights API, Parallel Function Calls
The project works excellently with gpt-4-turbo,
although with some hiccups.
When I change the model to gpt-3.5-turbo-16k
, I get the error below. Is that a known issue of the AutoGEN, or is there something I should change too?
***** Response from calling function "data_retreiver.getCode" *****
Error: Function data_retreiver.getCode not found.
The error is caused by this
�[33mchat_manager�[0m (to chat_manager):
Show me the cheapest flights from Istanbul Airport to Amsterdam, leaving on the
21st of December 2023 and returning on the 23rd of December 2023.
--------------------------------------------------------------------------------
�[33mdata_retriever�[0m (to chat_manager):
�[32m***** Suggested function Call: data_retreiver.getCode *****�[0m
Arguments:
{
"originLocationCode": "IST",
"destinationLocationCode": "AMS",
"departureDate": "2023-12-21",
"returnDate": "2023-12-23",
"adults": 1,
"maxPrice": 0,
"max": 10
}
�[32m***********************************************************�[0m
--------------------------------------------------------------------------------
�[33muser_proxy�[0m (to chat_manager):
�[32m***** Response from calling function "data_retreiver.getCode" *****�[0m
Error: Function data_retreiver.getCode not found.
�[32m*******************************************************************�[0m
...
�[1;31mBadRequestError�[0m: Error code: 400 - {'error': {'message': "'data_retreiver.getCode' does not match '^[a-zA-Z0-9_-]{1,64}$' - 'messages.2.function_call.name'", 'type': 'invalid_request_error', 'param': None, 'code': None}}
gpt-4-turbo generates the correct function call while gpt-3.5-turbo makes up inexisting function:
***** Suggested function Call: get_flight_data *****
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.