Comments (7)
@141forever, Similar feature request #282 is already filled. Requesting you to please follow and +1 the similar issue for updates and close this thread. Thank you!
from generative-ai-python.
@singhniraj08 I'm facing similar problem as the OP, since the finish_reason
is always OTHER
and the issue you linked is talking about safety I'm not sure it is related problem.
My prompt is as simple as translating a JSON object with the content "Hi Peter, how's it going?" or "Chief Technology Officer" along with related metadata. Using the same prompt, I can easily get the result from ChatGPT, but Gemini (both Pro and Flash) just responds with finish_reason=OTHER
so I don't even know what the problem is with the prompt.
from generative-ai-python.
Additional information:
With the same prompt I always get the expected result via the public gemini website https://gemini.google.com
With https://aistudio.google.com/app/prompts/new_chat , it is failed every time.
I can share the prompt via email if you guys are interested
from generative-ai-python.
@trunglebka, #282 is for implementation of more helpful error messages when the response is blocked by Gemini because of safety or other reasons. The SDK doesn't control the service's responses. If you feel the response is blocked which shouldn't be the normal case, we would suggest you to use "Send Feedback" option in Gemini docs. Ref: Screenshot below. You can also post this issue on Discourse forum.
from generative-ai-python.
@singhniraj08 Thanks for pointing that out, I wasn't paying close attention
from generative-ai-python.
Im having the same issue, Im doing some rewriting text about healthcare USML dataset. And in a specific question I got this error.
from generative-ai-python.
Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.
from generative-ai-python.
Related Issues (20)
- Can I live stream my web cam or live video ( HLS, RTSP and RTMP) to gemini vision api? HOT 3
- Google Gemini does not provide response if tools are given
- GenerativeModel does not support multiple grounding tools
- No PDF support for files API. HOT 7
- TypeError Could not create `Blob`, expected `Blob`, `dict` or an `Image` type(`PIL.Image.Image` or `IPython.display.Image`) HOT 1
- [Bug]: SQLTalk demo is using VertexAI SDK, not Gemini SDK but is branded as GeminiAI HOT 1
- No reference docs for semantic retreiver or generate_answer.
- google.generativeai.types.generation_types.StopCandidateException: index: 0 HOT 2
- Unable to intercept requests to generativelanguages.google HOT 4
- Fix custom endpoint with file uploads and colab.
- response_schema not working with gemini-1.5-pro model HOT 2
- [BUG] `407: Proxy Authentication Required` for `genai.upload_file` API while proxy has been set to ENV var HOT 3
- _OPERATOR dict with multiple 6 mentioned multiple times HOT 1
- Function calling doesn't work and raises 400 InvalidArgument exception. HOT 2
- WebP files not recognized by mimetypes.guess_type() in Python <3.13 HOT 2
- Bug `genai.list_models()`: TypeError: Model.__init__() got an unexpected keyword argument 'max_temperature' HOT 8
- Function Calling Does Not Work With Stop Sequences and Streaming HOT 1
- Test to ensure that api_key or credentials is set in configure
- TypeError: no default __reduce__ due to non-trivial __cinit__
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-python.