svpino / openai-function-calling

An example of using Function Calling with OpenAI's API
55 stars 4 forks source link

Create fn.py file #3

Open svpino opened 1 year ago

svpino commented 1 year ago

Summary by CodeRabbit

github-actions[bot] commented 1 year ago

Image description CodeRabbit

Walkthrough

The proposed changeset addresses a critical bug in the add_numbers function within the fn.py file. The issue was due to an undefined variable c, which has been corrected to b, ensuring the function now correctly adds two numbers.

Changes

File Summary
fn.py Fixed a NameError in the add_numbers function by replacing the undefined variable c with b.

🐇💻

In the land of code, where logic is king,

A rabbit found a bug, a peculiar thing.

With a hop and a click, and a quick little fix,

The function now adds, no more tricks.

So here's to the change, may it run error-free,

Celebrate this moment, with a cup of hot tea! ☕🎉


Uplevel your code reviews with CodeRabbit Pro ### CodeRabbit Pro If you like this project, please support us by purchasing the [Pro version](https://coderabbit.ai). The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version.