{"id":19856778,"url":"https://github.com/yomorun/llm-function-get-weather","last_synced_at":"2026-04-16T15:31:40.067Z","repository":{"id":241452926,"uuid":"806820691","full_name":"yomorun/llm-function-get-weather","owner":"yomorun","description":"OpenAI Function Calling w/ Strong-typed language","archived":false,"fork":false,"pushed_at":"2024-05-28T02:58:17.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-02T06:29:16.340Z","etag":null,"topics":["function-calling","gemini","mistral","openai","yomo"],"latest_commit_sha":null,"homepage":"","language":"Go","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/yomorun.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}},"created_at":"2024-05-28T01:16:11.000Z","updated_at":"2024-05-28T03:02:41.000Z","dependencies_parsed_at":"2024-05-28T12:37:14.147Z","dependency_job_id":"8dd05545-b89a-447a-a579-68f262f48656","html_url":"https://github.com/yomorun/llm-function-get-weather","commit_stats":null,"previous_names":["yomorun/llm-function-get-weather"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yomorun/llm-function-get-weather","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yomorun%2Fllm-function-get-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yomorun%2Fllm-function-get-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yomorun%2Fllm-function-get-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yomorun%2Fllm-function-get-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yomorun","download_url":"https://codeload.github.com/yomorun/llm-function-get-weather/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yomorun%2Fllm-function-get-weather/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285995575,"owners_count":27267570,"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","status":"online","status_checked_at":"2025-11-23T02:00:06.149Z","response_time":135,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-calling","gemini","mistral","openai","yomo"],"created_at":"2024-11-12T14:16:33.731Z","updated_at":"2025-11-23T18:04:38.098Z","avatar_url":"https://github.com/yomorun.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# llm-function-get-weather\n\nThis example demostrates how to implement OpenAI Function Calling in Strong-typed language, easy to write and maintain. follow the instructions below, you will extend OpenAI gpt-4o with openweathermap.org API.\n\n## Development on local\n\n### Install YoMo\n\n```sh\ncurl -fsSL \"https://get.yomo.run\" | sh\n```\n\n### Add your OpenAI SK to configuration\n\n```sh\nvim yomo.yml\n```\n\n\u003e [!TIP]\n\u003e If you do not have an OpenAI API Key, you can try [vivgrid.com](https://vivgrid.com), it's free for developers with generous OpenAI Token every month.\n\n### Start YoMo\n\n```sh\nyomo serve -c yomo.yml\n```\n\n### Get your api-key from OpenWeatherMap.org\n\ngrab your api-key from [openweathermap.org](https://openweathermap.org) free, and add it to your `.env` file:\n\n```sh\nYOMO_SFN_NAME=llm_fn_get_weather\nYOMO_SFN_ZIPPER=localhost:9000\nYOMO_SFN_CREDENTIAL=SECRET\nOPENWEATHERMAP_API_KEY=\u003cADD_HERE\u003e\n```\n\n### Run your function calling\n\n```sh\nyomo run app.go\n```\n\n### Try it!\n\n```sh\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"prompt\":\"Hows the weather like in Paris today?\"}' http://127.0.0.1:9000/invoke |jq    \n{\n  \"Content\": \"The weather in Paris today is clear with a clear sky. Here are the detailed conditions:\\n\\n- **Temperature:** 9.89°C (feels like 9.02°C)\\n- **Humidity:** 91%\\n- **Pressure:** 1020 hPa\\n- **Wind:** 2.06 m/s coming from the southwest (210°)\\n- **Visibility:** 10 km\\n- **Cloudiness:** 0% (clear sky)\\n- **Sunrise:** 05:27 AM\\n- **Sunset:** 08:41 PM\\n\\nOverall, it's a cool and clear day in Paris.\",\n  \"ToolCalls\": null,\n  \"ToolMessages\": null,\n  \"FinishReason\": \"stop\",\n  \"TokenUsage\": {\n    \"prompt_tokens\": 274,\n    \"completion_tokens\": 125\n  },\n  \"AssistantMessage\": null\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyomorun%2Fllm-function-get-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyomorun%2Fllm-function-get-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyomorun%2Fllm-function-get-weather/lists"}