Skip to content
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

Full of dependency errors #4

Open
enigmablue opened this issue Jun 4, 2023 · 3 comments
Open

Full of dependency errors #4

enigmablue opened this issue Jun 4, 2023 · 3 comments

Comments

@enigmablue
Copy link

enigmablue commented Jun 4, 2023

I was trying to set up this package. Tons of dependency errors. Its not clear how to install the dependencies. Relent (based on your 5.0) is not picked up, until i looked at your manifest and used the 2.0 Relent. And then tons of these.

No idea whats happening.

image

"dependencies": {
"com.boundfoxstudios.fluentassertions": "https://github.com/BoundfoxStudios/fluentassertions-unity.git#upm",
"com.bugsnag.unitynotifier": "https://github.com/bugsnag/bugsnag-unity-upm.git",
"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask",
"com.mochineko.chatgpt-api": "https://github.com/mochi-neko/ChatGPT-API-unity.git?path=/Assets/Mochineko/ChatGPT_API#0.5.0",
"com.mochineko.chatgpt-api.memory": "https://github.com/mochi-neko/ChatGPT-API-unity.git?path=/Assets/Mochineko/ChatGPT_API.Memory#0.4.0",
"com.mochineko.relent": "https://github.com/mochi-neko/Relent.git?path=/Assets/Mochineko/Relent#0.2.0",
"com.mochineko.tiktoken-sharp": "https://github.com/mochi-neko/ChatGPT-API-unity.git?path=/Assets/Mochineko/TiktokenSharp#0.4.0",

@mochi-neko
Copy link
Owner

@enigmablue

Please remove following dependencies:

I'm sorry that I forgot to update dependencies of sample in README.

"Relent" package is only needed when you use Relent version API of ChatGPT API client: "com.mochineko.chatpgt-api.relent" that can use retry, timeout, circuit breaker and bulkhead to connect API.

@enigmablue
Copy link
Author

I think it can't work because the chatgpt-api has the tests folder and the tests folder has tiktoken.

I have to manually delete the tests folder

@mochi-neko
Copy link
Owner

mochi-neko commented Jun 6, 2023

Do you install this package by Unity Package Manager?
Tests folder is not included in package.

Minimal introduction is there:
Add following dependencies to mainfest.json on your Unity project.

{
  "dependencies": {
    "com.mochineko.chatgpt-api": "https://github.com/mochi-neko/ChatGPT-API-unity.git?path=/Assets/Mochineko/ChatGPT_API#0.5.0",
    "com.unity.nuget.newtonsoft-json": "3.0.2",
  }
}

If you use sample code in this repository, please add UniTask dependency,
"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask",

For your information, memory package ("com.mochineko.chatgpt-api.memory") and tiktoken package ("com.mochineko.tiktoken-sharp") are merged to main package ("com.mochineko.chatgpt-api") from ver 0.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants