-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Gladstone Snowflake Middleware GPT Action Library cookbook #1375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ction and middleware information sentence
"metadata": {}, | ||
"source": [ | ||
"* Files returned to ChatGPT are limited in size to 10MB. Your request may fail if the file returned is larger than that. Ensure to include LIMITs on your SQL commands if you find you are running into these limitations.\n", | ||
"* _Why is the Azure Function App requred in the first place?_ ChatGPT’s Data Analysis feature (aka Code Interpreter) depends on a secure Python environment that is separate from the model’s context window. Data passed to Data Analysis must be done so by uploading a file today. GPT actions returning data must then return that data as a CSV or other data file type. In order to return a file via GPT action, the response must be wrapped in an `openaiFileResponse` object. This requires custom code to properly format the response.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious on why the Drive integration can return files directly if we have a specific format expected. We don't need a middleware for that one I believe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't return files. It returns file contents. You can't pass a file directly from Drive into Code Interpreter without middleware
Looks good to me – as I've incorporated some changes I'll let you merge if you agree with those @gladstone-openai. |
Added title that was missing and hyperlinks instead of relative (not sure they work on the cookbook, might revisit later). Two things I'm also wondering but don't believe we should change/wait to merge but can revisit later:
|
I agree with both of these. I can address in a follow up commit, though we should chat about the best naming convention for direct vs middleware. I agree the current one is bad. I just don't know what the right answer is. |
Not that it matters, but swapping order that I mistakenly mixed up on merge conflict.
Co-authored-by: pap <pap@openai.com>
Summary
Briefly describe the changes and the goal of this PR. Make sure the PR title summarizes the changes effectively.
Motivation
Why are these changes necessary? How do they improve the cookbook?
For new content
When contributing new content, read through our contribution guidelines, and mark the following action items as completed:
We will rate each of these areas on a scale from 1 to 4, and will only accept contributions that score 3 or higher on all areas. Refer to our contribution guidelines for more details.