Example function get_weather #1129
Replies: 2 comments 1 reply
-
does this help? |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for the tip! I’ve made some progress; I managed to get the function recognized, and the value is being passed to my get_weather method, which now returns the JSON response on the webpage. However, I'm still unclear on how to send the weather data back to OpenAI so that I can receive a user-friendly message that will appear on the web interface. Could you please help me with that? `def get_weather(location):
tool_call_accumulator = "" def format_stream_response(chatCompletionChunk, history_metadata, apim_request_id):
|
Beta Was this translation helpful? Give feedback.
-
I hope this message finds you well. I wanted to inquire if it would be possible for you to provide a small example demonstrating how to implement a function like get_weather within the application. The goal is to understand the integration of such a function with a conversational model, including how the function is defined, how the model calls it, and how the function's response is handled.
A simple example, even if brief, would be incredibly helpful to clarify this process and allow for easier implementation of similar functionalities.
Thank you for your time and assistance!
Beta Was this translation helpful? Give feedback.
All reactions