I then noticed a warning saying Unable to determine target architecture, continuing without vcpkg. I could then also see the file in vcpkg/installed/arm64-osx/share/platform_folders/platform_foldersConfig.cmake, but mac-config still failed with the same error. So I edited mac-prebuild and changed the line with triplet=(圆4-osx) to triplet=(arm64-osx) then reran the prebuild. I thought that maybe the problem is it being in 圆4-osx, and maybe cmake is looking for arm64. I can see that it was installed by vcpkg, and the file it’s looking for is in vcpkg/installed/圆4-osx/share/platform_folders/platform_foldersConfig.cmake. Then the mac-config script failed because it couldn’t find the platform-folders package: CMake Error at api/CMakeLists.txt:44 (find_package):Ĭould not find a package configuration file provided by "platform_folders"Īdd the installation prefix of "platform_folders" to CMAKE_PREFIX_PATH or I managed to get the mac-prebuild script working after fixing an issue with the homebrew prefix path ( #2968). ' ) Accessing raw response data (e.g.Has anyone managed to build Sonic Pi on a new M1 Mac? get ( "OPENAI_API_KEY" ), ) chat_completion = client. import os from openai import OpenAI client = OpenAI ( # This is the default and can be omitted api_key = os. The full API of this library can be found in api.md. See the v1 migration guide, which includes scripts to automatically update your code. The SDK was rewritten in v1, which was released November 6th 2023. It is generated from our OpenAPI specification with Stainless. The library includes type definitions for all request params and response fields,Īnd offers both synchronous and asynchronous clients powered by httpx. The OpenAI Python library provides convenient access to the OpenAI REST API from any Python 3.7+Īpplication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |