Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: chat-completion-client retries by default - to disable via env #917

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

iwilltry42
Copy link
Contributor

Depends on gptscript-ai/chat-completion-client#3

Disable retries by setting env GPTSCRIPT_DISABLE_RETRIES to anything.
E.g. in Otto8 if I wanted to disable retries on the website-cleaning tool:

task, err := h.invoker.SystemTask(ctx, thread, system.WebsiteCleanTool, string(content), invoke.SystemTaskOptions{
				Env: []string{"GPTSCRIPT_DISABLE_RETRIES=1"},
			})

go.mod Outdated Show resolved Hide resolved
g-linville
g-linville previously approved these changes Dec 16, 2024
thedadams
thedadams previously approved these changes Dec 16, 2024
@iwilltry42 iwilltry42 dismissed stale reviews from thedadams and g-linville via 3701afe December 16, 2024 20:39
@iwilltry42 iwilltry42 force-pushed the feat/llm-call-retries branch from 3701afe to 09c776e Compare December 16, 2024 20:39
@iwilltry42 iwilltry42 requested a review from thedadams December 16, 2024 21:05
@sangee2004
Copy link
Contributor

LGTM

@iwilltry42 iwilltry42 merged commit eb03680 into gptscript-ai:main Dec 16, 2024
10 checks passed
@iwilltry42 iwilltry42 deleted the feat/llm-call-retries branch December 16, 2024 21:07
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.

4 participants