Comments (3)
Hi @doggy8088
I added this request to version 0.8.4.
See commit: 16403ce
I hope that it's more consistent now.
Eventually, I have to make further changes regarding Google AI using OAuth / ADC authentication. Currently, there is a null check of ApiKey in the method.
from generative-ai.
Hi @doggy8088 ,
Thanks for the suggestion. That would be similar to the genai
object available in the other SDKs. I didn't consider the abstraction of the Google AI. However, it can make sense to add this extra layer.
One of the issues I'm facing at the moment, is that "administrative" methods like ListModels, GetModel are at the wrong location. This might also be relevant for CreateTunedModel.
Also, take into consideration that GenerativeModel
can work autonomously to detect the targetted API based on environmental constraints, like using .env
and envVars.
using Mscc.GenerativeAI;
var model = new GenerativeModel();
As described in the README: Using Environment variables
Again, thanks for the suggestion. This is helpful to clear my own thoughts.
from generative-ai.
Just a reminder that the README.md
should be updated as well.
from generative-ai.
Related Issues (20)
- Feature suggestion: Retry mechanism HOT 8
- Support: Gemini Pro Vision HOT 7
- The original usage seems broken: new GenerativeModel(...) HOT 4
- Feature suggestion: Add logs with LogLevel using the Standard logging in .NET HOT 11
- Unknown error due to some settings HOT 5
- SafetySettings can be easier and less error-prone. HOT 5
- Application Default Credentials (ADC) has been loaded automatically even I use API Key auth. HOT 4
- The `_useHeaderApiKey` is always be `true` when using API Key auth. HOT 2
- Hints for possible Exceptions HOT 5
- Check for more FinishReason HOT 4
- `model.GetModel()` returned wrong `SupportedGenerationMethods` HOT 2
- A bug is found on `EmbedContentRequest` HOT 1
- Provide full context for the HttpRequestException HOT 6
- Assigning a API_KEY using model.ApiKey is not working HOT 3
- The `inheritdoc` XML comment can't appear in LINQPad HOT 1
- await model.ListFiles() get HTTP 403 (Forbidden) HOT 4
- Feature suggestion: create a Tool object from a C# method HOT 1
- Error while copying content to a stream HOT 2
- Exception thrown in Google App Engine HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generative-ai.