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

Cannot upload files, no ImageInput.FromFile() #217

Open
JulesVerny opened this issue Jun 4, 2024 · 2 comments
Open

Cannot upload files, no ImageInput.FromFile() #217

JulesVerny opened this issue Jun 4, 2024 · 2 comments

Comments

@JulesVerny
Copy link

Some of this code does not compile. For example ImageInput.FromFile( ) is not in any of the standard C# or anywhere in this package.

How are we supposed to upload Image files from our local drives, if this code does not compile ?

TheOpenAI_api.Chat.GetResponseFromChatbotAsync( ) does not seem available either.

@OkGoDoIt
Copy link
Owner

OkGoDoIt commented Jun 14, 2024

It's possible you are referencing a different version of the library, or perhaps you need to add the namespace to your using's. The fully qualified name is OpenAI_API.Chat.ChatMessage.ImageInput

ImageInput is defined in https://github.com/OkGoDoIt/OpenAI-API-dotnet/blob/master/OpenAI_API/Chat/ChatMessage.cs#L222 within OpenAI_API.Chat.ChatMessage

@OkGoDoIt
Copy link
Owner

OkGoDoIt commented Jun 14, 2024

Are you using v1.11 or v1.10 or v1.9? ImageInput was added in v1.9.

There is also a new v2.0 beta that has a completely different architecture, so if you are using that one, please check out its new readme instead: https://github.com/openai/openai-dotnet/blob/main/README.md

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