Comments (2)
They made ChatMessage Identifiable, which combined with Codable protocol will encode the local id property to the body and OpenAI rejects it:
"message = "Additional properties are not allowed ('id' was unexpected) - 'messages.0'"
type = "invalid_request_error""
from openaiswift.
I fixed it and made a Pull Request #114
from openaiswift.
Related Issues (20)
- Always returning nil HOT 3
- OpenAIEndpointModelType that replaces the OpenAIModelType so only compatible models are available for each method
- Trying to take a sendCompletion request with gpt4 model HOT 1
- Cannot use instance member 'key' within property initializer; property initializers run before 'self' is available
- no response from openAI webAPI? HOT 3
- OpenAISwift 1.4.0 multiple errors with new Xcode 15 release HOT 1
- theres a typo for URLRequest it say inout instead of "input" HOT 1
- Stay away from this package HOT 12
- OpenAISwift - New Fork with merged Pull Requests
- Latest Models & Updates HOT 1
- 2023 Dev Conf Updates
- Is gpt-4-vision-preview model possible? HOT 1
- Not getting any responses from API HOT 3
- Updated Jan 2024 Models and Endpoints
- Simple request
- Please add support for setting base_url HOT 1
- How to use Vision function?Supports GPT-4o and GPT-4 Turbo models.
- Got a blank message response from Chatgpt HOT 1
- Implement new GPT4o-mini model.
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 openaiswift.