Skip to content

Conversation

StrongMonkey
Copy link
Contributor

Add options to a field to indicate whether this field can be option/select styles.

Name string `json:"name,omitempty"`
Sensitive *bool `json:"sensitive,omitempty"`
Description string `json:"description,omitempty"`
Options []string `json:"options,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to keep the SDKs well-tested. Please add a test case for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

absolutely

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thedadams Added a test for this. It will likely fail until we have the new build for gptscript

@@ -160,7 +160,7 @@ func TestCancelRun(t *testing.T) {
}

func TestAbortChatCompletionRun(t *testing.T) {
tool := ToolDef{Instructions: "What is the capital of the united states?"}
tool := ToolDef{Instructions: "Generate a real long essay about the meaning of life."}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to fix this. It is flaky and will fail the test if the message are sent in one event

@StrongMonkey StrongMonkey merged commit 415de95 into gptscript-ai:main Mar 31, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants