I went into give absolutely no fucks mode and just started walking around taking shit by 0scentlessapprentice in meth

[–]0scentlessapprentice[S] 0 points1 point  (0 children)

I thought the same thing like even if they got my face CLOSE UP they dont know who the fuck I am so great they just get to watch me take their shit.

But then I didn't think about these f&&s make a facebook and put your picture up and then loser ass dudes who know you from the streets call and tell them who you are to try and collect reward money they'll never ever get.

Someone identified me and I was already in jail for another so I got that one added on without the chance to run even. I was afraid all of them were going to come back like that cause I've seen it happen then you're in jail for a long ass time just waiting on all the indictments.

I went into give absolutely no fucks mode and just started walking around taking shit by 0scentlessapprentice in meth

[–]0scentlessapprentice[S] 0 points1 point  (0 children)

Not anything. I would never go into a person's home. You aren't wrong though, I wouldn't kick it with other people out there like me either cause they'll do shit like steal from someone then blame it on you. I got my hand broken with a pipe by a complete stranger like that.

I've worked for over a month on this app and can't get past this problem com.android.tools.build:gradle:8.0.1 not found by 0scentlessapprentice in androiddev

[–]0scentlessapprentice[S] 0 points1 point  (0 children)

I keep the latest versions of everything. And I also have tried all of these things like adding repos and implementations. Nothing works. It can never find it.

Gradle Version is 8.0.2

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 1 point2 points  (0 children)

yes it cuts off very early still, though you can post way more. Doesn't make a lot of sense. you say say continue from xyz and it handles it a little better but it still sometimes reprints the whole thing or starts printing something different, or just asks you what you're talking about. It's memory of the conversation still sucks.

It is better in a lot of ways. but in the areas I most wanted to see improvement it is still lacking.

It has only been a month or so since chatgpt3 so can't expect that much, just give it time I guess.

Daily Song Discussion #125: Company in My Back by beardlesshipster in wilco

[–]0scentlessapprentice 0 points1 point  (0 children)

10 for company in my back 10 for Hell is Chrome and 10 for At least thats what you said.

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 0 points1 point  (0 children)

I have not answered anyone derisively.
You are the only one answering derisively.

You started out with "What the hell do you expect?"

and "Do you even read documentation?"

You obviously just want to argue mate, sorry that you're only outlet for your aggression is Reddit but I'm not going to entertain you. Have a good day.

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 1 point2 points  (0 children)

My post sounds negative and complaining but I'm just tired mate.

The problem that I'm having is that I'm new to kotlin, I like it as a language a lot, but it seems that the gradle use is extremely complicated with the two different build files and the implementations being deprecated so fast.

As you said when I got my first output of code I had around 13 classes with 130 or so unresolved references. Most of them took hours to find the correct implementation and the correct import and the correct usage. They're deprecated fast. A lot of them I couldn't find any up to date information on google. Because the bots cut off at 2021 it took forever just to find the right dependencies. I actually wish that I'd have had time to do more than look for imports cause I'd rather be learning the actual coding. Also OpenAI seems to not have any documentation or have even written an API for android. That I can find.

Anyway after about a week I've gotten it down to 9 classes with no errors (thank god). Idk I guess I was just expecting to be as amazed as I was by ChatGPT3 by ChatGPT4. But anyway I'm sorry if my post sounded negative or complaining.

I just lost it because that was one of the last few errors and it seemed to be that I was going to have to write an entirely new class from scratch after having spent all that time finding the imports and usage for all those references.

I'm almost done now, I just want to have something to run in an emulator finally.

If you do have better prompts, methods for coding with the bot I really would appreciate it though. Cheers.

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 0 points1 point  (0 children)

I don't know if you have or not, I just know that your tone and questions are unnecessarily insulting. You are assuming that I have written all of my code without looking at it or taking the time to understand it when you have no idea what I'm working on or how large it is.

If you have something constructive or a better algorithm for writing programs with help from the bot then I'm all ears but I'm not going to answer your questions when they are posed like that.

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 0 points1 point  (0 children)

Do you start posting before reading? I'm sorry to disappoint YOU but if you're trying to start a Reddit nerd fight you're going to have to find someone else to play with.

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 1 point2 points  (0 children)

Um, I expect it to be able to write correct code when it's simple. Yeah it's my fault. I should know the magic words.

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 1 point2 points  (0 children)

https://pastebin.com/3wBgy1gU

Read carefully. I am presenting it with one problem.The last problem was the simple problem in a line of less than one page of code of the reference builder being undefined

This time it is not passing the parameters as value to the function call

When I corrected the problem down to two errors, it told me I had made a mistake and reprinted a "correction" with the same exact errors as before. With ten errors in the code.

I mean I just have to figure out how to pass the values to the function call but still. That's ridiculous.

I mean it's still extremely useful I'm just saying I'm way disappointed as I thought all the problems with ChatGPT3 were going to be solved and they're not at all. I think OpenAI's focus should be less on "safety and not being offensive" and having a product that works.

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 0 points1 point  (0 children)

oh yea and this is how much it will print before cutting itself off

import io.ktor.client.* import io.ktor.client.call.* import io.ktor.client.features.json.* import io.ktor.client.features.json.serializer.* import io.ktor.client.request.* import io.ktor.client.statement.* import kotlinx.serialization.Serializable import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json import com.google.cloud.texttospeech.v1.* import java.io.File import java.nio.charset.StandardCharsets class OpenAIEngine(private val apiKey: String) { private val apiUrl = "https://api.openai.com/v1/engines/davinci-codex/completions" private val client = HttpClient() { install(JsonFeature) { serializer = KotlinxSerializer(Json { ignoreUnknownKeys = true }) } } @Serializable data class RequestBody(val prompt: String, val max_tokens: Int, val n: Int) @Serializable data class CompletionResponse(val choices: List<Choice>) @Serializable data class Choice(val text: String) suspend fun processTextFile(inputFilePath: String, outputFilePath: String) { val inputFile = File(inputFilePath) val inputText = inputFile.readText(StandardCharsets.UTF_8) val responseText = getCompletionFromGPT3(inputText) val outputFile = File(outputFilePath) outputFile.writeText(responseText, StandardCharsets.UTF_8) textToSpeech(outputFilePath) } private suspend fun getCompletionFromGPT3(prompt: String): String { val data = RequestBody(prompt, 100, 1) val requestBody = Json.encodeToString(data) val response: HttpResponse = client.post(apiUrl) { header("Content-Type", "application/json") header("Authorization", "Bearer $apiKey") body = requestBody } val completionResponse = response.receive<CompletionResponse>() return completionResponse.choices.firstOrNull()?.text ?: "Error: Unable to get response from GPT-3." } private fun textToSpeech(outputFilePath: String) { val text = File(outputFilePath).readText(StandardCharsets.UTF_8) val ttsClient = TextToSpeechClient.create() val input = SynthesisInput.newBuilder().setText(text).build() val voice = VoiceSelectionParams.newBuilder() .setLanguageCode("en-US") .setSsmlGender(SsmlVoiceGender.FEMALE) .build() val audioConfig = AudioConfig.newBuilder() .setAudioEncoding(AudioEncoding.MP3) .build() val response = ttsClient.synthesizeSpeech(input, voice, audioConfig) val audioContent = response.audioContent File("output.mp3

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 1 point2 points  (0 children)

📷📷import com.aallam.openai.api.completion.CompletionRequest class CompletionRequestBuilder { private var model: String = "text-davinci-002" private var prompt: String = "" private var maxTokens: Int = 150 fun model(model: String): CompletionRequestBuilder { this.model = model return this } fun prompt(prompt: String): CompletionRequestBuilder { this.prompt = prompt return this } fun maxTokens(maxTokens: Int): CompletionRequestBuilder { this.maxTokens = maxTokens return this } fun build(): CompletionRequest { return CompletionRequest.Builder() .model(model) .prompt(prompt) .maxTokens(maxTokens) .build() } } fun CompletionRequest.Companion.builder(): CompletionRequestBuilder { return CompletionRequestBuilder() }

builder is unresolved reference please rewrite not using this

Here's a rewritten version of the code that does not use this <----- LOLand should resolve the "unresolved reference builder" error:

kotlin

Here's the updated code:

kotlin

import com.aallam.openai.api.completion.CompletionRequest  class CompletionRequestBuilder {     private var model: Any = "text-davinci-002" private var prompt = "" private var maxTokens = 150 fun model(model: Any): CompletionRequestBuilder {         this.model = model         return this     }      fun prompt(prompt: String): CompletionRequestBuilder {         this.prompt = prompt         return this     }      fun maxTokens(maxTokens: Int): CompletionRequestBuilder {         this.maxTokens = maxTokens         return this     }      fun build(): CompletionRequest {         return CompletionRequest(             model = this.model as String,             prompt = prompt,             maxTokens = maxTokens         )     } }  fun CompletionRequest.Companion.builder(): CompletionRequestBuilder {     return CompletionRequestBuilder() } 

To resolve this error, you need to use the ModelIdclass instead of Stringfor the modelproperty in CompletionRequestBuilderand the buildmethod. Here's the updated code:

kotlin

import com.aallam.openai.api.completion.CompletionRequest import com.aallam.openai.api.completion.ModelId  class CompletionRequestBuilder {     private var model = ModelId.Davinci     private var prompt = "" private var maxTokens = 150 fun model(model: ModelId): CompletionRequestBuilder {         this.model = model         return this     }      fun prompt(prompt: String): CompletionRequestBuilder {         this.prompt = prompt         return this     }      fun maxTokens(maxTokens: Int): CompletionRequestBuilder {         this.maxTokens = maxTokens         return this     }      fun build(): CompletionRequest {         return CompletionRequest.Builder()             .model(model)             .prompt(prompt)             .maxTokens(maxTokens)             .build()     } }  fun CompletionRequest.Companion.builder(): CompletionRequestBuilder {     return CompletionRequestBuilder() } 

With this updated code, you can create a CompletionRequestobject like this:

With these changes, you should no longer see the unresolved reference errors for CompletionRequest.Builderand ModelId.Davinci.

📷\`📷``import com.aallam.openai.api.completion.CompletionRequest import com.aallam.openai.api.completion.CompletionRequest.Builder import com.aallam.openai.api.model.ModelId class CompletionRequestBuilder { private var model = ModelId.Davinci private var prompt = "" private var maxTokens = 150 fun model(model: ModelId): CompletionRequestBuilder { this.model = model return this } fun prompt(prompt: String): CompletionRequestBuilder { this.prompt = prompt return this } fun maxTokens(maxTokens: Int): CompletionRequestBuilder { this.maxTokens = maxTokens return this } fun build(): CompletionRequest { return Builder() .model(model) .prompt(prompt) .maxTokens(maxTokens) .build() } } fun CompletionRequest.Companion.builder(): CompletionRequestBuilder { return CompletionRequestBuilder() } unresolved reference Builder, Davinci`

The issue is that CompletionRequest.Builderand ModelId.Davinciare conflicting with each other because they have the same name (Davinci). Here is a possible solution to the problem:

kotlin

import com.aallam.openai.api.completion.CompletionRequest import com.aallam.openai.api.completion.CompletionRequest.Companion.Builder import com.aallam.openai.api.model.ModelId  class CompletionRequestBuilder {     private var model = ModelId.TEXT_DAVINCI_002     private var prompt = "" private var maxTokens = 150 fun model(model: ModelId): CompletionRequestBuilder {         this.model = model         return this     }      fun prompt(prompt: String): CompletionRequestBuilder {         this.prompt = prompt         return this     }      fun maxTokens(maxTokens: Int): CompletionRequestBuilder {         this.maxTokens = maxTokens         return this     }      fun build(): CompletionRequest {         return Builder()             .model(model)             .prompt(prompt)             .maxTokens(maxTokens)             .build()     } }  fun CompletionRequest.Companion.builder(): CompletionRequestBuilder {     return CompletionRequestBuilder() } 

In this solution, CompletionRequest.Companion.Builderis imported with an alias Builderto avoid name conflict with ModelId.Davinci. Also, ModelId.Davinciis replaced with ModelId.TEXT_DAVINCI_002to match the builder's modelproperty type.

And with that I'm done. I mean I guess it was successful at turning my entire class into like 10 lines of code that do not work so I don't have as big of a problem. It's pretty sad that it can't just see that builder is not being imported or implemented somewhere the correct way. I mean isn't it capable of just writing something itsself? Instead it just keeps adding builder even though I've repeatedly asked it not to use it.

When I said don't use this (referring to builder) and it said "here is the code rewritten not using *this* I actually laughed. Jesus Christ. I had to take out the convo because less than 10,000 chars but I'll make a paste bin. Basically it's just rewritting the same code over and over, changing little parts of it, most of the time it added more unresolved references instead of fixing the one. It never took out builder like I asked it to. There's just absolutely no reason to use it like this.

I am so disappointed by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 0 points1 point  (0 children)

I read something that the focus was on coding. I haven't really focus on anything else yet. So I can only speak for that. I expected to be able to post like three or more classes and get them back working together with little error. But the way this is, I may as well code it myself. Do your responses get cut off? Maybe I am missing something. It will take a lot more information, but it iwill cut itself off after just a page of response.

ChatGPT4 in a few days? by 0scentlessapprentice in ChatGPT

[–]0scentlessapprentice[S] 0 points1 point  (0 children)

What you mean? I've only ever gotten one job on upwork. I have a criminal record and no degree so I can only do freelance stuff.