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

ClientConfig authToken 声明问题 #786

Open
yudongdong-1 opened this issue Jul 10, 2024 · 3 comments
Open

ClientConfig authToken 声明问题 #786

yudongdong-1 opened this issue Jul 10, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@yudongdong-1
Copy link

ClientConfig authToken 声明问题,导致无法传参

@yudongdong-1 yudongdong-1 added the bug Something isn't working label Jul 10, 2024
@Biskwit
Copy link

Biskwit commented Jul 13, 2024

agree, need authToken => AuthToken to allow us using custom ClientConfig

@t0uh33d
Copy link

t0uh33d commented Jul 15, 2024

Yes, this needs to be fixed :(

Update: I found a work around like this

config := openai.DefaultConfig(config.GlobalAppConfig.OPEN_AI_KEY)
config.AssistantVersion = "v2"
openAiInterface = &Assistant{Client: openai.NewClientWithConfig(config),
		Model: "gpt-4o",
	}

@AlienegraGeek
Copy link

Agree, add plz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants