{"id":17531093,"url":"https://github.com/simoon-f/openai-function-calling-use-examples","last_synced_at":"2025-09-10T11:37:58.597Z","repository":{"id":176760000,"uuid":"657851765","full_name":"Simoon-F/openai-function-calling-use-examples","owner":"Simoon-F","description":"A simple example that demonstrates how to use the function call feature of the OpenAI API","archived":false,"fork":false,"pushed_at":"2023-09-04T08:12:10.000Z","size":585,"stargazers_count":66,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T20:13:56.949Z","etag":null,"topics":["function-call","openai","openai-example","openai-function","openai-function-call","openai-function-example"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simoon-F.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-24T02:45:54.000Z","updated_at":"2025-03-24T10:57:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf02fc41-5eed-4263-9f45-0b3968b42f83","html_url":"https://github.com/Simoon-F/openai-function-calling-use-examples","commit_stats":null,"previous_names":["simoon-f/openai-function-calling-use-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simoon-F%2Fopenai-function-calling-use-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simoon-F%2Fopenai-function-calling-use-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simoon-F%2Fopenai-function-calling-use-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simoon-F%2Fopenai-function-calling-use-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simoon-F","download_url":"https://codeload.github.com/Simoon-F/openai-function-calling-use-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250506141,"owners_count":21441723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["function-call","openai","openai-example","openai-function","openai-function-call","openai-function-example"],"created_at":"2024-10-20T17:22:44.671Z","updated_at":"2025-04-23T20:14:10.158Z","avatar_url":"https://github.com/Simoon-F.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAi Function Calling Use Examples\n\nA simple example that demonstrates how to use the function call feature of the OpenAI API\n\n## Example\n\n\u003ca href=\"https://raw.githubusercontent.com/Simoon-F/openai-function-calling-use-examples/master/example.gif\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/Simoon-F/openai-function-calling-use-examples/master/example.gif\"\u003e\u003c/a\u003e\n\n## Libraries that need to be installed\n\n1. openai\n2. streamlit\n3. python-dotenv\n\n## installation\n\n1. Clone the current repository\n\n```shell\n$ git clone https://github.com/Simoon-F/openai-function-calling-use-exaples\n```\n\n2. Enter the project root directory\n\n```shell\n$ cd openai-function-calling-use-exaples\n```\n\n3. Create the `.env` file and add your api key\n\n4. Set up environment variables:\n\n    - Create a `.env` file in the root of the project.\n\n    - Add your Open AI API key to the .env file:\n\n    ```env\n    OPENAI_API_KEY=your Open AI api key\n    AMAP_API_KEY=your AMAP api key\n    ```\n    \n`TIPS:` If there is no AMAP_API_KEY, you can comment out the relevant code.\n\n5. Run Project\n```shell\n$ streamlit run main.py\n```\n\n## Official Description\n\n[function-calling-and-other-api-updates](https://openai.com/blog/function-calling-and-other-api-updates)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimoon-f%2Fopenai-function-calling-use-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimoon-f%2Fopenai-function-calling-use-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimoon-f%2Fopenai-function-calling-use-examples/lists"}