Comments (2)
I can confirm that the current implementation of response_format is overlapping with the ChatCompletion one, which differs from the image endpoint - it needs to be extended to support the image endpoint response_format
as well and be slightly more generic.
from localai.
Thank you for reporting this issue, Ephex2. I can confirm that the current implementation of the response_format
field in the OpenAI request does cause compatibility issues with the OpenAI API specification for image generation.
To address this, we will need to update the openai.go
file in the LocalAI repository to align with the OpenAI API specification for image creation requests. Specifically, we should update the OpenAIRequest
struct to support the response_format
field as a string, with the omitempty
tag added to the field as you suggested.
Once this update is made, the issue should be resolved, and the LocalAI API models should work as expected with the OpenAI API when making image creation calls.
I'll create a pull request to address this issue and mention this discussion in the PR description for reference.
Thanks again for bringing this to our attention! If you have any further questions or concerns, please don't hesitate to reach out.
from localai.
Related Issues (20)
- Error running make build on local
- llama.cpp cuda detection does not work inside a container
- Failing dependencies in example endpoints/model for image generation HOT 1
- [BUG] setuptools 70.0.0 breaks PyTorch 2.1
- Feature Discussion: Role-Based Auth HOT 2
- The API v1/images/generations do not apply the size
- Please integrate chatTTS HOT 1
- Error grabbing logs: invalid character '\x00' looking for beginning of value
- Distributed Llama.cpp Inferencing option `llamacpp-worker` not working HOT 2
- animagine-xl not working on latest-cpu
- Site missing "WEBUI" info
- Chat WebUI stops updating HOT 1
- Rerank API not accessible: {"error":{"code":500,"message":"grpc service not ready","type":""}} HOT 1
- Parler-tts doesn't work when installed from gallery, documentation unhelpful
- coqui tts: change to better maintained fork HOT 2
- Transformers backend supports mps
- API appears to hang forever if a response is interrupted HOT 1
- support models from OCI registry
- Timeout
- add zsh/bash autocompletion to local-ai CLI
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 localai.