Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simoon-F/openai-function-calling-use-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

19 Commits

Repository files navigation

OpenAi Function Calling Use Examples

A simple example that demonstrates how to use the function call feature of the OpenAI API

Example

Libraries that need to be installed

  1. openai
  2. streamlit
  3. python-dotenv

installation

  1. Clone the current repository
$ git clone https://github.com/Simoon-F/openai-function-calling-use-exaples
  1. Enter the project root directory
$ cd openai-function-calling-use-exaples
  1. Create the .env file and add your api key

  2. Set up environment variables:

    • Create a .env file in the root of the project.

    • Add your Open AI API key to the .env file:

    OPENAI_API_KEY=your Open AI api key
    AMAP_API_KEY=your AMAP api key

TIPS: If there is no AMAP_API_KEY, you can comment out the relevant code.

  1. Run Project
$ streamlit run main.py

Official Description

function-calling-and-other-api-updates

About

A simple example that demonstrates how to use the function call feature of the OpenAI API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /