• 代码茶ᯤ⁵ᴳ⁺
    2023-03-28 来自韩国
    听完这节课,我用安卓原生开发试了试,我突然看到了有语音转文字的API的文档,于是我先用录音功能发送了录音文件给 Wisper-1,然后识别到了文字后再接着发给API,然后拿到结果后用tts进行朗读,这样就做好了一个语音助手了,比Siri强大100倍~接下来就跟着老师学习正确的提示,看看能不能把生成提示用python弄成一个工程,然后给各种提示弄一个标签按钮,这样能让使用更加自动化~

    作者回复: 👍

    
    16
  • Y024
    2023-03-20 来自福建
    补充说明:最新注册的只有 5 美元的 API 额度了。

    编辑回复: 是的是的,老师写这门课的时候还是18美元,难过。。。文章内已更新为5美元。大家看自己需求使用。

    共 13 条评论
    16
  • 不忘初心
    2023-03-20 来自陕西
    基于open ai开发的编译器https://www.cursor.so/

    作者回复: 👍

    共 4 条评论
    15
  • Rocky_zd
    2023-03-30 来自广东
    作为一个门外汉,折腾了几天,终于成功运行了第一课的示例代码了。 1、借助梯子+亲友国外手机号,完成api账户注册。 2、用梯子+conda,运行代码,总是报网络连接错误;改用colab,需要用谷歌邮箱登录,自己注册总是无法验证中国的手机号,网上买了一个谷歌邮箱,终于可以顺利运行示例代码了。

    作者回复: 👍 花时间跨过这个门槛一定是值得的!

    共 3 条评论
    10
  • 非洲黑猴子
    2023-03-21 来自美国
    运行第一段代码的时候好像就被要求充值了: RateLimitError: You exceeded your current quota, please check your plan and billing details.

    作者回复: 是不是因为你之前的免费额度已经用完了?或者免费的3个月时间已经结束了?可以在 https://platform.openai.com/account/usage 自己查看一下

    共 6 条评论
    7
  • aoe
    2023-03-23 来自浙江
    还是老师有商业头脑,举的例子都是带大家致富的。 提一个与老师不同的观点:使用 python 对于不懂技术的「产品经理」来说太难了,使用「Playground」与 OpenAI 交互会更友好。 原因:我工作中使用 Java,但不会 python,阅读文章时我也没想过去学一下 python,因为那不是我的兴趣点。我更关注的是,如何使用 OpenAI API 带来的福利。 目前我知道最简单的方式是使用「Playground」,将老师文中的 prompt 粘贴进去,点击提交按钮就得到了下面的结果: { "title": "Glow-in-the-Dark PVC Inflatable Frog Night Market Stall Hot Selling Inflatable Toy for Kids Water Toy", "selling_points": ["Made from durable PVC material","Glow-in-the-Dark design","Comes with an air pump","Fun and safe for kids","Easy to inflate and deflate"], "price_range": "$15-$20" } OpenAI 官方也列出了多种语言接入 API 的解决方案:https://platform.openai.com/docs/libraries/community-libraries
    展开

    作者回复: 用Playground也可以,只是受的限制比较多

    共 5 条评论
    5
  • 万物皆然
    2023-03-26 来自广东
    在Mac下通过conda 安装环境出现错误,是什么原因: (py310) $  ~  jupyter-lab . Traceback (most recent call last): File "/Users/miniconda3/envs/py310/lib/python3.10/site-packages/traitlets/traitlets.py", line 656, in get value = obj._trait_values[self.name] KeyError: 'registry' During handling of the above exception, another exception occurred:

    作者回复: Colab可以调用么?因为每个人电脑具体环境不一样,可能需要你自己研究一下,我把这个问题给了GPT-4,它的回答是这样的: It seems that you are trying to run JupyterLab, but you encountered an error related to the traitlets package. The traceback you provided doesn't give enough information to determine the exact cause of the error, but there are some general steps you can take to try to resolve this issue: Ensure that your Python environment is set up correctly. You mentioned that you are using Miniconda, so you might want to create a new environment specifically for JupyterLab: lua Copy code conda create -n jupyterlab_env python=3.10 conda activate jupyterlab_env Install JupyterLab in the newly created environment: r Copy code conda install -c conda-forge jupyterlab Now, try running JupyterLab again: Copy code jupyter-lab If the error persists, it may be due to an issue with one of the installed packages. In that case, try updating all the packages in your environment: sql Copy code conda update --all Finally, if the problem still isn't resolved, it could be helpful to provide more context or a more detailed traceback to get more specific assistance.

    
    4
  • harryZ
    2023-03-22 来自广东
    用Colab运行了本课的实例, 一共提交了两次, 共花费了$0.00516, 要知道我是刚注册的, 现在只有$5额度了.... 第二个例子再放在了chat中重复了一次, 果然输出还是一样的,

    编辑回复: 写这节课的时候是18美元。。。难过了~

    
    3
  • Geek_2d9ee5
    2023-04-12 来自福建
    windows在powershell prompt中设置环境变量与代理 $env:OPENAI_API_KEY='your_api_key‘ $env:HTTP_PROXY='http://localhost:7890' $env:HTTPS_PROXY='http://localhost:7890' 查看环境变量 ls env:HTTP*

    作者回复: 👍

    
    2
  • 芋头
    2023-03-31 来自北京
    售卖地中国北京,售价建议20-30元;售卖地定在中国鹤岗,售价建议10-20元。牛的

    作者回复: 👍 常识推理能力很强。

    
    2