Giter Club home page Giter Club logo

gptswift's Introduction

Hi there πŸ‘‹,

My name is Dennis and I am a software engineer based in Germany with a focus on iOS development.

gptswift's People

Contributors

dennisapploft avatar swiftedmind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gptswift's Issues

"GPT4-Tarbo" and "JSON-Mode" Compatibility

Hello,

First of all, I want to express my gratitude for providing this fantastic library. It has been incredibly useful, and I'm really thankful for your hard work.

I recently saw the exciting announcement regarding GPT-4 Tarbo and the JSON mode, and I couldn't be more thrilled. It got me thinking about the future of this library. Do you have any plans to support GPT-4 Tarbo and integrate a JSON mode? I believe these additions could take this library to the next level.

I'm looking forward to your response and eagerly anticipating the potential enhancements to this already amazing library. Thank you once again for your efforts!

Best regards.

using streamedAnswer.ask is not setting stream=true in request

I'm using chat/completions with gpt-4, and am trying to use the streaming mode. But I see that in the request sent, stream parameter is set to false. Is there anything else I should be doing to stream, other than using streamedAnswer.ask ?

This is my request function:

private func makeRequest(with text:String) async throws -> String? {
        let request = ChatRequest.gpt4 { request in
            request.messages = [
                .init(role: .user, content: text)
            ]
            request.temperature = Double(K.OpenAI.temperature)
            request.maximumTokens = K.OpenAI.maxTokens
        }
        print("Making ChatGPT request: \(request)")
        do {
            var response = ""
            for try await nextWord in try await chatGPT.streamedAnswer.ask(request: request) {
                print("\(nextWord)")
                response += nextWord
            }
            return response

        } catch {
            print("Error running chatgpt request: \(error.localizedDescription)")
            return nil
        }
    }

The package was built with xcode beta, app store detects this

Unable to Add for Review
The items below are required to start the review process:
New apps and app updates must be built with the public (GM) versions of Xcode 11 or later, iOS, macOS, watchOS, and tvOS SDKs. Apps built with beta versions aren’t allowed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.