You can now give OpenAI access to your app’s APIs when answering prompts. This means, with just a few lines of code, you can let your users interac...
For further actions, you may consider blocking this person and/or reporting abuse
Impressive. I hadn't thought of doing something like this...
Cool! I found it really nice that it was so quick and easy to get going with the OpenAI SDK, try it out in your own app.
I needed to use:
Encore secret set OpenAIAPIKey --type dev,local,pr
Thanks Juan, I updated the example 👍
but when runing I get:
encore run
❌ Building Encore application graph... Failed: setup deps
Caused by:
0: setup dependencies
1: npm install failed
2: No such file or directory (os error 2)
Stack backtrace:
0: anyhow::backtrace::capture::Backtrace::capture
1: ::setup_deps
2: scoped_tls::ScopedKey::set
3: tsparser_encore::main
4: std::sys_common::backtrace::__rust_begin_short_backtrace
5: _main
⠚ Analyzing service topology...
setup deps
Caused by:
0: setup dependencies
1: npm install failed
2: No such file or directory (os error 2)
Stack backtrace:
0: anyhow::backtrace::capture::Backtrace::capture
1: ::setup_deps
2: scoped_tls::ScopedKey::set
3: tsparser_encore::main
4: std::sys_common::backtrace::__rust_begin_short_backtrace
5: _main
I think maybe you don’t have npm installed (or not on the PATH)? What happens in you run
npm help
in your terminal?You are right, after trying to install npm, I get Error: You are using macOS 11
I will try with windows.
Great content. Keep going
Thanks for the support Manesh!
Thanks for the feedback, will do!
Good one. Bookmarking for later.
Amazing advice, and well articulated
Kindly thanks
Amazing tutorial would surely integrate this one of my projects
Thanks Jatin, glad to hear!
Do you use this to test ChatGPT plugins?
Hey Martin, thanks for your question. Do you mean testing your own integration before publishing a ChatGPT plugin? I have not published a ChatGPT plugin myself so I am unsure about the process OpenAI recommends for that. But OpenAI is pushing "function calling" as their recommended way of integrating ChatGPT into external system so to me it would make sense to utilize it when building plugins as well.
great!
Thanks 🙌