Thank you, Bernd.
I've incorporated your code and added an additional command to allow for sequential calculations. For example, you can first ask it to add 2 plus 2, and in the following query, instruct it to multiply the previous result by 4, and so forth.
It's quite a nice Script!"
JG
Search found 41 matches
- Mon Oct 09, 2023 10:49 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 47068
- Sat Oct 07, 2023 10:21 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 47068
Re: OpenAI Chat API Sample
Hola Klaus, Oh, what a surprise... :D :D :D . I had such high hopes for finding a magical solution to the never-ending struggles I face when dealing with strings in Livecode Scripts. And I emphasize "Scripts" because I can paste those cryptic lines into a property of an object and somehow make it wo...
- Sat Oct 07, 2023 4:52 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 47068
Re: OpenAI Chat API Sample
Hi Klaus, The following is the string to pass back to the API: { "model": "gpt-3.5-turbo", "messages": [ { "role": "user", "content": "What is Livecode?" } ], "temperature": 1, "max_tokens": 256, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0 } using your function function q tString retur...
- Fri Oct 06, 2023 10:54 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 47068
Re: OpenAI Chat API Sample
Hi Craig,
I think you just need to enter your own OPENAI KEY replacing the XXXXXX
put "XXXXXXXXXXXXXXXXXXXXXX" into tKey
Regards,
JG
I think you just need to enter your own OPENAI KEY replacing the XXXXXX
put "XXXXXXXXXXXXXXXXXXXXXX" into tKey
Regards,
JG
- Fri Oct 06, 2023 8:19 pm
- Forum: Off-Topic
- Topic: OpenAI Chat API Sample
- Replies: 16
- Views: 47068
OpenAI Chat API Sample
ChatGPT from OpenAi is a HOT Topic now at days and I know people are looking for ways interact with OpenAI using Livecode. The following code will help you to get started on your development and to get more ideas. If somebody else has already a library to do this better, please share it here.. on mo...
- Fri Sep 29, 2023 3:20 pm
- Forum: iOS Deployment
- Topic: How to show controls on top of Camera object
- Replies: 3
- Views: 16003
Re: How to show controls on top of Camera object
Hello Jacque, I hope you're doing well, and thank you for your response. Yes, that is precisely what I did. However, the camera display maintains its aspect ratio, and when I slightly reduce its size to accommodate the buttons at the bottom, the camera display shrinks its sides to maintain the ratio...
- Wed Sep 27, 2023 6:50 pm
- Forum: iOS Deployment
- Topic: How to show controls on top of Camera object
- Replies: 3
- Views: 16003
How to show controls on top of Camera object
Hi, I need some of your wisdom here. I am playing with the camera using IOS, here is the code: cameraControlCreate "myCamera" cameraControlSet "myCamera", "rect", the screenRect cameraControlSet "myCamera", "videoDevice", "default" cameraControlSet "myCamera", "focusMode", "continuous" cameraControl...
- Wed Jul 12, 2023 9:35 pm
- Forum: Android Deployment
- Topic: Speech to Text function?
- Replies: 2
- Views: 7584
Re: Speech to Text function?
Hi golife, That is exactly what I was looking for , but I don't know how to use an IOS capability if is not available in LC. I know there are some really good JAVA developer who can make the JNI and make the connection to the OS, but this is not the case, So, What I did is to save the the voice to a...
- Wed Jun 28, 2023 7:34 pm
- Forum: Bug Triage
- Topic: Remote debugger doesn't open breakpoint script anymore
- Replies: 9
- Views: 2035
[Solved]Re: Remote debugger doesn't open breakpoint script anymore
quick update, The Problem was Hyper-V. Hyper-V has virtual switches. It has a Default Internal Switch with NAT and and External switch that connect directly to the NIC. Windows computer is connected to the Virtual External Switch.. So, My windows 11 Nic has an external IP that connects to the Virtua...
- Wed Jun 28, 2023 4:03 pm
- Forum: Bug Triage
- Topic: Remote debugger doesn't open breakpoint script anymore
- Replies: 9
- Views: 2035
Re: Remote debugger doesn't open breakpoint script anymore
Hello Jacque, I apologize for responding so late. I'm using Win 11 with LiveCode 9.6.9. I believe it's more of an issue specific to my computer. Something is preventing LiveCode from starting the socket on my computer. Let me explain why. I created a very simple stack, just for testing purposes, wit...
- Tue Jun 20, 2023 9:43 pm
- Forum: Bug Triage
- Topic: Remote debugger doesn't open breakpoint script anymore
- Replies: 9
- Views: 2035
Re: Remote debugger doesn't open breakpoint script anymore
Hi Trevix,
I am using livecode 9.6.9 (stable) and I am having the same issue, but I tried older versions and the problem persist. I tried on mac and windows. The Remote debugger works fine in simulator but not on external devices.
were you able to find the solution for this issue?
JG
I am using livecode 9.6.9 (stable) and I am having the same issue, but I tried older versions and the problem persist. I tried on mac and windows. The Remote debugger works fine in simulator but not on external devices.
were you able to find the solution for this issue?
JG
- Mon Jun 19, 2023 9:15 pm
- Forum: Android Deployment
- Topic: how to stop speechSpeakUtterance handler
- Replies: 4
- Views: 12226
Re: how to stop speechSpeakUtterance handler
I found one solution. I dont know if that is the best solution, but it works. I had to Finalize the library and initialize it again.
Code: Select all
on mouseUp pButtonNumber
speechFinalizeLibrary
speechInitializeLibrary
end mouseUp
- Mon Jun 19, 2023 8:42 pm
- Forum: Android Deployment
- Topic: how to stop speechSpeakUtterance handler
- Replies: 4
- Views: 12226
Re: how to stop speechSpeakUtterance handler
I already tried that, but it did not work, it adds to a queue to speak instead..SparkOut wrote: ↑Mon Jun 19, 2023 7:18 pmI think that is different to the new (since v 9.6) library for Mac OS, iOS and Android.
A snippet I found from jacque shows you should be able to do this byCode: Select all
speechSpeakUtterance(empty)
JG
- Mon Jun 19, 2023 6:02 pm
- Forum: Android Deployment
- Topic: how to stop speechSpeakUtterance handler
- Replies: 4
- Views: 12226
how to stop speechSpeakUtterance handler
Does anyone know how to stop the speechSpeakUtterance handler process?
When I send a fairly long paragraph, I would like to be able to end it at any desired moment and not have to wait until it finishes speaking it in its entirety.
JG
When I send a fairly long paragraph, I would like to be able to end it at any desired moment and not have to wait until it finishes speaking it in its entirety.
JG
- Thu May 25, 2023 11:12 pm
- Forum: Announcements
- Topic: Announcing Xavvi, a Great Leap Forward for App Building
- Replies: 160
- Views: 866359
Re: Announcing Xavvi, a Great Leap Forward for App Building
Hi dear friends... I would like to share this reflection from a student of mine whom I teach LiveCode. He is 13 years old and very intelligent (a genius! :D ) and sometimes comes to this forum as a guest to understand the language better and to experiment. Yesterday, he saw that there is persistent...