JoshuaDick / CalorieMinder

App for tracking caloric intake and micronutrient information
0 stars 0 forks source link

Feature/NutritionSuggestions_GPTCall #19

Open Karmalized opened 3 months ago

Karmalized commented 3 months ago

Feature Implementation: This should help you understand the feature implementation of the GPT section of CalorieMinder:

GPT function calling is a feature that allows chatbots to interact with other systems by calling external APIs. This enables the GPT models to access real-time information or data not included in their training set. Function calling requires the model to output a JSON object containing arguments to call functions. The API must be called twice: once to get the JSON object from the model, and once to send the response to the function call back to the model.

A helpful article: https://semaphoreci.com/blog/function-calling

In essence, construct the bot to call upon functions noted in the sections of Nutrition Suggestions and outsource information from the web in order to broaden and improve the Users ability to make mindful dietary considerations based on the initial prompt or user desire.

Some Objectives:

BRYC33 commented 3 months ago

Got a solid framework for calling, prompting, and returning the Chatbot. Only thing needed is an OpenAI API key.