そしてfunctions変数を定義 functions = [ { "name": "create_image", "description": "Creates an image given a prompt", "parameters": { "type": "object", "properties": { "prompt": { "type": "string", "description": "A text description in English of the desired image", }, "size": { "type": "string", "description": "The size of the generated images", "enum": ["256x256", "512x512", "1024x1024"], }, }, "required": ["prompt"], }, }, ]
入力を関数呼び出しに変換 Convert queries such as “Email Anya to see if she wants to get coffee next Friday” to a function call like send_email(to: string, body: string) , or “What’s the weather like in Boston?” to get_current_weather(location: string, unit: 'celsius' | 'fahrenheit') . https://openai.com/blog/function-calling-and-other-api-updates
ChatGPT in SlackがFunction callingに対応 (8/21) # Experimental: You can try out the Function Calling feature (default: None) export OPENAI_FUNCTION_CALL_MODULE_NAME=tests.function_call_example https://github.com/seratch/ChatGPT-in-Slack#readme
ChatGPT in SlackのFunction calling対応に貢献 @iwamot Thanks for the contribution! Your changes are now merged into the main branch: 626e492 https://github.com/seratch/ChatGPT-in-Slack/pull/52
issueで打診 To further enhance this software, I am proposing the addition of Function Calling support. (snip) May I proceed to create a PR for this proposed addition? https://github.com/seratch/ChatGPT-in-Slack/issues/50
変更を最小限にするのが重要 The addition of function calling is certainly something I've been looking forward to. (snip) When you submit a pull request, keeping the changes minimal would be very helpful. https://github.com/seratch/ChatGPT-in-Slack/issues/50